From: Felix Fietkau Date: Fri, 24 Jun 2011 19:53:31 +0000 (+0000) Subject: mac80211: configure HT IBSS through uci X-Git-Tag: reboot~16499 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e087e678af9068f6a4ba16db3a64cb11c8c8c343;p=oweals%2Fopenwrt.git mac80211: configure HT IBSS through uci SVN-Revision: 27279 --- 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} \