]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: set replay counter on key install
authorJohannes Berg <johannes.berg@intel.com>
Mon, 2 Aug 2021 14:28:19 +0000 (17:28 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Aug 2021 20:33:21 +0000 (23:33 +0300)
commita97944bebd9a02ee755b21f2eab3963a4d1bf6b4
tree1d64e71328e1f7c73dcd8989d721d35d92e7923c
parent96cca181dee352209c2050c23e38f9be9d940dc9
iwlwifi: mvm: set replay counter on key install

When installing a (new) key, set the replay counter so that
after FW restart the firmware has the correct value of the
replay counters.

This doesn't have a large effect - for frames that reach
the driver, it will do a replay check, and when installing
a new key, the counter is normally zero to start with (not
for GTK though, if joining the BSS for the first time).

Since this only affects frames handled entirely by the FW,
and that's restricted to a few unicast management frames,
the only affect here is for those after a firmware restart.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Link: https://lore.kernel.org/r/iwlwifi.20210802172232.1cedf2ca7bb6.I2e609c28eaa301436e6740f4f1beca838f69a96a@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/sta.c