aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-05-15 09:36:02 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-05-15 09:36:02 +0000
commitaa991a6fafb558c1653714aae4fb68492a801471 (patch)
treecb8e6129a776e090e14a48d8cf31874df2de9ab9 /package/mac80211
parent6f7b2ac2c671c61349340f6a334d79a606a77c11 (diff)
downloadmaster-187ad058-aa991a6fafb558c1653714aae4fb68492a801471.tar.gz
master-187ad058-aa991a6fafb558c1653714aae4fb68492a801471.tar.bz2
master-187ad058-aa991a6fafb558c1653714aae4fb68492a801471.zip
mac80211: add HT support for mesh
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 For my test setup the speed increased from 1-2 Mbytes/sec to 8-10 Mbytes/sec (iperf) Signed-off-by: Etienne CHAMPETIER <etienne.champetier@free.fr> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36639 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/mac80211')
-rw-r--r--package/mac80211/files/lib/wifi/mac80211.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/mac80211/files/lib/wifi/mac80211.sh b/package/mac80211/files/lib/wifi/mac80211.sh
index 081dc4d886..580a6ded4b 100644
--- a/package/mac80211/files/lib/wifi/mac80211.sh
+++ b/package/mac80211/files/lib/wifi/mac80211.sh
@@ -411,7 +411,12 @@ enable_mac80211() {
# 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))