Skip to content

Commit 3fc830c

Browse files
donnaskiezjmberg-intel
authored andcommitted
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>
1 parent 24d4da5 commit 3fc830c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

net/wireless/nl80211.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4178,6 +4178,9 @@ int nl80211_send_chandef(struct sk_buff *msg, const struct cfg80211_chan_def *ch
41784178
if (chandef->punctured &&
41794179
nla_put_u32(msg, NL80211_ATTR_PUNCT_BITMAP, chandef->punctured))
41804180
return -ENOBUFS;
4181+
if (chandef->s1g_primary_2mhz &&
4182+
nla_put_flag(msg, NL80211_ATTR_S1G_PRIMARY_2MHZ))
4183+
return -ENOBUFS;
41814184

41824185
return 0;
41834186
}

0 commit comments

Comments
 (0)