Skip to content

Commit

Permalink
rtl8192e: reject rtl8192se cards with same PCI ID
Browse files Browse the repository at this point in the history
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Mike McCormack <mikem@ring3k.org>
  • Loading branch information
Mike McCormack authored and Larry Finger committed Aug 24, 2011
1 parent 94a7994 commit 1ec3e2f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/staging/rtl8192e/rtl_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -3558,6 +3558,7 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
#endif
int err = 0;
bool bdma64 = false;
u8 revision_id;

RT_TRACE(COMP_INIT,"Configuring chip resources");

Expand Down Expand Up @@ -3681,6 +3682,11 @@ static int __devinit rtl8192_pci_probe(struct pci_dev *pdev,
pci_write_config_byte(pdev,0x04,0x07);
#endif

pci_read_config_byte(pdev, 0x08, &revision_id);
/* If the revisionid is 0x10, the device uses rtl8192se. */
if (pdev->device == 0x8192 && revision_id == 0x10)
goto fail1;

#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)
priv->ops = ops;
#else
Expand Down

0 comments on commit 1ec3e2f

Please sign in to comment.