From ad441ba600427eeb7b14a054608bafbba81f54a7 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Fri, 17 Jun 2022 14:09:31 -0700 Subject: [PATCH] Fix error when re-enabling wifi mesh with lqm 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 4b30219c..728fd4b6 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -444,7 +444,7 @@ if (parms.button_apply or parms.button_save) and wifi_enable == "1" then os.execute("iw phy " .. phy .. " set distance " .. wifi_distance .. " >/dev/null 2>&1") end end - else + elseif parms.lqm_min_snr ~= nil then -- validate values local lqm_min_snr = tonumber(parms.lqm_min_snr) local lqm_max_distance = tonumber(parms.lqm_max_distance)