ath9k: fix handling of the default chip pci id on ar93xx (#14886)
[openwrt.git] / package / kernel / mac80211 / patches / 513-ath9k_add_pci_ids.patch
1 --- a/drivers/net/wireless/ath/ath9k/hw.c
2 +++ b/drivers/net/wireless/ath/ath9k/hw.c
3 @@ -614,6 +614,7 @@ int ath9k_hw_init(struct ath_hw *ah)
4  
5         /* These are all the AR5008/AR9001/AR9002/AR9003 hardware family of chipsets */
6         switch (ah->hw_version.devid) {
7 +       case AR9300_DEVID_INVALID:
8         case AR5416_DEVID_PCI:
9         case AR5416_DEVID_PCIE:
10         case AR5416_AR9100_DEVID:
11 --- a/drivers/net/wireless/ath/ath9k/hw.h
12 +++ b/drivers/net/wireless/ath/ath9k/hw.h
13 @@ -34,6 +34,7 @@
14  
15  #define ATHEROS_VENDOR_ID      0x168c
16  
17 +#define AR9300_DEVID_INVALID   0xabcd
18  #define AR5416_DEVID_PCI       0x0023
19  #define AR5416_DEVID_PCIE      0x0024
20  #define AR9160_DEVID_PCI       0x0027
21 --- a/drivers/net/wireless/ath/ath9k/pci.c
22 +++ b/drivers/net/wireless/ath/ath9k/pci.c
23 @@ -658,6 +658,7 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_i
24         { PCI_VDEVICE(ATHEROS, 0x0036),
25           .driver_data = ATH9K_PCI_BT_ANT_DIV },
26  
27 +       { PCI_VDEVICE(ATHEROS, 0xabcd) }, /* PCI-E  internal chip default ID */
28         { 0 }
29  };
30