staging: rtl8192e: Fix DeviceID in rtl8192_pci_findadapter()
authorMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Mon, 13 Apr 2015 21:47:32 +0000 (23:47 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 May 2015 07:24:07 +0000 (09:24 +0200)
rtl8192_pci_findadapter() was looking for invalid DeviceID (0x8172),
instead of proper for rtl8192e/se devices (0x8192)

Signed-off-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/rtl_pci.c

index 51f53be2de17f01e0b0090ce28ed3b90a142c2f7..e8065c0ed05fb42c13a5abbfb0b9383818b3d0ec 100644 (file)
@@ -62,7 +62,7 @@ bool rtl8192_pci_findadapter(struct pci_dev *pdev, struct net_device *dev)
 
        priv->card_8192 = priv->ops->nic_type;
 
-       if (DeviceID == 0x8172) {
+       if (DeviceID == 0x8192) {
                switch (RevisionID) {
                case HAL_HW_PCI_REVISION_ID_8192PCIE:
                        dev_info(&pdev->dev,