]> err.no Git - linux-2.6/commitdiff
ath5k: use 3 instead of 0x00000003
authorBruno Randolf <bruno@thinktube.com>
Fri, 18 Jan 2008 12:51:19 +0000 (21:51 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:50 +0000 (15:10 -0800)
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>
drivers/net/wireless/ath5k/hw.c

index eb00818e8ce6dbe52cd06a4797dcbf74ca5db5ee..3a4bf4035a2337eb7bc0d33ea52de1db00c50e8e 100644 (file)
@@ -2605,10 +2605,8 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval)
                break;
 
        default:
-               timer1 = (next_beacon - AR5K_TUNE_DMA_BEACON_RESP) <<
-                   0x00000003;
-               timer2 = (next_beacon - AR5K_TUNE_SW_BEACON_RESP) <<
-                   0x00000003;
+               timer1 = (next_beacon - AR5K_TUNE_DMA_BEACON_RESP) << 3;
+               timer2 = (next_beacon - AR5K_TUNE_SW_BEACON_RESP) << 3;
        }
 
        timer3 = next_beacon + (ah->ah_atim_window ? ah->ah_atim_window : 1);