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

Submitted by Ben Greear on Jan. 19, 2017, 11:14 p.m.

Details

Message ID 1484867675-27303-1-git-send-email-greearb@candelatech.com
State New
Headers show

Commit Message

Ben Greear Jan. 19, 2017, 11:14 p.m.
From: Ben Greear <greearb@candelatech.com>

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

Patch hide | download patch | download mbox

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"
 		;;