Skip to content

misc chandef cleanups

Lachlan Hodges linux-wireless syzbot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest3 patches 5 repliesIn review

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3wifi: mac80211: don't use cfg80211_chandef_create() for default chandefnet/mac80211/main.c+15 -30 replies
2/3wifi: cfg80211: restrict cfg80211_chandef_create() to only HT-based bandsnet/wireless/chan.c+3 -10 replies
3/3wifi: cfg80211: check non-S1G width with S1G chandefnet/wireless/chan.c+8 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH wireless-next v3 0/3] misc chandef cleanups

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/[email protected]/T/#mdd8f8115f3c8195638568cface3e20ab777f9f33
[2] https://lore.kernel.org/linux-wireless/[email protected]/

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(-)
Signature · 1 line
2.43.0