aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/main.c
diff options
context:
space:
mode:
authorSenthil Balasubramanian <senthilkumar@atheros.com>2009-06-24 09:26:40 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-07-10 15:02:24 -0400
commitf38faa31e0da07390d72fb67d3151e56c54871f4 (patch)
treeff6bad3601632d2c225dbb85d3f892969cd791a5 /drivers/net/wireless/ath/ath9k/main.c
parent2664f201ef162224c775ecf7e33aee9c4cac62b0 (diff)
ath9k: stop ani when the STA gets disconnected.
ANI is not required when the STA is disconnected. So stop it and enable ANI for adhoc and monitor mode. Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 48cb5534bd14..6d63126a81f1 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -949,6 +949,8 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,
949 } else { 949 } else {
950 DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info DISASSOC\n"); 950 DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info DISASSOC\n");
951 sc->curaid = 0; 951 sc->curaid = 0;
952 /* Stop ANI */
953 del_timer_sync(&sc->ani.timer);
952 } 954 }
953} 955}
954 956
@@ -2193,7 +2195,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
2193 2195
2194 ath9k_hw_set_interrupts(sc->sc_ah, sc->imask); 2196 ath9k_hw_set_interrupts(sc->sc_ah, sc->imask);
2195 2197
2196 if (conf->type == NL80211_IFTYPE_AP) 2198 if (conf->type == NL80211_IFTYPE_AP ||
2199 conf->type == NL80211_IFTYPE_ADHOC ||
2200 conf->type == NL80211_IFTYPE_MONITOR)
2197 ath_start_ani(sc); 2201 ath_start_ani(sc);
2198 2202
2199out: 2203out: