]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: mld: fix chandef start calculation
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 11 Jan 2026 17:39:12 +0000 (19:39 +0200)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:20:27 +0000 (07:20 -0500)
commite89fc138906f0d4e575fec17ae83ba3715395164
tree5bcb27685d9d6bcfd2b16e5c35018f26c3c41ccd
parent2b4b1510aaaf5b9fb57327ecffc20c055f61f205
wifi: iwlwifi: mld: fix chandef start calculation

[ Upstream commit d2fcdf36554316cc51f7928b777944738d06e332 ]

A link pair in which both links are in 5 GHz can be used for EMLSR only
if they are separated enough.

To check this condition we calculate the start and the end of the
chandefs of both links in the pair and do some checks.

But the calculation of the start/end of the chandef is currently done
by subtracting/adding half the bandwidth from/to the control channel's
center frequency, when it should really be subtracted/added from/to the
center frequency of the entire chandef.

Fix the wrong calculation.

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20260111193638.2138fdb99bd5.I4d2e5957b22482a57b1d6ca444e90fcf73bf2cab@changeid
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mld/mlo.c