summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/core.h
diff options
context:
space:
mode:
authorRaja Mani2012-03-07 07:05:04 +0100
committerKalle Valo2012-03-07 08:34:14 +0100
commit390a8c8fae2e7072579198414e631984a61c485e (patch)
treedfda63cd5afc603317b1f3c07508fd896a036c8d /drivers/net/wireless/ath/ath6kl/core.h
parentath6kl: Add provision to define suspend policy in disconnected state. (diff)
downloadkernel-qcow2-linux-390a8c8fae2e7072579198414e631984a61c485e.tar.gz
kernel-qcow2-linux-390a8c8fae2e7072579198414e631984a61c485e.tar.xz
kernel-qcow2-linux-390a8c8fae2e7072579198414e631984a61c485e.zip
ath6kl: Check wow state before sending control and data pkt
Below two scenarios are taken care in this patch which helped to fix the firmware crash during wow suspend/resume. * TX operation (ctrl tx and data tx) has to be controlled based on suspend state. i.e, with respect to WOW mode, control packets are allowed to send from the host until the suspend state goes ATH6KL_STATE_WOW and the data packets are allowed until WOW suspend operation starts. * Similarly, wow resume is NOT allowed if WOW suspend is in progress. Signed-off-by: Raja Mani <rmani@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/core.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/core.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/core.h b/drivers/net/wireless/ath/ath6kl/core.h
index b9d810f32006..31f13d7a0430 100644
--- a/drivers/net/wireless/ath/ath6kl/core.h
+++ b/drivers/net/wireless/ath/ath6kl/core.h
@@ -537,6 +537,8 @@ enum ath6kl_dev_state {
enum ath6kl_state {
ATH6KL_STATE_OFF,
ATH6KL_STATE_ON,
+ ATH6KL_STATE_SUSPENDING,
+ ATH6KL_STATE_RESUMING,
ATH6KL_STATE_DEEPSLEEP,
ATH6KL_STATE_CUTPOWER,
ATH6KL_STATE_WOW,