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: include s1g_primary_2mhz when sending chandef

The chandef now includes a flag denoting the use of a 2MHz primary
channel for S1G interfaces, include this when sending the chandef.

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

authored by

Lachlan Hodges and committed by
Johannes Berg
3fc830cd 24d4da5c

+3
+3
net/wireless/nl80211.c
··· 4178 4178 if (chandef->punctured && 4179 4179 nla_put_u32(msg, NL80211_ATTR_PUNCT_BITMAP, chandef->punctured)) 4180 4180 return -ENOBUFS; 4181 + if (chandef->s1g_primary_2mhz && 4182 + nla_put_flag(msg, NL80211_ATTR_S1G_PRIMARY_2MHZ)) 4183 + return -ENOBUFS; 4181 4184 4182 4185 return 0; 4183 4186 }