aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.c
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2013-10-16 09:46:05 -0400
committerKalle Valo <kvalo@qca.qualcomm.com>2013-10-21 09:41:18 -0400
commit5e90de860bc2d82dcb73caef86c05cb49c2b5792 (patch)
tree17976eed4770db1effb87bfb69530a2c0fb371fc /drivers/net/wireless/ath/ath10k/pci.c
parentc4340c26d63550eaedcc3440f6ba78d6d4c451d4 (diff)
ath10k: fix NULL deref upon early FW crash
If firmware crashes during FW probing it would try to perform FW recovery which uses mac80211 workqueue before registering to mac80211. Using internal workqueue solves the problem. Signed-off-by: Michal Kazior <michal.kazior@tieto.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index f8d59c7b9082..d09f8a2861ba 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -777,7 +777,7 @@ static void ath10k_pci_hif_dump_area(struct ath10k *ar)
777 reg_dump_values[i + 2], 777 reg_dump_values[i + 2],
778 reg_dump_values[i + 3]); 778 reg_dump_values[i + 3]);
779 779
780 ieee80211_queue_work(ar->hw, &ar->restart_work); 780 queue_work(ar->workqueue, &ar->restart_work);
781} 781}
782 782
783static void ath10k_pci_hif_send_complete_check(struct ath10k *ar, u8 pipe, 783static void ath10k_pci_hif_send_complete_check(struct ath10k *ar, u8 pipe,