Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 255391
b: refs/heads/master
c: f29f5c0
h: refs/heads/master
i:
  255389: 1817bf6
  255387: 948ae5f
  255383: 77fa55d
  255375: 201425b
  255359: e537bd5
v: v3
  • Loading branch information
Rajkumar Manoharan authored and John W. Linville committed Jun 1, 2011
1 parent 044e7fd commit abe94e8
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9d75ef0f8f6d2e31ed940b3057a42a25f07076fb
refs/heads/master: f29f5c0882bdd58c42b8176ee0b578f92589fda2
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ static void ath_beacon_config_ap(struct ath_softc *sc,
u32 nexttbtt, intval;

/* NB: the beacon interval is kept internally in TU's */
intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD);
intval = TU_TO_USEC(conf->beacon_interval);
intval /= ATH_BCBUF; /* for staggered beacons */
nexttbtt = intval;

Expand Down Expand Up @@ -543,7 +543,7 @@ static void ath_beacon_config_sta(struct ath_softc *sc,
}

memset(&bs, 0, sizeof(bs));
intval = conf->beacon_interval & ATH9K_BEACON_PERIOD;
intval = conf->beacon_interval;

/*
* Setup dtim and cfp parameters according to
Expand Down Expand Up @@ -657,7 +657,7 @@ static void ath_beacon_config_adhoc(struct ath_softc *sc,
ath9k_reset_beacon_status(sc);

tsf = ath9k_hw_gettsf32(ah) + TU_TO_USEC(FUDGE);
intval = TU_TO_USEC(conf->beacon_interval & ATH9K_BEACON_PERIOD);
intval = TU_TO_USEC(conf->beacon_interval);

if (!sc->beacon.bc_tstamp)
nexttbtt = tsf + intval;
Expand Down
8 changes: 4 additions & 4 deletions trunk/drivers/net/wireless/ath/ath9k/htc_drv_beacon.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static void ath9k_htc_beacon_config_sta(struct ath9k_htc_priv *priv,

memset(&bs, 0, sizeof(bs));

intval = bss_conf->beacon_interval & ATH9K_BEACON_PERIOD;
intval = bss_conf->beacon_interval;
bmiss_timeout = (ATH_DEFAULT_BMISS_LIMIT * bss_conf->beacon_interval);

/*
Expand Down Expand Up @@ -194,7 +194,7 @@ static void ath9k_htc_beacon_config_ap(struct ath9k_htc_priv *priv,
u8 cmd_rsp;
u64 tsf;

intval = bss_conf->beacon_interval & ATH9K_BEACON_PERIOD;
intval = bss_conf->beacon_interval;
intval /= ATH9K_HTC_MAX_BCN_VIF;
nexttbtt = intval;

Expand Down Expand Up @@ -250,7 +250,7 @@ static void ath9k_htc_beacon_config_adhoc(struct ath9k_htc_priv *priv,
u8 cmd_rsp;
u64 tsf;

intval = bss_conf->beacon_interval & ATH9K_BEACON_PERIOD;
intval = bss_conf->beacon_interval;
nexttbtt = intval;

/*
Expand Down Expand Up @@ -427,7 +427,7 @@ static int ath9k_htc_choose_bslot(struct ath9k_htc_priv *priv,
u16 intval;
int slot;

intval = priv->cur_beacon_conf.beacon_interval & ATH9K_BEACON_PERIOD;
intval = priv->cur_beacon_conf.beacon_interval;

tsf = be64_to_cpu(swba->tsf);
tsftu = TSF_TO_TU(tsf >> 32, tsf);
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/net/wireless/ath/ath9k/hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1785,16 +1785,16 @@ void ath9k_hw_set_sta_beacon_timers(struct ath_hw *ah,
REG_WRITE(ah, AR_NEXT_TBTT_TIMER, TU_TO_USEC(bs->bs_nexttbtt));

REG_WRITE(ah, AR_BEACON_PERIOD,
TU_TO_USEC(bs->bs_intval & ATH9K_BEACON_PERIOD));
TU_TO_USEC(bs->bs_intval));
REG_WRITE(ah, AR_DMA_BEACON_PERIOD,
TU_TO_USEC(bs->bs_intval & ATH9K_BEACON_PERIOD));
TU_TO_USEC(bs->bs_intval));

REGWRITE_BUFFER_FLUSH(ah);

REG_RMW_FIELD(ah, AR_RSSI_THR,
AR_RSSI_THR_BM_THR, bs->bs_bmissthreshold);

beaconintval = bs->bs_intval & ATH9K_BEACON_PERIOD;
beaconintval = bs->bs_intval;

if (bs->bs_sleepduration > beaconintval)
beaconintval = bs->bs_sleepduration;
Expand Down
1 change: 0 additions & 1 deletion trunk/drivers/net/wireless/ath/ath9k/hw.h
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ struct ath9k_beacon_state {
u32 bs_nexttbtt;
u32 bs_nextdtim;
u32 bs_intval;
#define ATH9K_BEACON_PERIOD 0x0000ffff
#define ATH9K_TSFOOR_THRESHOLD 0x00004240 /* 16k us */
u32 bs_dtimperiod;
u16 bs_cfpperiod;
Expand Down

0 comments on commit abe94e8

Please sign in to comment.