ath5k: Remove unused variable for atim window
authorBruno Randolf <br1@einfach.org>
Mon, 27 Sep 2010 03:22:16 +0000 (12:22 +0900)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 28 Sep 2010 19:47:57 +0000 (15:47 -0400)
It's not used and it's unlikely we will ever implement ATIM.

Signed-off-by: Bruno Randolf <br1@einfach.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/ath5k.h
drivers/net/wireless/ath/ath5k/attach.c
drivers/net/wireless/ath/ath5k/pcu.c

index b96bb985b56deca0fa191db1f7a980051d4b7729..42e6e821259eb3c284f7d00af1322e01bb603966 100644 (file)
@@ -1041,7 +1041,6 @@ struct ath5k_hw {
 #define ah_modes               ah_capabilities.cap_mode
 #define ah_ee_version          ah_capabilities.cap_eeprom.ee_version
 
-       u32                     ah_atim_window;
        u32                     ah_limit_tx_retries;
        u8                      ah_coverage_class;
 
index 6e02de311cdd651503109ea82e43f6b2e6a464ad..cd0b14a0a93abc3e0bf320c065cac21b30cc0a4d 100644 (file)
@@ -118,7 +118,6 @@ int ath5k_hw_attach(struct ath5k_softc *sc)
        ah->ah_turbo = false;
        ah->ah_txpower.txp_tpc = AR5K_TUNE_TPC_TXPOWER;
        ah->ah_imr = 0;
-       ah->ah_atim_window = 0;
        ah->ah_limit_tx_retries = AR5K_INIT_TX_RETRY;
        ah->ah_software_retry = false;
        ah->ah_ant_mode = AR5K_ANTMODE_DEFAULT;
index 6a891c4484a0fcecae28160495924930ef998603..71dca1023e7206a62d2cc7047d114ef4409e737d 100644 (file)
@@ -600,7 +600,7 @@ void ath5k_hw_init_beacon(struct ath5k_hw *ah, u32 next_beacon, u32 interval)
        /* Timer3 marks the end of our ATIM window
         * a zero length window is not allowed because
         * we 'll get no beacons */
-       timer3 = next_beacon + (ah->ah_atim_window ? ah->ah_atim_window : 1);
+       timer3 = next_beacon + 1;
 
        /*
         * Set the beacon register and enable all timers.