]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ath9k: Fix TSF Adjust usage
authorSujith <Sujith.Manoharan@atheros.com>
Wed, 17 Sep 2008 04:46:07 +0000 (10:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Sep 2008 20:18:02 +0000 (16:18 -0400)
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>
drivers/net/wireless/ath9k/core.c

index c262ef279ff30be89507f607ebda6d87241293d9..690f7c56af3d8faa2bc5608b59bad50061539322 100644 (file)
@@ -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++;