public inbox for linux-wireless@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH wireless-next v3 0/3] misc chandef cleanups
@ 2026-03-12  4:58 Lachlan Hodges
  2026-03-12  4:58 ` [PATCH wireless-next v3 1/3] wifi: mac80211: don't use cfg80211_chandef_create() for default chandef Lachlan Hodges
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Lachlan Hodges @ 2026-03-12  4:58 UTC (permalink / raw)
  To: johannes; +Cc: linux-wireless, arien.judge, Lachlan Hodges

It was discussed in [1] that calling cfg80211_create_chandef() probably
doesn't make the most sense for non-HT based bands (that being S1G and
60GHz currently). Even though it's called fairly frequently, most of
those paths are unrelated or not supported yet. However creating
the default chandef is one. So creating a helper specifically for
creating the default chandef which is band-agnostic makes more
sense. Additionally, insert a WARN into cfg80211_chandef_create() to
catch any misuses by S1G and 60GHz bands.

hwsim tests were run just to double check nothing broke on hostap
tip 11620497a ("EPPKE: Do not start Authenticator state machine on
reassociation") and wireless-next 97492c019da4 ("wifi: mwifiex: drop
redundant device reference").

The 3rd patch adds some simple validation for when we have an S1G
chandef but a non-S1G width to catch any weird corner cases like one
discussed in [2].

[1] https://lore.kernel.org/linux-wireless/6832f8f0b516157452bd9c23b7c7af087d63d425.camel@sipsolutions.net/T/#mdd8f8115f3c8195638568cface3e20ab777f9f33
[2] https://lore.kernel.org/linux-wireless/20260311061800.517849-1-lachlan.hodges@morsemicro.com/

lachlan

Lachlan Hodges (3):
  wifi: mac80211: don't use cfg80211_chandef_create() for default
    chandef
  wifi: cfg80211: restrict cfg80211_chandef_create() to only HT-based
    bands
  wifi: cfg80211: check non-S1G width with S1G chandef

 net/mac80211/main.c | 18 +++++++++++++++---
 net/wireless/chan.c | 12 +++++++++++-
 2 files changed, 26 insertions(+), 4 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2026-03-13 11:41 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-12  4:58 [PATCH wireless-next v3 0/3] misc chandef cleanups Lachlan Hodges
2026-03-12  4:58 ` [PATCH wireless-next v3 1/3] wifi: mac80211: don't use cfg80211_chandef_create() for default chandef Lachlan Hodges
2026-03-12  4:58 ` [PATCH wireless-next v3 2/3] wifi: cfg80211: restrict cfg80211_chandef_create() to only HT-based bands Lachlan Hodges
2026-03-12  4:58 ` [PATCH wireless-next v3 3/3] wifi: cfg80211: check non-S1G width with S1G chandef Lachlan Hodges
2026-03-12  5:02   ` Lachlan Hodges
2026-03-12  5:06 ` [PATCH wireless-next v3 0/3] misc chandef cleanups Lachlan Hodges
2026-03-13  8:45 ` [syzbot ci] " syzbot ci
2026-03-13  9:05   ` Johannes Berg
2026-03-13  9:48     ` Lachlan Hodges
2026-03-13 11:41       ` Johannes Berg

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