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)