diff options
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 6 |
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 | ||
2199 | out: | 2203 | out: |