]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: don't use FW key ID in beacon protection
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Aug 2021 19:47:43 +0000 (22:47 +0300)
committerLuca Coelho <luciano.coelho@intel.com>
Thu, 26 Aug 2021 20:38:18 +0000 (23:38 +0300)
commit6b494ce7b17a50f169f2f03447eaf295f5d4399f
tree7c1408aa61fef245fe019cbc97eb2e3e99858df8
parent97f3c8d4b80e561f80b72cc9207c63dcec3aad31
iwlwifi: mvm: don't use FW key ID in beacon protection

To check beacon protection had a mismatch of the key ID we
currently use the key ID from the firmware, but firmware
side we want to clean up the API to stop reporting this.

Instead, check the IWL_RX_MPDU_STATUS_KEY_VALID bit that
indicates that the firmware used the correct key, and if
that's set but we get invalid MIC/replay use the key ID
from the frame to look up the key and notify mac80211 of
MIC error or replay. Since both keys must have the same
cipher and thus MIC length, we can use either of them to
look up the MIC length.

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.20210826224715.30e665d39b07.I78bf7d304ef5a80cecf5fa1c1fca0b51b956cceb@changeid
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/mvm/rxmq.c