]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: iwlwifi: mvm: fix iwl_ssid_exist() check
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Sun, 29 Dec 2024 14:44:45 +0000 (16:44 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2025 14:26:42 +0000 (15:26 +0100)
commit2ce67f8bf1ce11549c055bd64fa382c511c1af9b
tree0aa97ee4166d6b54dc7e238c6850998c85bccb58
parent703f341e9931791634eb2d10941d281ca3928815
wifi: iwlwifi: mvm: fix iwl_ssid_exist() check

iwl_ssid_exist() seems to check if a given ssid/ssid_len already
exists in a given array ssid_list.
Correctly compare the ssid to the SSID of each array element
(with a matching SSID length) to better remove duplicates.

Signed-off-by: Bjoern A. Zeeb <bz@FreeBSD.org>
Sponsored by: The FreeBSD Foundation
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Reviewed-by: Daniel Gabay <daniel.gabay@intel.com>
Link: https://patch.msgid.link/20241229164246.4471cd3d8dba.Iab8409b22bf6f01d05571ecef1e97dd3c8b1cc75@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/scan.c