aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/b43
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-04-19 10:53:00 -0400
committerJohn W. Linville <linville@tuxdriver.com>2008-04-23 21:25:34 -0400
commit9fc38458355525f801cd2ab403ac89850489a05e (patch)
tree380180cf94d220441aaa82565ed61b3a11d6dbe3 /drivers/net/wireless/b43
parenta259d6a45b915e00e8c6085e35fea7b61e3008a8 (diff)
b43: Add more btcoexist workarounds
This adds more workarounds for devices with broken BT bits. Signed-off-by: Michael Buesch <mb@bu3sch.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/b43')
-rw-r--r--drivers/net/wireless/b43/main.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/net/wireless/b43/main.c b/drivers/net/wireless/b43/main.c
index a90e902f4b3e..94a0cdeb39a8 100644
--- a/drivers/net/wireless/b43/main.c
+++ b/drivers/net/wireless/b43/main.c
@@ -4423,6 +4423,12 @@ static int b43_one_core_attach(struct ssb_device *dev, struct b43_wl *wl)
4423 return err; 4423 return err;
4424} 4424}
4425 4425
4426#define IS_PDEV(pdev, _vendor, _device, _subvendor, _subdevice) ( \
4427 (pdev->vendor == PCI_VENDOR_ID_##_vendor) && \
4428 (pdev->device == _device) && \
4429 (pdev->subsystem_vendor == PCI_VENDOR_ID_##_subvendor) && \
4430 (pdev->subsystem_device == _subdevice) )
4431
4426static void b43_sprom_fixup(struct ssb_bus *bus) 4432static void b43_sprom_fixup(struct ssb_bus *bus)
4427{ 4433{
4428 struct pci_dev *pdev; 4434 struct pci_dev *pdev;
@@ -4436,10 +4442,9 @@ static void b43_sprom_fixup(struct ssb_bus *bus)
4436 bus->sprom.boardflags_lo |= B43_BFL_PACTRL; 4442 bus->sprom.boardflags_lo |= B43_BFL_PACTRL;
4437 if (bus->bustype == SSB_BUSTYPE_PCI) { 4443 if (bus->bustype == SSB_BUSTYPE_PCI) {
4438 pdev = bus->host_pci; 4444 pdev = bus->host_pci;
4439 if (pdev->vendor == PCI_VENDOR_ID_BROADCOM && 4445 if (IS_PDEV(pdev, BROADCOM, 0x4318, ASUSTEK, 0x100F) ||
4440 pdev->device == 0x4318 && 4446 IS_PDEV(pdev, BROADCOM, 0x4320, LINKSYS, 0x0015) ||
4441 pdev->subsystem_vendor == PCI_VENDOR_ID_ASUSTEK && 4447 IS_PDEV(pdev, BROADCOM, 0x4320, LINKSYS, 0x0013))
4442 pdev->subsystem_device == 0x100F)
4443 bus->sprom.boardflags_lo &= ~B43_BFL_BTCOEXIST; 4448 bus->sprom.boardflags_lo &= ~B43_BFL_BTCOEXIST;
4444 } 4449 }
4445} 4450}