Skip to content

Commit

Permalink
ath6kl: Fix bug in scheduling hb_timer
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Oct 24, 2012
1 parent 7756579 commit 9d91884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath6kl/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 9d91884

Please sign in to comment.