mac80211: configure HT IBSS through uci
authorFelix Fietkau <nbd@openwrt.org>
Fri, 24 Jun 2011 19:53:31 +0000 (19:53 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 24 Jun 2011 19:53:31 +0000 (19:53 +0000)
SVN-Revision: 27279

package/mac80211/files/lib/wifi/mac80211.sh

index 2ca63bb5cf8917bad5fb7e974b9908a475f84734..2472f8ea8483c8575765f2851352e209e32d03c6 100644 (file)
@@ -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} \