1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-12 20:44:05 +02:00
openwrt-xburst/package/mac80211/patches/323-rt2x00-Add-RT3070-detection.patch
juhosg e93015c4d4 [package] mac80211: update compat-wireless to 2009-02-25
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14675 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-02-26 18:03:20 +00:00

23 lines
901 B
Diff

From 4fd4f7fd1db857b86fa3e6a1165f1ff051a71a7d Mon Sep 17 00:00:00 2001
From: Ivo van Doorn <IvDoorn@gmail.com>
Date: Sat, 21 Feb 2009 10:57:03 +0100
Subject: [PATCH] rt2x00: Add RT3070 detection
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
---
drivers/net/wireless/rt2x00/rt2800usb.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
@@ -2338,7 +2338,8 @@ static int rt2800usb_init_eeprom(struct
* identifies itself as rt2860 in the CSR register.
*/
if ((rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2860) &&
- (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2870)) {
+ (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2870) &&
+ (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x3070)) {
ERROR(rt2x00dev, "Invalid RT chipset detected.\n");
return -ENODEV;
}