diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-02-11 18:59:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-02-11 18:59:10 +0000 |
commit | 1810b80ec08fe0e98bb6776957f779ea440001bf (patch) | |
tree | c5b2ffe50df87a62be4a930333712655b712d8cf /package/network/services/hostapd | |
parent | 2e7a4b088d83e64e5ae8fc54cdc22d24493cc249 (diff) | |
download | upstream-1810b80ec08fe0e98bb6776957f779ea440001bf.tar.gz upstream-1810b80ec08fe0e98bb6776957f779ea440001bf.tar.bz2 upstream-1810b80ec08fe0e98bb6776957f779ea440001bf.zip |
mac80211/hostapd: short_preamble is a per-vif option and should be enabled by default
SVN-Revision: 35565
Diffstat (limited to 'package/network/services/hostapd')
-rw-r--r-- | package/network/services/hostapd/files/hostapd.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/network/services/hostapd/files/hostapd.sh b/package/network/services/hostapd/files/hostapd.sh index ab4288b362..00c6a094cf 100644 --- a/package/network/services/hostapd/files/hostapd.sh +++ b/package/network/services/hostapd/files/hostapd.sh @@ -12,6 +12,7 @@ hostapd_set_bss_options() { config_get_bool disassoc_low_ack "$vif" disassoc_low_ack 1 config_get max_num_sta "$vif" max_num_sta 0 config_get max_inactivity "$vif" max_inactivity 0 + config_get_bool preamble "$vif" short_preamble 1 config_get device "$vif" device config_get hwmode "$device" hwmode @@ -29,6 +30,9 @@ hostapd_set_bss_options() { append "$var" "ap_max_inactivity=$max_inactivity" "$N" fi append "$var" "disassoc_low_ack=$disassoc_low_ack" "$N" + if [ "$preamble" -gt 0 ]; then + append "$var" "preamble=$preamble" "$N" + fi # Examples: # psk-mixed/tkip => WPA1+2 PSK, TKIP |