From 4763c4d14918918792069b111c091a19acb1e6a2 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Mon, 20 Feb 2023 11:09:38 -0800 Subject: [PATCH] Fix AP mode selection when turning mesh back on. --- files/www/cgi-bin/setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 3a926739..68327dec 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -1234,7 +1234,7 @@ if APokay and ((phycount > 1 and (wifi_enable ~= "1" or wifi3_enable ~= "1")) or else -- 2 band device 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") if rc3 ~= 0 then wifi2_hwmode = "11g"