summaryrefslogtreecommitdiff
path: root/package/mac80211/files/lib/wifi/mac80211.sh
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
commite087e678af9068f6a4ba16db3a64cb11c8c8c343 (patch)
tree001afcbbab5eae29d7224d26a7b0be66e4df13e3 /package/mac80211/files/lib/wifi/mac80211.sh
parent9a790eb3df1e8ccf2a4e48960e04258808bf82a3 (diff)
downloadmtk-20170518-e087e678af9068f6a4ba16db3a64cb11c8c8c343.zip
mtk-20170518-e087e678af9068f6a4ba16db3a64cb11c8c8c343.tar.gz
mtk-20170518-e087e678af9068f6a4ba16db3a64cb11c8c8c343.tar.bz2
mac80211: configure HT IBSS through uci
SVN-Revision: 27279
Diffstat (limited to 'package/mac80211/files/lib/wifi/mac80211.sh')
-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 2ca63bb..2472f8e 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} \