summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath9k/beacon.c
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanoharan@atheros.com>2011-04-08 17:06:25 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-04-12 16:58:43 -0400
commitf60c49b67dd6db2ccb740a6a671414f9dab00c4f (patch)
treefe447a905fbe88cd5972015ea452a971d22001c1 /drivers/net/wireless/ath/ath9k/beacon.c
parentd0ef824b9a712b866e38212089ade3a7114225a4 (diff)
downloadlinux-3.10-f60c49b67dd6db2ccb740a6a671414f9dab00c4f.tar.gz
linux-3.10-f60c49b67dd6db2ccb740a6a671414f9dab00c4f.tar.bz2
linux-3.10-f60c49b67dd6db2ccb740a6a671414f9dab00c4f.zip
ath9k: Fix kernel panic on module unload
The commit "ath9k: configure beacons based on hw opmode" introduced a regression which leads to kernel panic. Failed to stop ani timer during the driver unload while any of the beaconing vif is running. Signed-off-by: Rajkumar Manoharan <rmanoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index eccb0ec87ad..b56f69e7677 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -320,6 +320,7 @@ void ath_beacon_return(struct ath_softc *sc, struct ath_vif *avp)
if (avp->av_bcbuf != NULL) {
struct ath_buf *bf;
+ avp->is_bslot_active = false;
if (avp->av_bslot != -1) {
sc->beacon.bslot[avp->av_bslot] = NULL;
sc->nbcnvifs--;