From 9293de42a745fcbfa6147960ce70e31097f684ab Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Tue, 27 Dec 2022 18:06:30 -0800 Subject: [PATCH] Improve meshref conflict check which could be triggered even when no wifi is enabled (#599) --- 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 0ad540a2..cbbaedf4 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -673,7 +673,7 @@ if parms.button_save then if phycount > 1 and wifi_enable == "1" and wifi2_channel < 36 and wifi2_enable == "1" then err("Mesh RF and LAN Access Point can not both use the same wireless card, review LAN AP settings") end - if phycount > 1 and wifi_enable == "0" and wifi2_hwmode == wifi3_hwmode then + if phycount > 1 and wifi_enable == "0" and wifi2_enable == "1" and wifi3_enable == "1" and wifi2_hwmode == wifi3_hwmode then err("Some settings auto updated to avoid conflicts, please review and save one more time") end if wifi_enable == "1" and wifi2_enable == "1" and wifi3_enable == "1" then