wifi: iwlwifi: mvm: use correct key iteration
authorJohannes Berg <johannes.berg@intel.com>
Mon, 29 Jul 2024 17:20:05 +0000 (20:20 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 27 Aug 2024 08:14:26 +0000 (10:14 +0200)
commit4f1591d292277eec51d027405a92f0d4ef5e299e
treecbc6fb8f0a7cc34b181d3df75c3a693f093880d0
parentcb2b6ce8b2e9289b95d6b997eecdf3083107acad
wifi: iwlwifi: mvm: use correct key iteration

In the cases changed here, key iteration isn't done from
an RCU critical section, but rather using the wiphy lock
as protection. Therefore, just use ieee80211_iter_keys().
The link switch case can therefore also use sync commands.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20240729201718.69a2d18580c1.I2148e04d4b467d0b100beac8f7e449bfaaf775a5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/mld-key.c