Linux wireless drivers development
 help / color / mirror / Atom feed
From: Jeff Isaacs <scaasiffej@gmail.com>
To: linux-wireless@vger.kernel.org
Cc: Johannes Berg <johannes@sipsolutions.net>,
	Jeff Isaacs <scaasiffej@gmail.com>
Subject: [PATCH] wifi: mac80211: always mark 6 GHz BSS as QoS/EDCA capable
Date: Tue,  9 Sep 2025 09:55:10 -0400	[thread overview]
Message-ID: <20250909135510.757750-1-scaasiffej@gmail.com> (raw)

In 6 GHz, QoS/EDCA operation is mandatory as per IEEE 802.11ax/802.11be.
APs are not required to include a WMM Information or WMM Parameter
element in Beacon or Probe Response frames, unlike in 2.4/5 GHz.
Instead, stations must assume that QoS is always enabled and use EDCA
(default EDCA parameters apply if no explicit EDCA Parameter Set is
present).

Currently, mac80211 only sets bss->wmm_used when a WMM IE is present.
When it is missing in 6 GHz, mac80211 wrongly downgrades the connection
to legacy rates, resulting in unsuccessful authentication and association.

Users see log messages like

    "WMM/QoS not supported, limiting to legacy"
    "Rejecting non-HE 6/7 GHz connection"

Fix this by unconditionally setting bss->wmm_used = true for 6 GHz BSSs
during scan result processing. This ensures that mac80211 maintains HE/EHT
capabilities even when the WMM IE is absent.

Signed-off-by: Jeff Isaacs <scaasiffej@gmail.com>
---
 net/mac80211/scan.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/net/mac80211/scan.c b/net/mac80211/scan.c
index dbf98aa4cd67..ecf0690d8c08 100644
--- a/net/mac80211/scan.c
+++ b/net/mac80211/scan.c
@@ -142,6 +142,10 @@ void ieee80211_inform_bss(struct wiphy *wiphy,
 			bss->valid_data |= IEEE80211_BSS_VALID_WMM;
 	}
 
+	if (cbss->channel->band == NL80211_BAND_6GHZ) {
+		bss->wmm_used = true;
+	}
+
 	if (update_data->beacon) {
 		struct ieee80211_supported_band *sband =
 			local->hw.wiphy->bands[rx_status->band];
-- 
2.51.0


             reply	other threads:[~2025-09-09 13:56 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-09 13:55 Jeff Isaacs [this message]
2025-09-09 13:57 ` [PATCH] wifi: mac80211: always mark 6 GHz BSS as QoS/EDCA capable Johannes Berg
2025-09-09 23:19   ` Jeff Isaacs
2025-09-10  7:01     ` Johannes Berg
2025-09-10 21:04       ` Jeff Isaacs
2025-09-15  8:53         ` Johannes Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250909135510.757750-1-scaasiffej@gmail.com \
    --to=scaasiffej@gmail.com \
    --cc=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox