]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
wifi: cfg80211: include s1g_primary_2mhz when comparing chandefs
authorLachlan Hodges <lachlan.hodges@morsemicro.com>
Tue, 25 Nov 2025 02:59:26 +0000 (13:59 +1100)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 25 Nov 2025 09:31:28 +0000 (10:31 +0100)
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>
include/net/cfg80211.h

index 3d3ed19322621364152f22d82a39b0ad101a3957..899f267b7cf914bb5d50aaa78197eacee99719b4 100644 (file)
@@ -974,7 +974,8 @@ cfg80211_chandef_identical(const struct cfg80211_chan_def *chandef1,
                chandef1->center_freq1 == chandef2->center_freq1 &&
                chandef1->freq1_offset == chandef2->freq1_offset &&
                chandef1->center_freq2 == chandef2->center_freq2 &&
-               chandef1->punctured == chandef2->punctured);
+               chandef1->punctured == chandef2->punctured &&
+               chandef1->s1g_primary_2mhz == chandef2->s1g_primary_2mhz);
 }
 
 /**