summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>2012-09-03 12:49:34 +0530
committerKalle Valo <kvalo@qca.qualcomm.com>2012-10-24 11:49:49 +0300
commit9d9188409aef2f3bebd1956d2f15bc970efcea7b (patch)
treefd866acbb72cdd5ce5870c5d22bd2760716da3f4 /drivers/net/wireless
parent77565794eb69cf73a5808c04b01bc2a97ebf32d3 (diff)
downloadlinux-9d9188409aef2f3bebd1956d2f15bc970efcea7b.tar.bz2
ath6kl: Fix bug in scheduling hb_timer
hb_timer should be scheduled only when hb_poll is non-zero. But in ath6kl_recovery_work() the timer is scheduled based on fw_recovery.enable instead which is wrong. Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath6kl/recovery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/recovery.c b/drivers/net/wireless/ath/ath6kl/recovery.c
index 03edeb8c2ce3..c30df50b7ba4 100644
--- a/drivers/net/wireless/ath/ath6kl/recovery.c
+++ b/drivers/net/wireless/ath/ath6kl/recovery.c
@@ -34,7 +34,7 @@ static void ath6kl_recovery_work(struct work_struct *work)
ar->fw_recovery.err_reason = 0;
- if (ar->fw_recovery.enable)
+ if (ar->fw_recovery.hb_poll)
mod_timer(&ar->fw_recovery.hb_timer, jiffies +
msecs_to_jiffies(ar->fw_recovery.hb_poll));
}