aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2009-05-08 12:30:43 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-05-11 15:23:56 -0400
commit5a9940118a616266183c53a9ee4352feadb9c2e8 (patch)
tree5fdea7dfefcf38416d416c56c6b5ea7cd1caef33 /drivers
parent99c84cb0692729088788d8e1d1cee670154176e4 (diff)
rt2x00: Fix chipset detection for rt73usb
The lower 4 bytes of the chipset revision must contain a non-zero value. This bug was introduced by "rt2x00: Simplify rt2x00_check_rev". Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/rt2x00/rt73usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c
index d10af3687a8e..270dd4e59f7f 100644
--- a/drivers/net/wireless/rt2x00/rt73usb.c
+++ b/drivers/net/wireless/rt2x00/rt73usb.c
@@ -1847,7 +1847,7 @@ static int rt73usb_init_eeprom(struct rt2x00_dev *rt2x00dev)
1847 rt2x00_set_chip(rt2x00dev, RT2571, value, reg); 1847 rt2x00_set_chip(rt2x00dev, RT2571, value, reg);
1848 1848
1849 if (!rt2x00_check_rev(&rt2x00dev->chip, 0x000ffff0, 0x25730) || 1849 if (!rt2x00_check_rev(&rt2x00dev->chip, 0x000ffff0, 0x25730) ||
1850 !rt2x00_check_rev(&rt2x00dev->chip, 0x0000000f, 0)) { 1850 rt2x00_check_rev(&rt2x00dev->chip, 0x0000000f, 0)) {
1851 ERROR(rt2x00dev, "Invalid RT chipset detected.\n"); 1851 ERROR(rt2x00dev, "Invalid RT chipset detected.\n");
1852 return -ENODEV; 1852 return -ENODEV;
1853 } 1853 }