ath9k: Add PCI IDs for CUS217
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Tue, 18 Jun 2013 10:12:36 +0000 (15:42 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 18 Jun 2013 18:46:47 +0000 (14:46 -0400)
CUS217 is a card based on AR9462.

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ath9k.h
drivers/net/wireless/ath/ath9k/init.c
drivers/net/wireless/ath/ath9k/pci.c

index 1a0a1688502c847d7a32a431eab5032f4baa1a77..04b2d3ea728f3cff3f9be506fbf18bee9e29f56e 100644 (file)
@@ -633,6 +633,7 @@ void ath_ant_comb_update(struct ath_softc *sc);
 
 #define ATH9K_PCI_CUS198 0x0001
 #define ATH9K_PCI_CUS230 0x0002
+#define ATH9K_PCI_CUS217 0x0004
 
 /*
  * Default cache line size, in bytes.
index 0d17415a8a84e83aab45e4eb49cfdb18ae19d251..1e555d899469e932b3df36fe56cd42890a68bee1 100644 (file)
@@ -529,6 +529,8 @@ static void ath9k_init_platform(struct ath_softc *sc)
                ath_info(common, "Set parameters for %s\n",
                         (sc->driver_data & ATH9K_PCI_CUS198) ?
                         "CUS198" : "CUS230");
+       } else if (sc->driver_data & ATH9K_PCI_CUS217) {
+               ath_info(common, "CUS217 card detected\n");
        }
 }
 
index ddf0d78dbc48aa9a3bfc9c240204ce3ec50ef75e..b096bb2c28c8d3eded648106a878c9b673fb4448 100644 (file)
@@ -66,6 +66,19 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = {
 
        { PCI_VDEVICE(ATHEROS, 0x0032) }, /* PCI-E  AR9485 */
        { PCI_VDEVICE(ATHEROS, 0x0033) }, /* PCI-E  AR9580 */
+
+       /* PCI-E CUS217 */
+       { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
+                        0x0034,
+                        PCI_VENDOR_ID_AZWAVE,
+                        0x2116),
+         .driver_data = ATH9K_PCI_CUS217 },
+       { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS,
+                        0x0034,
+                        0x11AD, /* LITEON */
+                        0x6661),
+         .driver_data = ATH9K_PCI_CUS217 },
+
        { PCI_VDEVICE(ATHEROS, 0x0034) }, /* PCI-E  AR9462 */
        { PCI_VDEVICE(ATHEROS, 0x0037) }, /* PCI-E  AR1111/AR9485 */
        { PCI_VDEVICE(ATHEROS, 0x0036) }, /* PCI-E  AR9565 */