ath9k: add some cleanups and minor fixes
[openwrt/svn-archive/archive.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 @@ -724,6 +724,7 @@ int ath9k_hw_init(struct ath_hw *ah)
4 case AR9300_DEVID_AR9462:
5 case AR9485_DEVID_AR1111:
6 case AR9300_DEVID_AR9565:
7 + case AR9300_DEVID_AR9381:
8 break;
9 default:
10 if (common->bus_ops->ath_bus_type == ATH_USB)
11 --- a/drivers/net/wireless/ath/ath9k/hw.h
12 +++ b/drivers/net/wireless/ath/ath9k/hw.h
13 @@ -52,6 +52,7 @@
14 #define AR9300_DEVID_QCA955X 0x0038
15 #define AR9485_DEVID_AR1111 0x0037
16 #define AR9300_DEVID_AR9565 0x0036
17 +#define AR9300_DEVID_AR9381 0xabcd
18
19 #define AR5416_AR9100_DEVID 0x000b
20
21 --- a/drivers/net/wireless/ath/ath9k/pci.c
22 +++ b/drivers/net/wireless/ath/ath9k/pci.c
23 @@ -270,6 +270,7 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_i
24 { PCI_VDEVICE(ATHEROS, 0x0034) }, /* PCI-E AR9462 */
25 { PCI_VDEVICE(ATHEROS, 0x0037) }, /* PCI-E AR1111/AR9485 */
26 { PCI_VDEVICE(ATHEROS, 0x0036) }, /* PCI-E AR9565 */
27 + { PCI_VDEVICE(ATHEROS, 0xabcd) }, /* PCI-E AR9381 */
28 { 0 }
29 };
30