Hi

This is a quick patch to enable HT for mesh mode
https://github.com/cozybit/open80211s/wiki/HOWTO#high-throughput
http://lists.open80211s.org/pipermail/devel/2012-March/002990.html

Signed-off-by: Etienne CHAMPETIER <etienne.champet...@free.fr>

Index: package/mac80211/files/lib/wifi/mac80211.sh
===================================================================
--- package/mac80211/files/lib/wifi/mac80211.sh    (révision 36276)
+++ package/mac80211/files/lib/wifi/mac80211.sh    (copie de travail)
@@ -395,7 +395,12 @@
             # We attempt to set the channel for all interfaces, although
             # mac80211 may not support it or the driver might not yet
             # for ap mode this is handled by hostapd
-            [ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel 
"$channel"
+            config_get htmode "$device" htmode
+            case "$htmode" in
+                HT20|HT40+|HT40-) ;;
+                *) htmode= ;;
+            esac
+            [ -n "$fixed" -a -n "$channel" ] && iw dev "$ifname" set channel 
"$channel" $htmode
         fi
 
         i=$(($i + 1))

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to