summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath6kl/txrx.c
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-09-11 12:07:00 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2012-10-24 11:49:50 +0300
commit58109df67aa073756eb5a2dc2ae068bc1bbcc125 (patch)
tree65408455d7c23ffaef7e973ebba52b2933c67f7e /drivers/net/wireless/ath/ath6kl/txrx.c
parentf08dbda25f14d6b9c1ba131f65d0c32917733f6c (diff)
downloadlwn-58109df67aa073756eb5a2dc2ae068bc1bbcc125.tar.gz
lwn-58109df67aa073756eb5a2dc2ae068bc1bbcc125.zip
ath6kl: Fix reconnection issue after recovery
Disallowing any wmi commands while re-initializing the firmware results in connection failures after recovery is done in open/WEP mode. To fix this, clear WMI_READY, to make sure no wmi command is tried while fw is down. Remove ATH6KL_STATE_RECOVERY state check in ath6kl_control_tx() so that any configuration during fw init time will go through using wmi commands. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/txrx.c')
-rw-r--r--drivers/net/wireless/ath/ath6kl/txrx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/txrx.c b/drivers/net/wireless/ath/ath6kl/txrx.c
index e867193373fe..efee590a234a 100644
--- a/drivers/net/wireless/ath/ath6kl/txrx.c
+++ b/drivers/net/wireless/ath/ath6kl/txrx.c
@@ -288,8 +288,7 @@ int ath6kl_control_tx(void *devt, struct sk_buff *skb,
int status = 0;
struct ath6kl_cookie *cookie = NULL;
- if (WARN_ON_ONCE(ar->state == ATH6KL_STATE_WOW) ||
- ar->state == ATH6KL_STATE_RECOVERY) {
+ if (WARN_ON_ONCE(ar->state == ATH6KL_STATE_WOW)) {
dev_kfree_skb(skb);
return -EACCES;
}