diff options
author | Sujith Manoharan <Sujith.Manoharan@atheros.com> | 2011-01-04 13:16:37 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-10 15:40:51 -0500 |
commit | 6cae913d6c06557fee81aa8a181eafcc9a76516a (patch) | |
tree | bd4ab78c4745950d1e254f7c04a81ace9e908eb7 /drivers | |
parent | 45b9f509b7f5d2d792b3c03b78ddc8ec543e921b (diff) | |
download | linux-6cae913d6c06557fee81aa8a181eafcc9a76516a.tar.gz linux-6cae913d6c06557fee81aa8a181eafcc9a76516a.tar.bz2 linux-6cae913d6c06557fee81aa8a181eafcc9a76516a.zip |
ath9k_hw: Fix chip test
USB devices do not require the chip test routine.
Signed-off-by: Sujith Manoharan <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/hw.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/hw.c b/drivers/net/wireless/ath/ath9k/hw.c index fde978665e07..4a44f711045e 100644 --- a/drivers/net/wireless/ath/ath9k/hw.c +++ b/drivers/net/wireless/ath/ath9k/hw.c @@ -436,9 +436,10 @@ static int ath9k_hw_init_macaddr(struct ath_hw *ah) static int ath9k_hw_post_init(struct ath_hw *ah) { + struct ath_common *common = ath9k_hw_common(ah); int ecode; - if (!AR_SREV_9271(ah)) { + if (common->bus_ops->ath_bus_type != ATH_USB) { if (!ath9k_hw_chip_test(ah)) return -ENODEV; } |