Commit cba1ba11 authored by Lachlan Hodges's avatar Lachlan Hodges Committed by Johannes Berg
Browse files

wifi: cfg80211: include s1g_primary_2mhz when comparing chandefs



When comparing chandefs, ensure we include s1g_primary_2mhz.

Signed-off-by: default avatarLachlan Hodges <lachlan.hodges@morsemicro.com>
Link: https://patch.msgid.link/20251125025927.245280-3-lachlan.hodges@morsemicro.com


Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 3fc830cd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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);
}

/**