aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>2011-09-15 09:32:54 -0400
committerJohn W. Linville <linville@tuxdriver.com>2011-09-19 15:58:25 -0400
commitd2c71c20789189cd01978efcbdd61231f5929eaf (patch)
treee07b098ba41d615ad6bc46f826667eb6371331c6
parent05bfe3d2a5794cc9e9b8119f36d1d7848ecd8967 (diff)
ath9k: Reset caldata on radio enable
Not doing so, the caldata continues to retain older history values learned on that channel. It is always safer to start noise floor calibration from the defaults after the assoication. So this patch resets the nf history buffer when none of the STA vifs are associated. Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 7910165cf0e6..6dcd8def5530 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -2021,6 +2021,7 @@ static void ath9k_config_bss(struct ath_softc *sc, struct ieee80211_vif *vif)
2021 /* Stop ANI */ 2021 /* Stop ANI */
2022 sc->sc_flags &= ~SC_OP_ANI_RUN; 2022 sc->sc_flags &= ~SC_OP_ANI_RUN;
2023 del_timer_sync(&common->ani.timer); 2023 del_timer_sync(&common->ani.timer);
2024 memset(&sc->caldata, 0, sizeof(sc->caldata));
2024 } 2025 }
2025} 2026}
2026 2027