diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-10 16:24:52 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-12-10 16:24:52 +0000 |
commit | 10972d9f023b58931cc3532cf329201ca0aee0b4 (patch) | |
tree | 6fba1915787460a68382585adbebdfe3e6c2bb97 /package/kernel/mac80211/files | |
parent | 32223b3c4d74571b085a9936634a75f4a4b194ac (diff) | |
download | master-31e0f0ae-10972d9f023b58931cc3532cf329201ca0aee0b4.tar.gz master-31e0f0ae-10972d9f023b58931cc3532cf329201ca0aee0b4.tar.bz2 master-31e0f0ae-10972d9f023b58931cc3532cf329201ca0aee0b4.zip |
mac80211: add missing set_default to fix stray "radio0: sh: bad number" messages
SVN-Revision: 39028
Diffstat (limited to 'package/kernel/mac80211/files')
-rw-r--r-- | package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh index 24b76157d8..12c256ebaa 100644 --- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh +++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh @@ -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" |