mirror_ubuntu-kernels/drivers/net/wireless/intel/iwlwifi/mvm
Johannes Berg 65db391dd8 iwlwifi: mvm: fix beacon protection checks
Unfortunately, since beacon protection isn't fully available
yet, we didn't notice that there are problems with it and
that the replay detection isn't working correctly. We were
relying only on mac80211, since iwl_mvm_rx_crypto() exits
when !ieee80211_has_protected(), which is of course true for
protected (but not encrypted) management frames.

Fix this to properly detect protected (but not encrypted)
management frames and handle them - we continue to only care
about beacons since for others everything can and will be
checked in mac80211.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Fixes: b1fdc2505a ("iwlwifi: mvm: advertise BIGTK client support if available")
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20210326125611.23c990843369.I09c262a8f6f9852cc8f513cdcb31a7f8f87dd8af@changeid
2021-04-06 13:26:36 +03:00
..
binding.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
coex.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
constants.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
d3.c iwlwifi: mvm: global PM mode does not reset after FW crash 2021-02-11 01:57:38 +02:00
debugfs-vif.c iwlwifi: mvm: take mutex for calling iwl_mvm_get_sync_time() 2021-01-25 15:52:47 +02:00
debugfs.c iwlwifi: mvm: rfi: don't lock mvm->mutex when sending config command 2021-04-06 13:26:25 +03:00
debugfs.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ftm-initiator.c iwlwifi: mvm: add size checks for range response notification 2020-12-10 00:16:06 +02:00
ftm-responder.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
fw-api.h iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
fw.c iwlwifi: mvm: add terminate entry for dmi_system_id tables 2021-03-03 17:56:11 +02:00
led.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
mac80211.c iwlmvm: set properly NIC_NOT_ACK_ENABLED flag 2021-02-11 01:52:11 +02:00
mac-ctxt.c iwlwifi: mvm: add notification size checks 2021-02-05 11:52:24 +02:00
Makefile iwlwifi: mvm: add RFI-M support 2021-02-11 01:52:06 +02:00
mvm.h iwlwifi: mvm: simplify iwl_mvm_dbgfs_register 2021-02-11 01:52:07 +02:00
nvm.c cfg80211: avoid holding the RTNL when calling the driver 2021-01-26 11:55:50 +01:00
offloading.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
ops.c iwlwifi: mvm: get NVM later in the mvm_start flow 2021-02-11 01:52:11 +02:00
phy-ctxt.c iwlwifi: mvm: Fix fall-through warnings for Clang 2020-12-11 20:20:24 +02:00
power.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
quota.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
rfi.c iwlwifi: mvm: rfi: don't lock mvm->mutex when sending config command 2021-04-06 13:26:25 +03:00
rs-fw.c iwlwifi: mvm: slightly clean up rs_fw_set_supp_rates() 2021-02-05 11:56:42 +02:00
rs.c iwlwifi: mvm: rs: Demote non-conformant function documentation headers 2020-12-11 20:24:20 +02:00
rs.h iwlwifi: mvm: in VHT connection use only VHT capabilities 2019-11-15 09:31:56 +02:00
rx.c iwlwifi: mvm: check more notification sizes 2021-02-05 11:52:27 +02:00
rxmq.c iwlwifi: mvm: fix beacon protection checks 2021-04-06 13:26:36 +03:00
scan.c iwlwifi: mvm: Support SCAN_CFG_CMD version 5 2021-02-11 01:52:08 +02:00
sf.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
sta.c iwlwifi patches intended for v5.12 2021-02-08 18:52:00 +02:00
sta.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tdls.c iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
testmode.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
time-event.c iwlwifi: mvm: don't check if CSA event is running before removing 2021-02-11 01:52:09 +02:00
time-event.h iwlwifi: use SPDX tags 2020-12-10 00:15:31 +02:00
tt.c iwlwifi: mvm: reduce the print severity of failing getting NIC temp 2021-02-11 01:57:37 +02:00
tx.c iwlwifi: when HW has rate offload don't look at control field 2021-02-10 14:37:30 +02:00
utils.c iwlwifi: mvm: add IML/ROM information for other HW families 2021-02-05 11:57:41 +02:00