ath9k_hw: add AR9271 srev and device ID to allow hw to support ar9271
authorLuis R. Rodriguez <lrodriguez@atheros.com>
Thu, 24 Sep 2009 03:07:02 +0000 (23:07 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 7 Oct 2009 20:39:42 +0000 (16:39 -0400)
This allows for hw support to be enabled for ar9271.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/hw.c
drivers/net/wireless/ath/ath9k/hw.h

index 7bf0f8c..692fd1d 100644 (file)
@@ -609,6 +609,7 @@ static bool ath9k_hw_devid_supported(u16 devid)
        case AR9285_DEVID_PCIE:
        case AR5416_DEVID_AR9287_PCI:
        case AR5416_DEVID_AR9287_PCIE:
+       case AR9271_USB:
                return true;
        default:
                break;
@@ -626,9 +627,8 @@ static bool ath9k_hw_macversion_supported(u32 macversion)
        case AR_SREV_VERSION_9280:
        case AR_SREV_VERSION_9285:
        case AR_SREV_VERSION_9287:
-               return true;
-       /* Not yet */
        case AR_SREV_VERSION_9271:
+               return true;
        default:
                break;
        }
index 773f5c4..f782c1a 100644 (file)
 #include "../debug.h"
 
 #define ATHEROS_VENDOR_ID      0x168c
+
 #define AR5416_DEVID_PCI       0x0023
 #define AR5416_DEVID_PCIE      0x0024
 #define AR9160_DEVID_PCI       0x0027
 #define AR9280_DEVID_PCI       0x0029
 #define AR9280_DEVID_PCIE      0x002a
 #define AR9285_DEVID_PCIE      0x002b
+
 #define AR5416_AR9100_DEVID    0x000b
+
+#define AR9271_USB             0x9271
+
 #define        AR_SUBVENDOR_ID_NOG     0x0e11
 #define AR_SUBVENDOR_ID_NEW_A  0x7065
 #define AR5416_MAGIC           0x19641014