Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 154662a6 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Remove unnecessary TSF reset



The TSF is already reset properly via mac80211's callback.
Resetting it in config_interface() is not needed.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9c84b797
Loading
Loading
Loading
Loading
+0 −11
Original line number Original line Diff line number Diff line
@@ -1237,17 +1237,6 @@ static int ath9k_config_interface(struct ieee80211_hw *hw,
			/* Set aggregation protection mode parameters */
			/* Set aggregation protection mode parameters */
			sc->sc_config.ath_aggr_prot = 0;
			sc->sc_config.ath_aggr_prot = 0;


			/*
			 * Reset our TSF so that its value is lower than the
			 * beacon that we are trying to catch.
			 * Only then hw will update its TSF register with the
			 * new beacon. Reset the TSF before setting the BSSID
			 * to avoid allowing in any frames that would update
			 * our TSF only to have us clear it
			 * immediately thereafter.
			 */
			ath9k_hw_reset_tsf(sc->sc_ah);

			/* Disable BMISS interrupt when we're not associated */
			/* Disable BMISS interrupt when we're not associated */
			ath9k_hw_set_interrupts(sc->sc_ah,
			ath9k_hw_set_interrupts(sc->sc_ah,
					sc->sc_imask &
					sc->sc_imask &