linux/drivers/net/wireless/intel
Sara Sharon c750d08b19 iwlwifi: mvm: fix kernel panic in case of assert during CSA
[ Upstream commit fe56d05ee6 ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-12-30 11:25:38 +01:00
..
ipw2x00 ipw2x00: Fix -Wcast-function-type 2020-02-24 08:34:42 +01:00
iwlegacy iwlegacy: Check the return value of pcie_capability_read_*() 2020-08-19 08:14:52 +02:00
iwlwifi iwlwifi: mvm: fix kernel panic in case of assert during CSA 2020-12-30 11:25:38 +01:00
Kconfig
Makefile