ath9k: Identify Killer Wireless cards
PATCH 1/1 ath9k: Identify Killer Wireless cards
From: Sujith Manoharan <[email protected]>
--- drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 3 +++ drivers/net/wireless/ath/ath9k/pci.c | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+)
drivers/net/wireless/ath/ath9k/ath9k.h +1 -0
@@ -641,6 +641,7 @@ void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs);#define ATH9K_PCI_D3_L1_WAR 0x0040#define ATH9K_PCI_AR9565_1ANT 0x0080#define ATH9K_PCI_AR9565_2ANT 0x0100 +#define ATH9K_PCI_KILLER 0x0200/* * Default cache line size, in bytes.
drivers/net/wireless/ath/ath9k/init.c +3 -0
@@ -589,6 +589,9 @@ static void ath9k_init_platform(struct ath_softc *sc)if (sc->driver_data &ATH9K_PCI_AR9565_2ANT )ath_info (common,"WB335 2-ANT card detected\n" ); +if (sc->driver_data &ATH9K_PCI_KILLER ) +ath_info (common,"Killer Wireless card detected\n" ); +/* * Some WB335 cards do not support antenna diversity. Since * we use a hardcoded value for AR9565 instead of using the
drivers/net/wireless/ath/ath9k/pci.c +20 -0
@@ -87,6 +87,19 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = { { PCI_VDEVICE(ATHEROS, 0x002C) }, /* PCI-E 802.11n bonded out */ { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI */ { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */ + +/* Killer Wireless (3x3) */ + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, +0x0030 , +0x1A56 , +0x2000 ), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, +0x0030 , +0x1A56 , +0x2001 ), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E AR9300 */ /* PCI-E CUS198 */
@@ -267,6 +280,13 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = { 0x1783), .driver_data = ATH9K_PCI_WOW }, +/* Killer Wireless (2x2) */ + {PCI_DEVICE_SUB (PCI_VENDOR_ID_ATHEROS , +0x0030 , +0x1A56 , + 0x2003), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_VDEVICE(ATHEROS, 0x0034) }, /* PCI-E AR9462 */ { PCI_VDEVICE(ATHEROS, 0x0037) }, /* PCI-E AR1111/AR9485 */
Signature · 1 line
1.8.4.1
What is a PCI killer ?
Cedric Voncken
Quoted 37 lines
-----Message d'origine-----
De : [email protected] [mailto:linux-wireless- [email protected]] De la part de Sujith Manoharan Envoyé : mercredi 23 octobre 2013 11:16
À : John Linville
Cc : [email protected]
Objet : [PATCH] ath9k: Identify Killer Wireless cardsFrom: Sujith Manoharan <[email protected]>
Signed-off-by Sujith Manoharan <[email protected]>--- drivers/net/wireless/ath/ath9k/ath9k.h | 1 + drivers/net/wireless/ath/ath9k/init.c | 3 +++ drivers/net/wireless/ath/ath9k/pci.c | 20 ++++++++++++++++++++ 3 files changed, 24 insertions(+)drivers/net/wireless/ath/ath9k/ath9k.h +1
-0@@ -641,6 +641,7 @@ void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs);#define ATH9K_PCI_D3_L1_WAR 0x0040#define ATH9K_PCI_AR9565_1ANT 0x0080#define ATH9K_PCI_AR9565_2ANT 0x0100 +#define ATH9K_PCI_KILLER 0x0200/* * Default cache line size, in bytes.
drivers/net/wireless/ath/ath9k/init.c +0
-0
drivers/net/wireless/ath/ath9k/init.c static void ath9k_init_platform(struct ath_softc *sc) · line 597
Quoted 9 lines
drivers/net/wireless/ath/ath9k/init.c +3
-0@@ -589,6 +589,9 @@ static void ath9k_init_platform(struct ath_softc *sc)if (sc->driver_data &ATH9K_PCI_AR9565_2ANT )ath_info (common,"WB335 2-ANT card detected\n" ); +if (sc->driver_data &ATH9K_PCI_KILLER ) +ath_info (common,"Killer Wireless card detected\n" ); +/* * Some WB335 cards do not support antenna diversity. Since * we use a hardcoded value for AR9565 instead of using the diff
--git
Quoted 44 lines
a/drivers/net/wireless/ath/ath9k/pci.cb/drivers/net/wireless/ath/ath9k/pci.c
index 04e6507..4a7a456 100644drivers/net/wireless/ath/ath9k/pci.c +13
-0@@ -87,6 +87,19 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = { { PCI_VDEVICE(ATHEROS, 0x002C) }, /* PCI-E 802.11n bonded out */ { PCI_VDEVICE(ATHEROS, 0x002D) }, /* PCI */ { PCI_VDEVICE(ATHEROS, 0x002E) }, /* PCI-E */ + +/* Killer Wireless (3x3) */ + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, +0x0030 , +0x1A56 , +0x2000 ), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, +0x0030 , +0x1A56 , +0x2001 ), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_VDEVICE(ATHEROS, 0x0030) }, /* PCI-E AR9300 */drivers/net/wireless/ath/ath9k/pci.c +7
-1/* PCI-E CUS198 */ @@ -267,6 +280,13 @@ static DEFINE_PCI_DEVICE_TABLE(ath_pci_id_table) = { 0x1783), .driver_data = ATH9K_PCI_WOW }, + /* Killer Wireless (2x2) */ + { PCI_DEVICE_SUB(PCI_VENDOR_ID_ATHEROS, + 0x0030, + 0x1A56, + 0x2003), + .driver_data = ATH9K_PCI_KILLER }, + { PCI_VDEVICE(ATHEROS, 0x0034) }, /* PCI-E AR9462 */ { PCI_VDEVICE(ATHEROS, 0x0037) }, /* PCI-E AR1111/AR9485 */ --1.8.4.1
Quoted 2 lines
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless"
in the
Quoted 2 lines
body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 1 line · voncken
What is a PCI killer ?
http://www.killergaming.com/solutions/Wireless
http://www.qca.qualcomm.com/networking/feature.php?feature=32
Sujith
Quoted 5 lines · Sujith Manoharan
Quoted 1 line · voncken
What is a PCI killer ?
http://www.killergaming.com/solutions/Wireless
http://www.qca.qualcomm.com/networking/feature.php?feature=32
Bummer. I thought you had finally found a way to blacklist the NICs that cause all of the strange ath9k bugs :)
Ben
Signature · 2 lines
Ben Greear <[email protected]> Candela Technologies Inc http://www.candelatech.com
Quoted 9 lines · Ben Greear
Quoted 5 lines · Sujith Manoharan
Quoted 1 line · voncken
What is a PCI killer ?
http://www.killergaming.com/solutions/Wireless
http://www.qca.qualcomm.com/networking/feature.php?feature=32Bummer. I thought you had finally found a way to blacklist the NICs that cause all of the strange ath9k bugs :)
A good PCI and USB killer would reduce the debug load here as well! :) Thanks for a good laugh.
Larry
Quoted 6 lines · Sujith Manoharan
Quoted 1 line · voncken
What is a PCI killer ?
http://www.killergaming.com/solutions/Wireless
http://www.qca.qualcomm.com/networking/feature.php?feature=32
Jokes apart, the links do not give much technical information ..
Karl
Quoted 4 lines · Karl Beldan
Quoted 3 lines
http://www.killergaming.com/solutions/Wireless
http://www.qca.qualcomm.com/networking/feature.php?feature=32Jokes apart, the links do not give much technical information ..
These cards are meant for low-latency situations, primarily gaming. I am still trying to find out if there are any HW quirks to be handled in the driver, but they seem to just work with ath9k.
The 3x3 card is based on AR9380 and the 2x2 card is based on AR9462.
Sujith