ath9k_htc: Stop ANI before doing hw_reset
authorRajkumar Manoharan <rmanohar@qti.qualcomm.com>
Wed, 14 May 2014 09:09:21 +0000 (14:39 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 May 2014 19:42:46 +0000 (15:42 -0400)
commitfaf1dc64e345ac4de5c4429df6ed492255ae2248
treee19a2927f8e77e3e582414b220ad304eeeafab78
parenteac94da8b4cc3dd4336ed434fbc2370c3c850003
ath9k_htc: Stop ANI before doing hw_reset

During remain on channel request, ANI worker thread is not stopped
before doing hw reset. This is causing kernel crash in
hw_per_calibration. This change ensures that ANI is stopped before
doing chip reset and it will be rescheduled later when the chip is
configured back to home channel and having valid bss.

Reported-by: David Herrmann <dh.herrmann@gmail.com>
Tested-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Rajkumar Manoharan <rmanohar@qti.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/htc_drv_main.c