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)
return nil
end
for i, addr in ipairs(addresses) do
if i == vif then
return addr
end
end
return addresses[vif]
end
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
return
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 .. ')')
ht:depends(outdoor, true)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment