Correctly set wifi wan mode when depending on the mesh wifi setting (#925)

This commit is contained in:
Tim Wilkinson 2023-09-04 22:30:58 -07:00 committed by GitHub
parent 4ff51fa604
commit 6754330ae6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -1381,7 +1381,12 @@ if APokay and ((phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or
else else
-- 2 band -- 2 band
if wifi_enable == "1" then if wifi_enable == "1" then
wifi3_hwmode = "11a" local defaultwifi = aredn.hardware.get_default_channel(wifi_intf)
if defaultwifi.channel == 149 then
wifi3_hwmode = "11g"
else
wifi3_hwmode = "11a"
end
else else
if wifi2_hwmode == "11g" and wifi2_enable == "1" then if wifi2_hwmode == "11g" and wifi2_enable == "1" then
wifi3_hwmode = "11a" wifi3_hwmode = "11a"