summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith <Sujith.Manoharan@atheros.com>2008-09-17 04:46:07 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2008-09-24 20:18:02 (GMT)
commit31e9ab2b180bccb3977b9a82ff357ac4c6ee3c83 (patch)
tree2a4567bf337b7d2852d8157cbf0c08b24923f648 /drivers/net/wireless
parent459f5f90f1bd959ced04761406415b178b315177 (diff)
downloadlinux-fsl-qoriq-31e9ab2b180bccb3977b9a82ff357ac4c6ee3c83.tar.xz
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: Sujith <Sujith.Manoharan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath9k/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath9k/core.c b/drivers/net/wireless/ath9k/core.c
index c262ef2..690f7c5 100644
--- a/drivers/net/wireless/ath9k/core.c
+++ b/drivers/net/wireless/ath9k/core.c
@@ -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++;