Skip to contentSkip to conversation

wifi: mac80211: always mark 6 GHz BSS as QoS/EDCA capable

PATCH In review Jeff Isaacs 2 participants 6 messages Sep 9, 2025 – Sep 15, 2025 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 wifi: mac80211: always mark 6 GHz BSS as QoS/EDCA capable

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.

---
 net/mac80211/scan.c | 4 ++++
 1 file changed, 4 insertions(+)
net/mac80211/scan.c +4 -0
index dbf98aa4cd67..ecf0690d8c08 100644
@@ -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];
Signature · 1 line
2.51.0
maintainer
#1 lore raw
Quoted 6 lines · Jeff Isaacs

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).

What? You really need to back up that assertion.

johannes

#2 lore raw

Ok yeah I should have included a bit more info to begin with. First, I will defend my assertion, then I will give more details on the motivation behind this patch.

802.11ax-2021 §26.17.2.1 -
"A STA that supports operation in the 6 GHz band sets dot11HE6GOptionImplemented to true."
"A STA 6G shall not transmit an HT Capabilities element, VHT Capabilities element, HT Operation element, VHT Operation element, or an HE Operation element that contains a VHT Operation Information field."
"A STA 6G shall not transmit an HT PPDU."
"A STA 6G shall not transmit a VHT PPDU."

In other words, 6GHz is for HE and EHT operation only. Legacy operation is not permitted.

802.11ax-2021 §26.17.1 -
"An HE STA operating in the 6 GHz band is a VHT STA, except that it is exempt from following VHT and HT functionalities and/or requirements that are not applicable or that are superseded by equivalent HE functionalities and/or requirements (see Clause 26 and Clause 27) and except that it shall use the HE format instead of the VHT, HT_GF, or HT_MF format for PPDUs transmitted in the 6 GHz band. Additional HE functionalities and/or requirements for the 6 GHz band are defined in 26.17.2."

Likewise, a VHT STA is an HT STA, and an HT STA is a QoS STA. In 2.4 / 5 GHz, WiFi is fully backward compatible with legacy standards. When a beacon frame is captured in the lower spectrum that is missing the WMM IE, authentication / association can still proceed, but communication will be limited to non-HT rates.

In 6 GHz, the chain of backwards compatibility is broken. WiFi devices operating in 6 GHz must at minimum support HE. And all HE STA must support WMM/QoS.

So the current logic in mac80211 to downgrade to legacy in absence of the WMM IE is flawed when the beacon is captured on 6 GHz, because any STA operating in 6 GHz must be at least implement HE and all of its required features.

One more supporting item from the spec.

802.11-2020 §10.2.3.2 -
"The QoS AP shall announce the EDCA parameters in selected Beacon frames and in all Probe Response and (Re)Association Response frames by the inclusion of the EDCA Parameter Set element using the information from the MIB entries in dot11EDCATable. If no such element has been received (e.g., prior to association in an infrastructure BSS), a non-AP QoS STA shall use the default values for the parameters."

So it is explicitly stated that it is possible that a beacon frame can be received from a QoS AP without the EDCA parameters included. And since a non-AP STA cannot initiate a probe request with a wildcard for the SSID in 6 GHz, it has no choice but to use the default parameter values outlined in the spec until the QoS AP instructs otherwise.

Now for my motivation for introducing this patch. I have observed that the WMM element is not present in beacon frames in the 6 GHz spectrum on the Ruckus R770 when multiple BSSs are packed together using the MBSSID feature. The WMM IE is included in the top-level profile, but not in the non-Tx profiles defined within the MBSSID element. I am in contact with support, but the initial response I got from Ruckus is that this is intentional.

And well it makes sense I guess. If the spec defines default values, and the whole point behind MBSSID is to save airtime for data transmission, then why repeat the same unchanged default QoS values for every BSS. I also figured that they had to go through a lot to get the WiFi 7 certification. If this is truly an error, I would be surprised if I'm the first to
notice it, given that the R770 shipped out beginning in 2023 :)

So I dug through the spec, and ended up with this chain of reasoning for why the WMM IE is not required in 6 GHz.

Jeff

Quoted 12 lines · Johannes Berg
Quoted 6 lines · Jeff Isaacs

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).

What? You really need to back up that assertion.

johannes

maintainer
#3 lore raw
Quoted 3 lines · Jeff Isaacs

Ok yeah I should have included a bit more info to begin with. First, I will defend my assertion, then I will give more details on the motivation behind this patch.

:)

I'll point out first that this area is actually rather complex because nobody is actually implementing QoS as written in the spec, but rather WMM as documented by the relevant WFA spec, and then assumes it satisfies the QoS requirements in the 802.11 spec (e.g. for HT/... STAs)

Quoted 1 line

[snip]

Sure, a 6G STA is a QoS STA. That doesn't mean a 6G AP STA is exempt from actually announcing the QoS parameters.

Quoted 4 lines

So the current logic in mac80211 to downgrade to legacy in absence of the WMM IE is flawed when the beacon is captured on 6 GHz, because any STA operating in 6 GHz must be at least implement HE and all of its required features.

It isn't: we internally first downgrade to legacy (because all of HT and higher require QoS/WMM) and then don't connect because HE is required and we cannot connect as a non-HE STA on 6 GHz.

Quoted 10 lines

One more supporting item from the spec.

802.11-2020 §10.2.3.2 -
"The QoS AP shall announce the EDCA parameters in selected Beacon frames and in all Probe Response and (Re)Association Response frames by the inclusion of the EDCA Parameter Set element using the information from the MIB entries in dot11EDCATable. If no such element has been received (e.g., prior to association in an infrastructure BSS), a non-AP QoS STA shall use the default values for the parameters."

Quoted 5 lines

So it is explicitly stated that it is possible that a beacon frame can be received from a QoS AP without the EDCA parameters included. And since a non-AP STA cannot initiate a probe request with a wildcard for the SSID in 6 GHz, it has no choice but to use the default parameter values outlined in the spec until the QoS AP instructs otherwise.

Here in some way the difference between WMM and QoS becomes relevant, but even if we read this as WMM==QoS, I'm not sure I agree.

I suppose this is an interpretation matter, but "[t]he QoS AP shall" already _requires_ the QoS AP to include that element. Any deviation from that makes it non-compliant, and there's not much of an assumption on STA behaviour from that point on.

The example in the "If not such element has been received [...]" sentence to me at least implies that these are not meant to be cases where the AP misbehaves if it doesn't include it (which is already established by the first sentence), but is meant for the cases where there's no QoS AP that controlled the parameters, "e.g., prior to association in an infrastructure BSS", or also perhaps when associating to a non-QoS infrastructure BSS, or similar cases.

Quoted 5 lines

Now for my motivation for introducing this patch. I have observed that the WMM element is not present in beacon frames in the 6 GHz spectrum on the Ruckus R770 when multiple BSSs are packed together using the MBSSID feature. The WMM IE is included in the top-level profile, but not in the non-Tx profiles defined within the MBSSID element.

This is a pretty common AP bug around element inheritance [1]. They assume that it's inherited from the transmitting BSS, which is not true. Actually, this is precisely _because_ of the difference between WMM and QoS. If it were QoS elements, it _would_ be inherited, because all elements are inherited unless overwritten in the specific profile. Since it's WMM carried in a vendor element, any other vendor element overrides the inheritance. Therefore, either _none_ or _all_ (intended) vendor elements including WMM must be included in each non-transmitting profile.

[1] Sometimes in MBSSID non-transmitting profiles, sometimes in multi- link profiles, sometimes maybe even both.

Quoted 3 lines

I am in contact
with support, but the initial response I got from Ruckus is that this is intentional.

They're wrong, and even the language you quoted above makes that crystal clear, as does the WMM spec [2]. We've (indirectly) actually discussed this with Ruckus, and they have in fact acknowledged that this is a bug in the AP and that they will fix it.

[2] though that never talks about MBSSID (I think) so you have to read a whole bunch of cross-spec text wrt. inheritance etc.

Quoted 3 lines

And well it makes sense I guess. If the spec defines default values, and the whole point behind MBSSID is to save airtime for data transmission, then why repeat the same unchanged default QoS values for every BSS.

No, see all the discussion above. The default values (in the BSS case) are for when you're connecting to a non-QoS AP and pre-association use cases etc.

Quoted 3 lines

I also figured that they had to go through a lot to get the WiFi 7 certification. If this is truly an error, I would be surprised if I'm the first to notice it, given that the R770 shipped out beginning in 2023 :)

They cannot pass certification with this bug, but it's possible that either they started including more vendor elements since, or changed the configuration in other ways, or the specific MBSSID configuration isn't tested in the certification, etc. But this _is_ validated as part of the certification, if the scenario arises.

Quoted 2 lines

So I dug through the spec, and ended up with this chain of reasoning for why the WMM IE is not required in 6 GHz.

... but it's still wrong since it's a clear *shall* requirement. I hope I've been able to convey that.

Right now, as annoying that may be for you, I'm inclined to not change anything here since multiple AP vendors confronted with this issue have agreed that it's their issue and will be fixed. If we work around it now, they have no incentive to fix their implementation. We have a bit of market power here to push in the right direction, rather than piling on workarounds on our side.

However, if in fact it later turns out that there are unfixable APs out there, then given the reasoning I outlined above for how your argumentation is wrong, I think the only plausible workaround would be to (erroneously!) inherit the vendor WMM element from the transmitting BSS, rather than making assumptions about it. We'd also have to do this for change tracking which makes it all the more complex, and certainly wouldn't want to apply it in strict mode.

johannes

#4 lore raw

Thank you for the very detailed explanation. I completely understand your reasoning to leave things the way they are, and agree that the best course of action is to hold vendors accountable. I will continue pushing Ruckus for a fix in their firmware.

FWIW (probably nothing), after applying the patch and getting past authentication, the association response has the WMM IE and also includes the MU EDCA parameter set, so everything seems to be within spec from that point forward. The sole problem really is the incorrect assumption of inheritance to the non-Tx profiles.

I spent quite a bit of time turning knobs in the Ruckus controller and AP CLI trying to define a different QoS profile per SSID, so that maybe it would be explicit in the non-Tx profile, but it still wouldn't show up until the association response.

I also tried to use iw to set the SSID within a directed probe to the AP over its 6 GHz channel. At least in theory, the AP is supposed to include all QoS params in the response. It didn't work, but even if it did, it's still not an excuse to disclude the params in the beacon frames.

Thanks again for the very detailed response!

Jeff

Quoted 132 lines · Johannes Berg
Quoted 3 lines · Jeff Isaacs

Ok yeah I should have included a bit more info to begin with. First, I will defend my assertion, then I will give more details on the motivation behind this patch.

:)

I'll point out first that this area is actually rather complex because nobody is actually implementing QoS as written in the spec, but rather WMM as documented by the relevant WFA spec, and then assumes it satisfies the QoS requirements in the 802.11 spec (e.g. for HT/... STAs)

Quoted 1 line

[snip]

Sure, a 6G STA is a QoS STA. That doesn't mean a 6G AP STA is exempt from actually announcing the QoS parameters.

Quoted 4 lines

So the current logic in mac80211 to downgrade to legacy in absence of the WMM IE is flawed when the beacon is captured on 6 GHz, because any STA operating in 6 GHz must be at least implement HE and all of its required features.

It isn't: we internally first downgrade to legacy (because all of HT and higher require QoS/WMM) and then don't connect because HE is required and we cannot connect as a non-HE STA on 6 GHz.

Quoted 10 lines

One more supporting item from the spec.

802.11-2020 §10.2.3.2 -
"The QoS AP shall announce the EDCA parameters in selected Beacon frames and in all Probe Response and (Re)Association Response frames by the inclusion of the EDCA Parameter Set element using the information from the MIB entries in dot11EDCATable. If no such element has been received (e.g., prior to association in an infrastructure BSS), a non-AP QoS STA shall use the default values for the parameters."

Quoted 5 lines

So it is explicitly stated that it is possible that a beacon frame can be received from a QoS AP without the EDCA parameters included. And since a non-AP STA cannot initiate a probe request with a wildcard for the SSID in 6 GHz, it has no choice but to use the default parameter values outlined in the spec until the QoS AP instructs otherwise.

Here in some way the difference between WMM and QoS becomes relevant, but even if we read this as WMM==QoS, I'm not sure I agree.

I suppose this is an interpretation matter, but "[t]he QoS AP shall" already _requires_ the QoS AP to include that element. Any deviation from that makes it non-compliant, and there's not much of an assumption on STA behaviour from that point on.

The example in the "If not such element has been received [...]" sentence to me at least implies that these are not meant to be cases where the AP misbehaves if it doesn't include it (which is already established by the first sentence), but is meant for the cases where there's no QoS AP that controlled the parameters, "e.g., prior to association in an infrastructure BSS", or also perhaps when associating to a non-QoS infrastructure BSS, or similar cases.

Quoted 5 lines

Now for my motivation for introducing this patch. I have observed that the WMM element is not present in beacon frames in the 6 GHz spectrum on the Ruckus R770 when multiple BSSs are packed together using the MBSSID feature. The WMM IE is included in the top-level profile, but not in the non-Tx profiles defined within the MBSSID element.

This is a pretty common AP bug around element inheritance [1]. They assume that it's inherited from the transmitting BSS, which is not true. Actually, this is precisely _because_ of the difference between WMM and QoS. If it were QoS elements, it _would_ be inherited, because all elements are inherited unless overwritten in the specific profile. Since it's WMM carried in a vendor element, any other vendor element overrides the inheritance. Therefore, either _none_ or _all_ (intended) vendor elements including WMM must be included in each non-transmitting profile.

[1] Sometimes in MBSSID non-transmitting profiles, sometimes in multi- link profiles, sometimes maybe even both.

Quoted 3 lines

I am in contact
with support, but the initial response I got from Ruckus is that this is intentional.

They're wrong, and even the language you quoted above makes that crystal clear, as does the WMM spec [2]. We've (indirectly) actually discussed this with Ruckus, and they have in fact acknowledged that this is a bug in the AP and that they will fix it.

[2] though that never talks about MBSSID (I think) so you have to read a whole bunch of cross-spec text wrt. inheritance etc.

Quoted 3 lines

And well it makes sense I guess. If the spec defines default values, and the whole point behind MBSSID is to save airtime for data transmission, then why repeat the same unchanged default QoS values for every BSS.

No, see all the discussion above. The default values (in the BSS case) are for when you're connecting to a non-QoS AP and pre-association use cases etc.

Quoted 3 lines

I also figured that they had to go through a lot to get the WiFi 7 certification. If this is truly an error, I would be surprised if I'm the first to notice it, given that the R770 shipped out beginning in 2023 :)

They cannot pass certification with this bug, but it's possible that either they started including more vendor elements since, or changed the configuration in other ways, or the specific MBSSID configuration isn't tested in the certification, etc. But this _is_ validated as part of the certification, if the scenario arises.

Quoted 2 lines

So I dug through the spec, and ended up with this chain of reasoning for why the WMM IE is not required in 6 GHz.

... but it's still wrong since it's a clear *shall* requirement. I hope I've been able to convey that.

Right now, as annoying that may be for you, I'm inclined to not change anything here since multiple AP vendors confronted with this issue have agreed that it's their issue and will be fixed. If we work around it now, they have no incentive to fix their implementation. We have a bit of market power here to push in the right direction, rather than piling on workarounds on our side.

However, if in fact it later turns out that there are unfixable APs out there, then given the reasoning I outlined above for how your argumentation is wrong, I think the only plausible workaround would be to (erroneously!) inherit the vendor WMM element from the transmitting BSS, rather than making assumptions about it. We'd also have to do this for change tracking which makes it all the more complex, and certainly wouldn't want to apply it in strict mode.

johannes

maintainer
#5 lore raw
Quoted 5 lines · Jeff Isaacs

FWIW (probably nothing), after applying the patch and getting past authentication, the association response has the WMM IE and also includes the MU EDCA parameter set, so everything seems to be within spec from that point forward. The sole problem really is the incorrect assumption of inheritance to the non-Tx profiles.

One additional problem though with this is that we're not actually using the intended inherited values, but rather the defaults. That might be OK in the specific situation you have, but might not be OK in general. Also (at least in theory) the QoS/WMM parameters can change during the lifetime of the BSS, and then the station might not know about updates from the beacon since they aren't present in the expected way there.

In both of those cases the station can then cause conflicts with medium use vs. other stations, such as always winning or always losing the race to transmit if there's contention.

Quoted 4 lines

I spent quite a bit of time turning knobs in the Ruckus controller and AP CLI trying to define a different QoS profile per SSID, so that maybe it would be explicit in the non-Tx profile, but it still wouldn't show up until the association response.

That's pretty strange, in that case it shouldn't even be inherited. That almost seems like an additional bug, though chances are when they fix things both will just be fixed.

Quoted 4 lines

I also tried to use iw to set the SSID within a directed probe to the AP over its 6 GHz channel. At least in theory, the AP is supposed to include all QoS params in the response. It didn't work, but even if it did, it's still not an excuse to disclude the params in the beacon frames.

Interesting, not even _that_ worked... oh well.

Quoted 1 line

Thanks again for the very detailed response!

Thanks for understanding! I really do hope they'll fix it soon - FWIW the issue we were already discussing with them (via other parties) was on the same AP model.

johannes