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: default S1G chandef width to 1MHz

When management frames are passed down to be transmitted by usermode, often
times the NL80211_ATTR_CHANNEL_WIDTH is not used as its implied to be
transmitted on the control width. This can lead to errors during chandef
validation as the offsets from the channel center are wrong. Ensure we
initialise S1G chandefs to a width of 1MHz rather then 20MHz.

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

authored by

Lachlan Hodges and committed by
Johannes Berg
bca76b87 ad55aa3a

+3
+3
net/wireless/nl80211.c
··· 3544 3544 return -EINVAL; 3545 3545 } 3546 3546 3547 + if (cfg80211_chandef_is_s1g(chandef)) 3548 + chandef->width = NL80211_CHAN_WIDTH_1; 3549 + 3547 3550 if (attrs[NL80211_ATTR_WIPHY_CHANNEL_TYPE]) { 3548 3551 enum nl80211_channel_type chantype; 3549 3552