diff options
author | Bruno Randolf <bruno@thinktube.com> | 2008-01-18 07:51:19 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:10:50 -0500 |
commit | 1008e0f7b9dd211f918e93090f615e8064aca900 (patch) | |
tree | cc60fbfe5c27ec509acc84fd1999a63a32190574 /drivers/net/wireless/ath5k | |
parent | 1f7d87b0ecacefe4541c75901cbcf29efba42ca6 (diff) |
ath5k: use 3 instead of 0x00000003
reviewed beacon timer initialization with register traces from madwifi: what we
are doing is correct :). one minor fix: use 3 instead of 0x00000003 - it's more
readable.
drivers/net/wireless/ath5k/hw.c: Changes-licensed-under: ISC
Signed-off-by: Bruno Randolf <bruno@thinktube.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k')
-rw-r--r-- | drivers/net/wireless/ath5k/hw.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath5k/hw.c b/drivers/net/wireless/ath5k/hw.c index eb00818e8ce6..3a4bf4035a23 100644 --- a/drivers/net/wireless/ath5k/hw.c +++ b/drivers/net/wireless/ath5k/hw.c | |||
@@ -2605,10 +2605,8 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval) | |||
2605 | break; | 2605 | break; |
2606 | 2606 | ||
2607 | default: | 2607 | default: |
2608 | timer1 = (next_beacon - AR5K_TUNE_DMA_BEACON_RESP) << | 2608 | timer1 = (next_beacon - AR5K_TUNE_DMA_BEACON_RESP) << 3; |
2609 | 0x00000003; | 2609 | timer2 = (next_beacon - AR5K_TUNE_SW_BEACON_RESP) << 3; |
2610 | timer2 = (next_beacon - AR5K_TUNE_SW_BEACON_RESP) << | ||
2611 | 0x00000003; | ||
2612 | } | 2610 | } |
2613 | 2611 | ||
2614 | timer3 = next_beacon + (ah->ah_atim_window ? ah->ah_atim_window : 1); | 2612 | timer3 = next_beacon + (ah->ah_atim_window ? ah->ah_atim_window : 1); |