]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: iwlwifi: mld: don't check the cipher on resume
authorMiri Korenblit <miriam.rachel.korenblit@intel.com>
Tue, 26 Aug 2025 15:54:50 +0000 (18:54 +0300)
committerMiri Korenblit <miriam.rachel.korenblit@intel.com>
Thu, 28 Aug 2025 06:56:42 +0000 (09:56 +0300)
commitda707495680bb429020c15c8f8daa744b08e11c4
tree36f6c360aae4de0ec3c6068bf2d8fd6248c87184
parent433570ee392f2f8f792a454bc2d34a4d3ce8d47d
wifi: iwlwifi: mld: don't check the cipher on resume

On resume, we are iterating all the keys in order to update the PN.
Currently we check the cipher of the key we are currently iterating on
to decide whether the key is PTK, GTK, IGTK or BIGTK.
But we can find the type of the key by the keyidx, and we anyway have to
check the keyidx, so just remove the cipher switch case and check only
the keyidx instead

Reviewed-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250826184046.8c4f9c30242c.Ie34c200f321aae60771476fa9907c333a8a99747@changeid
drivers/net/wireless/intel/iwlwifi/mld/d3.c