bianbu-linux-6.6/drivers/net/wireless/intel/iwlwifi/mvm
Sara Sharon fe56d05ee6 iwlwifi: mvm: fix kernel panic in case of assert during CSA
During CSA, we briefly nullify the phy context, in __iwl_mvm_unassign_vif_chanctx.
In case we have a FW assert right after it, it remains NULL though.
We end up running into endless loop due to mac80211 trying repeatedly to
move us to ASSOC state, and we keep returning -EINVAL. Later down the road
we hit a kernel panic.

Detect and avoid this endless loop.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/iwlwifi.20201107104557.d64de2c17bff.Iedd0d2afa20a2aacba5259a5cae31cb3a119a4eb@changeid
2020-11-10 20:45:36 +02:00
..
binding.c iwlwifi: mvm: add a get lmac id function 2020-10-08 20:09:36 +03:00
coex.c iwlwifi: mvm: stop supporting swcrypto and bt_coex_active module parameters 2020-05-08 09:50:52 +03:00
constants.h iwlwifi: mvm: Add FTM initiator RTT smoothing logic 2020-10-01 22:00:55 +03:00
d3.c iwlwifi: mvm: fix suspicious rcu usage warnings 2020-10-08 20:14:53 +03:00
debugfs-vif.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-05-02 22:14:21 -04:00
debugfs.c iwlwifi: mvm: get number of stations from TLV 2020-10-08 20:09:25 +03:00
debugfs.h iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
ftm-initiator.c iwlwifi: mvm: initiator: add option for adding a PASN responder 2020-10-01 22:00:57 +03:00
ftm-responder.c iwlwifi: mvm: avoid possible NULL pointer dereference 2020-10-08 20:09:39 +03:00
fw-api.h iwlwifi: mvm: add soc latency support 2020-03-27 08:12:46 +02:00
fw.c iwlwifi: move PNVM implementation to common code 2020-10-08 20:14:58 +03:00
led.c iwlwifi: check kasprintf() return value 2019-11-20 12:28:56 +02:00
mac-ctxt.c iwlwifi: mvm: re-enable TX after channel switch 2020-10-08 20:09:33 +03:00
mac80211.c iwlwifi: mvm: fix kernel panic in case of assert during CSA 2020-11-10 20:45:36 +02:00
Makefile iwlwifi: mvm: support FTM initiator 2019-02-14 11:29:43 +02:00
mvm.h iwlwifi: mvm: prepare roc_done_wk to work sync 2020-10-08 20:09:35 +03:00
nvm.c iwlwifi: mvm: Do not require PHY_SKU NVM section for 3168 devices 2020-02-13 12:02:54 +02:00
offloading.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
ops.c Revert "iwlwifi: remove wide_cmd_header field" 2020-10-09 18:04:50 +03:00
phy-ctxt.c iwlwifi: mvm: add a get lmac id function 2020-10-08 20:09:36 +03:00
power.c iwlwifi: mvm: update powersave correctly for D3 2019-12-20 14:23:24 +02:00
quota.c iwlwifi: remove all occurrences of the FSF address paragraph 2018-08-31 11:38:33 +03:00
rs-fw.c iwlwifi: rs: align to new TLC config command API 2020-10-08 20:14:57 +03:00
rs.c iwlwifi: rs: set RTS protection for all non legacy rates 2020-10-01 21:59:36 +03:00
rs.h iwlwifi: mvm: in VHT connection use only VHT capabilities 2019-11-15 09:31:56 +02:00
rx.c iwlwifi: stats: add new api fields for statistics cmd/ntfy 2020-10-08 20:14:54 +03:00
rxmq.c iwlwifi: mvm: get number of stations from TLV 2020-10-08 20:09:25 +03:00
scan.c iwlwifi: mvm: support ADD_STA_CMD_API_S ver 12 2020-10-08 20:09:37 +03:00
sf.c iwlwifi: mvm: enable SF also when we have HE 2020-03-27 08:12:48 +02:00
sta.c iwlwifi: sta: set max HE max A-MPDU according to HE capa 2020-11-10 20:45:29 +02:00
sta.h iwlwifi: mvm: support ADD_STA_CMD_API_S ver 12 2020-10-08 20:09:37 +03:00
tdls.c iwlwifi: mvm: get number of stations from TLV 2020-10-08 20:09:25 +03: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: properly cancel a session protection for P2P 2020-11-10 20:45:32 +02:00
time-event.h iwlwifi: mvm: don't send a CSA command the firmware doesn't know 2020-10-08 20:14:50 +03:00
tt.c iwlwifi: mvm: prepare roc_done_wk to work sync 2020-10-08 20:09:35 +03:00
tx.c iwlwifi: mvm: add a get lmac id function 2020-10-08 20:09:36 +03:00
utils.c iwlwifi: mvm: utils: Fix some doc-rot 2020-10-08 13:43:46 +03:00