summaryrefslogtreecommitdiff
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorSujith Manoharan <Sujith.Manoharan@atheros.com>2011-01-04 07:46:37 (GMT)
committerJohn W. Linville <linville@tuxdriver.com>2011-01-10 20:40:51 (GMT)
commit6cae913d6c06557fee81aa8a181eafcc9a76516a (patch)
treebd4ab78c4745950d1e254f7c04a81ace9e908eb7 /drivers/net/wireless
parent45b9f509b7f5d2d792b3c03b78ddc8ec543e921b (diff)
downloadlinux-fsl-qoriq-6cae913d6c06557fee81aa8a181eafcc9a76516a.tar.xz
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/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath9k/hw.c3
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 fde9786..4a44f71 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;
}