aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-06-24 19:53:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-06-24 19:53:31 +0000
commitbc1ddab9e9e1afaa7c8a5ca3425e58d79df254f5 (patch)
treed4fb4693ee59ae7db6d01ec5a2278bcf1e30f21f /package/mac80211
parentfedfa311c26a75ef1a895f90146801a64acec9bc (diff)
downloadupstream-bc1ddab9e9e1afaa7c8a5ca3425e58d79df254f5.tar.gz
upstream-bc1ddab9e9e1afaa7c8a5ca3425e58d79df254f5.tar.bz2
upstream-bc1ddab9e9e1afaa7c8a5ca3425e58d79df254f5.zip
mac80211: configure HT IBSS through uci
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27279 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 2ca63bb5cf..2472f8ea84 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -457,7 +457,13 @@ enable_mac80211() {
[ "$mcsub" -gt 0 ] && mcval="$mcval.$mcsub"
}
- iw dev "$ifname" ibss join "$ssid" $freq \
+ config_get htmode "$device" htmode
+ case "$htmode" in
+ HT20|HT40+|HT40-) ;;
+ *) htmode= ;;
+ esac
+
+ iw dev "$ifname" ibss join "$ssid" $freq $htmode \
${fixed:+fixed-freq} $bssid \
${beacon_int:+beacon-interval $beacon_int} \
${brstr:+basic-rates $brstr} \