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

Commit 31e9ab2b authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Fix TSF Adjust usage



TSF adjust is needed only for AP mode when staggered beacons
are used. Since we support only a single interface in IBSS mode,
disable setting the TSF adjust register.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 459f5f90
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -534,6 +534,7 @@ int ath_vap_attach(struct ath_softc *sc,
	avp->av_opmode = opmode;
	avp->av_opmode = opmode;
	avp->av_bslot = -1;
	avp->av_bslot = -1;


	if (opmode == ATH9K_M_HOSTAP)
		ath9k_hw_set_tsfadjust(sc->sc_ah, 1);
		ath9k_hw_set_tsfadjust(sc->sc_ah, 1);


	sc->sc_vaps[if_id] = avp;
	sc->sc_vaps[if_id] = avp;