mirror of https://github.com/aredn/aredn.git
Fix AP mode selection when turning mesh back on.
This commit is contained in:
parent
e728e30aaf
commit
4763c4d149
|
@ -1234,7 +1234,7 @@ if APokay and ((phycount > 1 and (wifi_enable ~= "1" or wifi3_enable ~= "1")) or
|
||||||
else
|
else
|
||||||
-- 2 band device
|
-- 2 band device
|
||||||
if wifi_enable == "1" then
|
if wifi_enable == "1" then
|
||||||
local alt_phy = phy == "phy0" and "phy1" or "phy0"
|
local alt_phy = (not phy or phy == "phy0") and "phy1" or "phy0"
|
||||||
local rc3 = os.execute("iw " .. alt_phy .. " info | grep -v disabled | grep -q '5180 MHz' > /dev/null")
|
local rc3 = os.execute("iw " .. alt_phy .. " info | grep -v disabled | grep -q '5180 MHz' > /dev/null")
|
||||||
if rc3 ~= 0 then
|
if rc3 ~= 0 then
|
||||||
wifi2_hwmode = "11g"
|
wifi2_hwmode = "11g"
|
||||||
|
|
Loading…
Reference in New Issue