wifi: iwlwifi: mvm: Add support for IGTK in D3 resume flow
authorYedidya Benshimol <yedidya.ben.shimol@intel.com>
Wed, 21 Jun 2023 11:49:52 +0000 (14:49 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jun 2023 12:14:40 +0000 (14:14 +0200)
commit04f78e242fffe6994f7662fb00aaa398dda41d3a
tree7c43a90af44b0f8f87c93808707b22cf2eb45de5
parentfa4e48fb3ee5757d8e0ed1c5079e472687e2c667
wifi: iwlwifi: mvm: Add support for IGTK in D3 resume flow

As part of the new security API in the FW, all security keys are to
be removed before station removal. Until now IGTK rekey
wasn't supported in the D3 resume flow, and thus the driver might
not know the right key to remove.
If an IGTK was rekeyed during D3 the old IGTK is removed and the
new key is updated. If not, the old key's IPN is updated.
As opposed to GTK, which both the FW and the driver hold it's two
most recent keys, only one IGTK is held.

Signed-off-by: Yedidya Benshimol <yedidya.ben.shimol@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230621144844.b53c301c07e6.I375277a10a1f756b93d4a343f6664351a80189c5@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/d3.h
drivers/net/wireless/intel/iwlwifi/mvm/d3.c