提交 f38faa31 编写于 作者: S Senthil Balasubramanian 提交者: John W. Linville

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: NSenthil Balasubramanian <senthilkumar@atheros.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 2664f201
...@@ -949,6 +949,8 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc, ...@@ -949,6 +949,8 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,
} else { } else {
DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info DISASSOC\n"); DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info DISASSOC\n");
sc->curaid = 0; sc->curaid = 0;
/* Stop ANI */
del_timer_sync(&sc->ani.timer);
} }
} }
...@@ -2193,7 +2195,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw, ...@@ -2193,7 +2195,9 @@ static int ath9k_add_interface(struct ieee80211_hw *hw,
ath9k_hw_set_interrupts(sc->sc_ah, sc->imask); ath9k_hw_set_interrupts(sc->sc_ah, sc->imask);
if (conf->type == NL80211_IFTYPE_AP) if (conf->type == NL80211_IFTYPE_AP ||
conf->type == NL80211_IFTYPE_ADHOC ||
conf->type == NL80211_IFTYPE_MONITOR)
ath_start_ani(sc); ath_start_ani(sc);
out: out:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册