[openwrt/openwrt] mac80211: use 802.11ax iw modes

LEDE Commits lede-commits at lists.infradead.org
Sat Jan 28 06:12:01 PST 2023


blocktrron pushed a commit to openwrt/openwrt.git, branch openwrt-22.03:
https://git.openwrt.org/ddeeb350073f02a4e337adfef34a0e9ca817bc06

commit ddeeb350073f02a4e337adfef34a0e9ca817bc06
Author: David Bauer <mail at david-bauer.net>
AuthorDate: Sat Jan 28 13:50:17 2023 +0100

    mac80211: use 802.11ax iw modes
    
    This adds missing HE modes to mac80211_prepare_ht_modes.
    
    Previously mesh without wpa_supplicant would be initialized with 802.11g
    /NO-HT only, as this method did not parse channel bandwidth for HE
    operation.
    
    Signed-off-by: David Bauer <mail at david-bauer.net>
    (cherry picked from commit a63430eac33ceb1dbf96d3667e2a0f2e04ba391f)
---
 package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
index daa54949a0..5fda6d1739 100644
--- a/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
+++ b/package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh
@@ -800,8 +800,8 @@ mac80211_setup_supplicant_noctl() {
 
 mac80211_prepare_iw_htmode() {
 	case "$htmode" in
-		VHT20|HT20) iw_htmode=HT20;;
-		HT40*|VHT40|VHT160)
+		VHT20|HT20|HE20) iw_htmode=HT20;;
+		HT40*|VHT40|VHT160|HE40)
 			case "$band" in
 				2g)
 					case "$htmode" in
@@ -825,7 +825,7 @@ mac80211_prepare_iw_htmode() {
 			esac
 			[ "$auto_channel" -gt 0 ] && iw_htmode="HT40+"
 		;;
-		VHT80)
+		VHT80|HE80)
 			iw_htmode="80MHZ"
 		;;
 		NONE|NOHT)




More information about the lede-commits mailing list