aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2012-02-14 19:07:15 +0000
committerJohn Crispin <blogic@openwrt.org>2012-02-14 19:07:15 +0000
commit6bc5b39035b1b60cf09ba37f3bf129b257efdd4f (patch)
tree923173ab70c9ab31123f9d9c112ce762a5dc292b /package
parent03a8872df7bb6931cacf90a9867590e6f61abc81 (diff)
downloadmaster-187ad058-6bc5b39035b1b60cf09ba37f3bf129b257efdd4f.tar.gz
master-187ad058-6bc5b39035b1b60cf09ba37f3bf129b257efdd4f.tar.bz2
master-187ad058-6bc5b39035b1b60cf09ba37f3bf129b257efdd4f.zip
mac80211: Allow preamble configuration
Add a new wireless config parameter short_preamble=0|1 to enable usage of short preambles. Default is to only allow long preambles as before. Even if short_preamble is set to 1 hostapd will take care that short preambles are disabled as soon as a STA associates that cannot handle short preambles. Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30539 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 13390b8667..ff5470b5eb 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -16,6 +16,7 @@ mac80211_hostapd_setup_base() {
config_get beacon_int "$device" beacon_int
config_get basic_rate_list "$device" basic_rate
config_get_bool noscan "$device" noscan
+ config_get_bool short_preamble "$device" short_preamble "0"
hostapd_set_log_options base_cfg "$device"
@@ -76,6 +77,8 @@ mac80211_hostapd_setup_base() {
brstr="$brstr$brval"
done
}
+
+ append base_cfg "preamble=$short_preamble" "$N"
cat >> "$cfgfile" <<EOF
ctrl_interface=/var/run/hostapd-$phy