From 020d7846cbe8722fb3311bc3235947e1c8a083df Mon Sep 17 00:00:00 2001 From: Adrian Chadd Date: Wed, 9 Nov 2011 04:38:27 +0000 Subject: [PATCH] Add in some more PCI/PCIe differentiation. --- sys/dev/ath/ath_hal/ar9002/ar9280_attach.c | 9 ++++++--- sys/dev/ath/ath_hal/ar9002/ar9287_attach.c | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c b/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c index 62864b5ba4d..437e8eef11b 100644 --- a/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c +++ b/sys/dev/ath/ath_hal/ar9002/ar9280_attach.c @@ -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); diff --git a/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c b/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c index 5c0de21ccbf..8d78c2da07d 100644 --- a/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c +++ b/sys/dev/ath/ath_hal/ar9002/ar9287_attach.c @@ -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);