]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: iwlwifi: mvm: fix iwl_mvm_scan_fits() calculation
authorDaniel Gabay <daniel.gabay@intel.com>
Sun, 25 Aug 2024 16:17:05 +0000 (19:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2024 14:25:09 +0000 (16:25 +0200)
commit0d07f12e1f066cf2d49ac09e7129e7f1c8ddf7f9
tree54bfbada9002b8ba951bd74f1b8b6cfcc44f3878
parentdfa94a93f7b7a74bf0468772883094dd54110218
wifi: iwlwifi: mvm: fix iwl_mvm_scan_fits() calculation

[ Upstream commit d44162280899c3fc2c6700e21e491e71c3c96e3d ]

The calculation should consider also the 6GHz IE's len, fix that.
In addition, in iwl_mvm_sched_scan_start() the scan_fits helper is
called only in case non_psc_incldued is true, but it should be called
regardless, fix that as well.

Signed-off-by: Daniel Gabay <daniel.gabay@intel.com>
Reviewed-by: Ilan Peer <ilan.peer@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240825191257.7db825442fd2.I99f4d6587709de02072fd57957ec7472331c6b1d@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c