madwifi: improve the autochannel decision making on systems with multiple cards
[openwrt/openwrt.git] / package / mac80211 / patches / 323-rt2x00-Add-RT3070-detection.patch
1 From 4fd4f7fd1db857b86fa3e6a1165f1ff051a71a7d Mon Sep 17 00:00:00 2001
2 From: Ivo van Doorn <IvDoorn@gmail.com>
3 Date: Sat, 21 Feb 2009 10:57:03 +0100
4 Subject: [PATCH] rt2x00: Add RT3070 detection
5
6 Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
7 ---
8 drivers/net/wireless/rt2x00/rt2800usb.c | 3 ++-
9 1 files changed, 2 insertions(+), 1 deletions(-)
10
11 --- a/drivers/net/wireless/rt2x00/rt2800usb.c
12 +++ b/drivers/net/wireless/rt2x00/rt2800usb.c
13 @@ -2338,7 +2338,8 @@ static int rt2800usb_init_eeprom(struct
14 * identifies itself as rt2860 in the CSR register.
15 */
16 if ((rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2860) &&
17 - (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2870)) {
18 + (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x2870) &&
19 + (rt2x00_get_field32(reg, MAC_CSR0_ASIC_VER) != 0x3070)) {
20 ERROR(rt2x00dev, "Invalid RT chipset detected.\n");
21 return -ENODEV;
22 }