Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

wifi: cfg80211: check non-S1G width with S1G chandef

It is not valid to have an S1G chandef with a non-S1G width. Enforce
this during chandef validation.

Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20260312045804.362974-4-lachlan.hodges@morsemicro.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Lachlan Hodges and committed by
Johannes Berg
7218d8e9 92d77e06

+8
+8
net/wireless/chan.c
··· 405 405 406 406 control_freq = chandef->chan->center_freq; 407 407 408 + if (cfg80211_chandef_is_s1g(chandef) && 409 + chandef->width != NL80211_CHAN_WIDTH_1 && 410 + chandef->width != NL80211_CHAN_WIDTH_2 && 411 + chandef->width != NL80211_CHAN_WIDTH_4 && 412 + chandef->width != NL80211_CHAN_WIDTH_8 && 413 + chandef->width != NL80211_CHAN_WIDTH_16) 414 + return false; 415 + 408 416 switch (chandef->width) { 409 417 case NL80211_CHAN_WIDTH_5: 410 418 case NL80211_CHAN_WIDTH_10: