[OpenWrt-Devel] [PATCH 1/3] Support VHT for ibss.

greearb at candelatech.com greearb at candelatech.com
Thu Jan 19 18:14:33 EST 2017


From: Ben Greear <greearb at candelatech.com>

Signed-off-by: Ben Greear <greearb at candelatech.com>
---
 package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index fb2f928..ea6abe5 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -495,8 +495,8 @@ mac80211_setup_supplicant() {
 
 mac80211_setup_adhoc_htmode() {
 	case "$htmode" in
-		VHT20|HT20) ibss_htmode=HT20;;
-		HT40*|VHT40|VHT80|VHT160)
+		VHT20|HT20|VHT40|VHT160) ibss_htmode="$htmode";;
+		HT40*)
 			case "$hwmode" in
 				a)
 					case "$(( ($channel / 4) % 2 ))" in
@@ -520,6 +520,9 @@ mac80211_setup_adhoc_htmode() {
 			esac
 			[ "$auto_channel" -gt 0 ] && ibss_htmode="HT40+"
 		;;
+		VHT80)
+			ibss_htmode="80MHz"
+		;;
 		NONE|NOHT)
 			ibss_htmode="NOHT"
 		;;
-- 
2.4.11
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list