linux/drivers/net/wireless/ath
Wen Gong 5dadbe4e37 ath10k: add atomic protection for device recovery
When it has more than one restart_work queued meanwhile, the 2nd
restart_work is very easy to break the 1st restart work and lead
recovery fail.

Add a flag to allow only one restart work running untill
device successfully recovered.

It already has flag ATH10K_FLAG_CRASH_FLUSH, but it can not use this
flag again, because it is clear in ath10k_core_start. The function
ieee80211_reconfig(called by ieee80211_restart_work) of mac80211 do
many things and drv_start(call to ath10k_core_start) is 1st thing,
when drv_start complete, it does not mean restart complete. So it
add new flag and clear it in ath10k_reconfig_complete, because it
is the last thing called from drv_reconfig_complete of function
ieee80211_reconfig, after it, the restart process finished.

Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00049

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/010101746bead6a0-d5e97c66-dedd-4b92-810e-c2e4840fafc9-000000@us-west-2.amazonses.com
2020-12-12 06:38:12 +02:00
..
ar5523
ath5k ath5k: Fix fall-through warnings for Clang 2020-12-09 09:01:26 +02:00
ath6kl Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git 2020-12-02 21:46:55 +02:00
ath9k ath9k_htc: adhere to the DONT_REORDER transmit flag 2020-12-09 09:05:20 +02:00
ath10k ath10k: add atomic protection for device recovery 2020-12-12 06:38:12 +02:00
ath11k ath11k: mesh: add support for 256 bitmap in blockack frames in 11ax 2020-12-09 09:04:45 +02:00
carl9170 carl9170: Fix fall-through warnings for Clang 2020-12-09 09:01:29 +02:00
wcn36xx wcn36xx: Fix fall-through warnings for Clang 2020-12-09 09:01:32 +02:00
wil6210 wil6210: wmi: Correct misnamed function parameter 'ptr_' 2020-11-07 10:09:56 +02:00
ath.h
debug.c
dfs_pattern_detector.c ath: dfs_pattern_detector: Fix some function kernel-doc headers 2020-11-07 10:06:46 +02:00
dfs_pattern_detector.h
dfs_pri_detector.c ath: dfs_pri_detector: Demote zero/half completed kernel-doc headers 2020-11-07 10:06:49 +02:00
dfs_pri_detector.h
hw.c
Kconfig
key.c
main.c
Makefile
reg.h
regd.c ath: regd: Provide description for ath_reg_apply_ir_flags's 'reg' param 2020-11-07 10:06:43 +02:00
regd.h
regd_common.h
spectral_common.h
trace.c
trace.h