Skip to content

Commit

Permalink
ath9k: Fix TSF Adjust usage
Browse files Browse the repository at this point in the history
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: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Sujith authored and John W. Linville committed Sep 24, 2008
1 parent 459f5f9 commit 31e9ab2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath9k/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ int ath_vap_attach(struct ath_softc *sc,
avp->av_opmode = opmode;
avp->av_bslot = -1;

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

sc->sc_vaps[if_id] = avp;
sc->sc_nvaps++;
Expand Down

0 comments on commit 31e9ab2

Please sign in to comment.