mac80211: add default value for noscan
[openwrt/openwrt.git] / package / kernel / mac80211 / files / lib / netifd / wireless / mac80211.sh
index a04f1e3ca78764e69fd540b6240809b240f06b89..5c67ea060063ab186e81cf22f3ab211f0d3a807e 100644 (file)
@@ -106,7 +106,9 @@ mac80211_hostapd_setup_base() {
        json_get_vars noscan ht_coex
        json_get_values ht_capab_list ht_capab tx_burst
 
-       [ -n "$noscan" -a "$noscan" -gt 0 ] && hostapd_noscan=1
+       set_default noscan 0
+
+       [ "$noscan" -gt 0 ] && hostapd_noscan=1
        [ "$tx_burst" = 0 ] && tx_burst=
 
        ieee80211n=1