Add in some more PCI/PCIe differentiation.

This commit is contained in:
Adrian Chadd 2011-11-09 04:38:27 +00:00
parent 5b77f8e9f5
commit 020d7846cb
2 changed files with 12 additions and 6 deletions

View File

@ -892,9 +892,12 @@ ar9280SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings)
static const char*
ar9280Probe(uint16_t vendorid, uint16_t devid)
{
if (vendorid == ATHEROS_VENDOR_ID &&
(devid == AR9280_DEVID_PCI || devid == AR9280_DEVID_PCIE))
return "Atheros 9280";
if (vendorid == ATHEROS_VENDOR_ID) {
if (devid == AR9280_DEVID_PCI)
return "Atheros 9220";
if (devid == AR9280_DEVID_PCIE)
return "Atheros 9280";
}
return AH_NULL;
}
AH_CHIP(AR9280, ar9280Probe, ar9280Attach);

View File

@ -471,9 +471,12 @@ ar9287SetAntennaSwitch(struct ath_hal *ah, HAL_ANT_SETTING settings)
static const char*
ar9287Probe(uint16_t vendorid, uint16_t devid)
{
if (vendorid == ATHEROS_VENDOR_ID &&
(devid == AR9287_DEVID_PCI || devid == AR9287_DEVID_PCIE))
return "Atheros 9287";
if (vendorid == ATHEROS_VENDOR_ID) {
if (devid == AR9287_DEVID_PCI)
return "Atheros 9227";
if (devid == AR9287_DEVID_PCIE)
return "Atheros 9287";
}
return AH_NULL;
}
AH_CHIP(AR9287, ar9287Probe, ar9287Attach);