diff options
author | Sujith <Sujith.Manoharan@atheros.com> | 2009-02-16 02:53:20 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-02-27 14:52:37 -0500 |
commit | 0caa7b14f36e8c3c43dd9294a960ae55cafe07fb (patch) | |
tree | 13a878857346d4bb67e57b31f6ab25a03ed4c6d7 /drivers/net/wireless/ath9k/hw.h | |
parent | 70768496db9ee27d53d3d03d50c93fbf4c0198a0 (diff) |
ath9k: Fix HW wait timeout
RX and calibration have different timeout requirements.
This patch fixes it by changing the HW wait routine
to accept a timeout value.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath9k/hw.h')
-rw-r--r-- | drivers/net/wireless/ath9k/hw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath9k/hw.h b/drivers/net/wireless/ath9k/hw.h index 08469d9525bc..ddab3b7d07b2 100644 --- a/drivers/net/wireless/ath9k/hw.h +++ b/drivers/net/wireless/ath9k/hw.h | |||
@@ -93,7 +93,7 @@ | |||
93 | #define ATH9K_NUM_QUEUES 10 | 93 | #define ATH9K_NUM_QUEUES 10 |
94 | 94 | ||
95 | #define MAX_RATE_POWER 63 | 95 | #define MAX_RATE_POWER 63 |
96 | #define AH_TIMEOUT 100000 | 96 | #define AH_WAIT_TIMEOUT 100000 /* (us) */ |
97 | #define AH_TIME_QUANTUM 10 | 97 | #define AH_TIME_QUANTUM 10 |
98 | #define AR_KEYTABLE_SIZE 128 | 98 | #define AR_KEYTABLE_SIZE 128 |
99 | #define POWER_UP_TIME 200000 | 99 | #define POWER_UP_TIME 200000 |
@@ -612,7 +612,7 @@ bool ath9k_hw_setantennaswitch(struct ath_hw *ah, | |||
612 | u8 *antenna_cfgd); | 612 | u8 *antenna_cfgd); |
613 | 613 | ||
614 | /* General Operation */ | 614 | /* General Operation */ |
615 | bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val); | 615 | bool ath9k_hw_wait(struct ath_hw *ah, u32 reg, u32 mask, u32 val, u32 timeout); |
616 | u32 ath9k_hw_reverse_bits(u32 val, u32 n); | 616 | u32 ath9k_hw_reverse_bits(u32 val, u32 n); |
617 | bool ath9k_get_channel_edges(struct ath_hw *ah, u16 flags, u16 *low, u16 *high); | 617 | bool ath9k_get_channel_edges(struct ath_hw *ah, u16 flags, u16 *low, u16 *high); |
618 | u16 ath9k_hw_computetxtime(struct ath_hw *ah, struct ath_rate_table *rates, | 618 | u16 ath9k_hw_computetxtime(struct ath_hw *ah, struct ath_rate_table *rates, |