ath9k_hw: Fix chip test
authorSujith Manoharan <Sujith.Manoharan@atheros.com>
Tue, 4 Jan 2011 07:46:37 +0000 (13:16 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 10 Jan 2011 20:40:51 +0000 (15:40 -0500)
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>
drivers/net/wireless/ath/ath9k/hw.c

index fde978665e07c63328e675823eb6d53f65fbf7c7..4a44f711045e3b74e5f5dad2aaa5a36a9fcc1890 100644 (file)
@@ -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;
        }
This page took 0.029509 seconds and 5 git commands to generate.