public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/7] Do not read band-dependent reserved bits
@ 2026-04-10 19:03 Pablo Martin-Gomez
  2026-04-10 19:03 ` [RFC PATCH 1/7] wifi: nl80211: remove EHT IE size validation Pablo Martin-Gomez
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: Pablo Martin-Gomez @ 2026-04-10 19:03 UTC (permalink / raw)
  To: Johannes Berg; +Cc: linux-wireless, Pablo Martin-Gomez

This series is a recyclying and extension of a previous attempt [1] to 
not read reserved bits depending on the current band for HE/EHT STAs.

Convention (section 9.2.2 of 802.11-2024) states that reserved bits
should be set to 0 (unless stated otherwise) and not to be read. Some
STAs do not respect the convention in transmission and the kernel do not
respect the convention in reception. The practical effect can be a
really low throughtput between a MT7927 Windows STA and a ath12k Linux AP.

I've been quite drastic and added a check of the current band before
read a bit that might be reserved whatever it's from an IE that was
received or an IE will be sent. I also removed checks where they didn't
make much sense and the current band was complicated/impossible to
retrieve. That is why I'm positing this as a RFC.

[1]: https://lore.kernel.org/linux-wireless/20250120114551.1542812-1-pmartin-gomez@freebox.fr/


Pablo Martin-Gomez (7):
  wifi: nl80211: remove EHT IE size validation
  wifi: make EHT capa size check not read reserved bits
  wifi: make HE capa size check not read reserved bits
  wifi: do not read band-dependent reserved bits
  wifi: ath11k: do not read band-dependent reserved bits
  wifi: ath12k: do not read band-dependent reserved bits
  wifi: mt76: do not read band-dependent reserved bits

 drivers/net/wireless/ath/ath11k/mac.c         | 11 +--
 drivers/net/wireless/ath/ath12k/mac.c         | 35 +++++----
 .../net/wireless/mediatek/mt76/mt7996/mcu.c   | 16 ++--
 include/linux/ieee80211-eht.h                 | 58 +++++++++------
 include/linux/ieee80211-he.h                  | 21 +++---
 net/mac80211/debugfs_sta.c                    |  7 +-
 net/mac80211/eht.c                            |  3 +-
 net/mac80211/he.c                             | 73 ++++++++++---------
 net/mac80211/mlme.c                           |  7 +-
 net/mac80211/util.c                           | 12 +--
 net/mac80211/vht.c                            |  2 +-
 net/wireless/nl80211.c                        | 31 +++-----
 12 files changed, 149 insertions(+), 127 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-04-15 22:38 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-10 19:03 [RFC PATCH 0/7] Do not read band-dependent reserved bits Pablo Martin-Gomez
2026-04-10 19:03 ` [RFC PATCH 1/7] wifi: nl80211: remove EHT IE size validation Pablo Martin-Gomez
2026-04-10 20:25   ` Johannes Berg
2026-04-10 19:03 ` [RFC PATCH 2/7] wifi: make EHT capa size check not read reserved bits Pablo Martin-Gomez
2026-04-10 20:35   ` Johannes Berg
2026-04-10 19:03 ` [RFC PATCH 3/7] wifi: make HE " Pablo Martin-Gomez
2026-04-10 19:03 ` [RFC PATCH 4/7] wifi: do not read band-dependent " Pablo Martin-Gomez
2026-04-10 19:03 ` [RFC PATCH 5/7] wifi: ath11k: " Pablo Martin-Gomez
2026-04-10 19:03 ` [RFC PATCH 6/7] wifi: ath12k: " Pablo Martin-Gomez
2026-04-10 19:03 ` [RFC PATCH 7/7] wifi: mt76: " Pablo Martin-Gomez
2026-04-15 22:38 ` [RFC PATCH 0/7] Do " Jeff Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox