aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/beacon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/beacon.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/beacon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/beacon.c b/drivers/net/wireless/ath/ath9k/beacon.c
index d4d8ceced89..8b85d7c1d38 100644
--- a/drivers/net/wireless/ath/ath9k/beacon.c
+++ b/drivers/net/wireless/ath/ath9k/beacon.c
@@ -496,7 +496,7 @@ static void ath_beacon_config_ap(struct ath_softc *sc,
496 u32 nexttbtt, intval; 496 u32 nexttbtt, intval;
497 497
498 /* NB: the beacon interval is kept internally in TU's */ 498 /* NB: the beacon interval is kept internally in TU's */
499 intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD); 499 intval = TU_TO_USEC(conf->beacon_interval);
500 intval /= ATH_BCBUF; /* for staggered beacons */ 500 intval /= ATH_BCBUF; /* for staggered beacons */
501 nexttbtt = intval; 501 nexttbtt = intval;
502 502
@@ -543,7 +543,7 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
543 } 543 }
544 544
545 memset(&bs, 0, sizeof(bs)); 545 memset(&bs, 0, sizeof(bs));
546 intval = conf->beacon_interval & ATH9K_BEACON_PERIOD; 546 intval = conf->beacon_interval;
547 547
548 /* 548 /*
549 * Setup dtim and cfp parameters according to 549 * Setup dtim and cfp parameters according to
@@ -657,7 +657,7 @@ static void ath_beacon_config_adhoc(struct ath_softc *sc,
657 ath9k_reset_beacon_status(sc); 657 ath9k_reset_beacon_status(sc);
658 658
659 tsf = ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE); 659 tsf = ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE);
660 intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD); 660 intval = TU_TO_USEC(conf->beacon_interval);
661 661
662 if (!sc->beacon.bc_tstamp) 662 if (!sc->beacon.bc_tstamp)
663 nexttbtt = tsf + intval; 663 nexttbtt = tsf + intval;