linux-yocto/drivers/net/wireless/intel/iwlwifi
Johannes Berg 7245012f0f wifi: iwlwifi: mvm: fix 6 GHz scan construction
If more than 255 colocated APs exist for the set of all
APs found during 2.4/5 GHz scanning, then the 6 GHz scan
construction will loop forever since the loop variable
has type u8, which can never reach the number found when
that's bigger than 255, and is stored in a u32 variable.
Also move it into the loops to have a smaller scope.

Using a u32 there is fine, we limit the number of APs in
the scan list and each has a limit on the number of RNR
entries due to the frame size. With a limit of 1000 scan
results, a frame size upper bound of 4096 (really it's
more like ~2300) and a TBTT entry size of at least 11,
we get an upper bound for the number of ~372k, well in
the bounds of a u32.

Cc: stable@vger.kernel.org
Fixes: eae94cf82d ("iwlwifi: mvm: add support for 6GHz")
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=219375
Link: https://patch.msgid.link/20241023091744.f4baed5c08a1.I8b417148bbc8c5d11c101e1b8f5bf372e17bf2a7@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2024-10-25 17:53:47 +02:00
..
cfg wifi: iwlwifi: bump FW API to 93 for BZ/SC devices 2024-08-27 10:28:55 +02:00
dvm move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
fw wifi: iwlwifi: mvm: SAR table alignment 2024-10-25 17:53:31 +02:00
mei wifi: iwlwifi: mei: add support for SAP version 4 2024-08-27 10:14:27 +02:00
mvm wifi: iwlwifi: mvm: fix 6 GHz scan construction 2024-10-25 17:53:47 +02:00
pcie wireless-next patches for v6.12 2024-09-04 17:20:14 -07:00
tests Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
iwl-agn-hw.h
iwl-config.h wifi: iwlwifi: config: label 'gl' devices as discrete 2024-08-27 10:14:27 +02:00
iwl-context-info-gen3.h wifi: iwlwifi: Force SCU_ACTIVE for specific platforms 2024-05-06 16:33:26 +02:00
iwl-context-info.h
iwl-csr.h wifi: iwlwifi: fix remaining mistagged kernel-doc comments 2024-06-26 10:35:15 +02:00
iwl-dbg-tlv.c wifi: iwlwifi: Remove debug message 2024-07-04 13:50:06 +02:00
iwl-dbg-tlv.h wifi: iwlwifi: mvm: add a debugfs hook to clear the monitor data 2023-12-12 10:36:59 +01:00
iwl-debug.c
iwl-debug.h
iwl-devtrace-data.h wifi: iwlwifi: simplify TX tracing 2024-05-23 10:53:03 +02:00
iwl-devtrace-io.h
iwl-devtrace-iwlwifi.h wifi: iwlwifi: simplify TX tracing 2024-05-23 10:53:03 +02:00
iwl-devtrace-msg.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
iwl-devtrace-ucode.h
iwl-devtrace.c wifi: iwlwifi: refactor RX tracing 2023-12-12 10:36:59 +01:00
iwl-devtrace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00
iwl-drv.c Revert "wifi: iwlwifi: remove retry loops in start" 2024-10-25 17:53:37 +02:00
iwl-drv.h Revert "wifi: iwlwifi: remove retry loops in start" 2024-10-25 17:53:37 +02:00
iwl-fh.h wifi: iwlwifi: fix kernel-doc in iwl-fh.h 2024-06-26 10:35:15 +02:00
iwl-io.c wifi: iwlwifi: pcie: fix a few legacy register accesses for new devices 2024-06-26 10:28:21 +02:00
iwl-io.h
iwl-modparams.h wifi: iwlwifi: move amsdu_size parsing to iwlwifi 2024-05-29 10:34:07 +02:00
iwl-nvm-parse.c wifi: iwlwifi: mvm: don't limit VLP/AFC to UATS-enabled 2024-06-26 10:28:51 +02:00
iwl-nvm-parse.h wifi: iwlwifi: fix prototype mismatch kernel-doc warnings 2024-06-26 10:35:15 +02:00
iwl-nvm-utils.c wifi: iwlwifi: move code from iwl-eeprom-parse to dvm 2024-05-23 10:53:04 +02:00
iwl-nvm-utils.h wifi: iwlwifi: move code from iwl-eeprom-parse to dvm 2024-05-23 10:53:04 +02:00
iwl-op-mode.h wifi: iwlwifi: mvm: fix hibernation 2024-08-26 17:35:22 +02:00
iwl-phy-db.c
iwl-phy-db.h
iwl-prph.h wifi: iwlwifi: fix remaining mistagged kernel-doc comments 2024-06-26 10:35:15 +02:00
iwl-scd.h
iwl-trans.c wifi: iwlwifi: trans: make bad state warnings 2024-06-26 10:35:14 +02:00
iwl-trans.h wireless-next patches for v6.12 2024-09-04 17:20:14 -07:00
Kconfig wifi: iwlwifi: add kunit test for devinfo ordering 2024-01-26 09:47:11 +01:00
Makefile wifi: iwlwifi: pcie: integrate TX queue code 2024-06-12 13:04:27 +02:00