ath10k: ensure pktlog disable cmd reaches fw before pdev suspend
authorRaja Mani <rmani@qti.qualcomm.com>
Thu, 9 Jul 2015 08:49:42 +0000 (14:19 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 19 Aug 2015 10:09:07 +0000 (13:09 +0300)
commitf1ee2682ef8dffe6d6ec6f7788d6bf33d6bab7a6
tree141537335c508a0ffb2f0f01b2fff589f7439e0e
parentb2887410f0d00f376b250f78d34654b4ac093900
ath10k: ensure pktlog disable cmd reaches fw before pdev suspend

Found incorrect sequence in ath10k_core_stop() where wmi pktlog
disable cmd is passed from ath10k_debug_stop() to firmware
immediately after wmi pdev suspend cmd. Firmware will not accept
any wmi cmd after receiving wmi pdev suspend cmd.

Fix this issue in ath10k_core_stop() by moving ath10k_debug_stop()
just before sending pdev suspend cmd. So that pktlog disable cmd
will get passed before pdev suspend cmd.

Signed-off-by: Raja Mani <rmani@qti.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c