mac80211: add missing set_default to fix stray "radio0: sh: bad number" messages
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Dec 2013 16:24:52 +0000 (16:24 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 10 Dec 2013 16:24:52 +0000 (16:24 +0000)
SVN-Revision: 39028

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

index 24b76157d8d42ed6015d5fd797bb1c3c3eb5c5b6..12c256ebaab8850053b112014a9c45b2937a9328 100644 (file)
@@ -85,6 +85,8 @@ mac80211_hostapd_setup_bss() {
        hostapd_set_bss_options hostapd_cfg "$vif" || return 1
        json_get_vars wds dtim_period max_listen_int
 
+       set_default wds 0
+
        [ "$wds" -gt 0 ] && append hostapd_cfg "wds_sta=1" "$N"
        [ "$staidx" -gt 0 ] && append hostapd_cfg "start_disabled=1" "$N"