Skip to content

Commit cba1ba1

Browse files
donnaskiezjmberg-intel
authored andcommitted
wifi: cfg80211: include s1g_primary_2mhz when comparing chandefs
When comparing chandefs, ensure we include s1g_primary_2mhz. Signed-off-by: Lachlan Hodges <lachlan.hodges@morsemicro.com> Link: https://patch.msgid.link/20251125025927.245280-3-lachlan.hodges@morsemicro.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 3fc830c commit cba1ba1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/net/cfg80211.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,8 @@ cfg80211_chandef_identical(const struct cfg80211_chan_def *chandef1,
974974
chandef1->center_freq1 == chandef2->center_freq1 &&
975975
chandef1->freq1_offset == chandef2->freq1_offset &&
976976
chandef1->center_freq2 == chandef2->center_freq2 &&
977-
chandef1->punctured == chandef2->punctured);
977+
chandef1->punctured == chandef2->punctured &&
978+
chandef1->s1g_primary_2mhz == chandef2->s1g_primary_2mhz);
978979
}
979980

980981
/**

0 commit comments

Comments
 (0)