wil6210: Workaround for Sparrow with bad device id
authorVladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Wed, 6 Aug 2014 07:31:54 +0000 (10:31 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 20:17:33 +0000 (16:17 -0400)
If firmware broken on the boot time, Sparrow card enumerates as
device 0x302 instead of 0x310. Allow using this ID

Signed-off-by: Vladimir Kondratiev <qca_vkondrat@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/wil6210/pcie_bus.c

index a6af2bb2e9f9d0970ce573712d6a951ecab2c597..cf0b21987d7014b9a57bc0e49cd44dc75005eac9 100644 (file)
@@ -243,6 +243,8 @@ static const struct pci_device_id wil6210_pcie_ids[] = {
          .driver_data = (kernel_ulong_t)&wil_board_marlon },
        { PCI_DEVICE(0x1ae9, 0x0310),
          .driver_data = (kernel_ulong_t)&wil_board_sparrow },
+       { PCI_DEVICE(0x1ae9, 0x0302), /* same as above, firmware broken */
+         .driver_data = (kernel_ulong_t)&wil_board_sparrow },
        { /* end: all zeroes */ },
 };
 MODULE_DEVICE_TABLE(pci, wil6210_pcie_ids);