Skip to content
Snippets Groups Projects
Unverified Commit c468f68f authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #3238 from neocturne/wifi-cleanup

Wifi-related code cleanup
parents 28951a00 1a372fbe
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,7 @@ local function get_wlan_mac_from_driver(radio, vif) ...@@ -36,11 +36,7 @@ local function get_wlan_mac_from_driver(radio, vif)
return nil return nil
end end
for i, addr in ipairs(addresses) do return addresses[vif]
if i == vif then
return addr
end
end
end end
function M.get_wlan_mac(_, radio, index, vif) function M.get_wlan_mac(_, radio, index, vif)
......
...@@ -161,7 +161,7 @@ if wireless.device_uses_11a(uci) and not wireless.preserve_channels(uci) then ...@@ -161,7 +161,7 @@ if wireless.device_uses_11a(uci) and not wireless.preserve_channels(uci) then
return return
end end
local phy = wireless.find_phy(uci:get_all('wireless', radio)) local phy = wireless.find_phy(config)
local ht = r:option(ListValue, 'outdoor_htmode', translate('HT Mode') .. ' (' .. radio .. ')') local ht = r:option(ListValue, 'outdoor_htmode', translate('HT Mode') .. ' (' .. radio .. ')')
ht:depends(outdoor, true) ht:depends(outdoor, true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment