2009-02-21 20:38:07 +00:00
|
|
|
From 96bb01c0363ca6a33a1071d88bfd77bc2654b051 Mon Sep 17 00:00:00 2001
|
2009-02-16 19:55:09 +00:00
|
|
|
From: Ivo van Doorn <IvDoorn@gmail.com>
|
|
|
|
Date: Sun, 15 Feb 2009 20:58:57 +0100
|
|
|
|
Subject: [PATCH] rt2x00: Add support for MCS32 (rt2800usb)
|
|
|
|
|
|
|
|
Signed-off-by: Ivo van Doorn@gmail.com>
|
|
|
|
---
|
|
|
|
drivers/net/wireless/rt2x00/rt2800usb.c | 13 ++++++++-----
|
|
|
|
1 files changed, 8 insertions(+), 5 deletions(-)
|
|
|
|
|
|
|
|
--- a/drivers/net/wireless/rt2x00/rt2800usb.c
|
|
|
|
+++ b/drivers/net/wireless/rt2x00/rt2800usb.c
|
2009-02-26 18:03:20 +00:00
|
|
|
@@ -1627,6 +1627,10 @@ static int rt2800usb_init_bbp(struct rt2
|
2009-02-16 19:55:09 +00:00
|
|
|
rt2800usb_bbp_write(rt2x00dev, 73, 0x12);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ if (rt2x00_rev(&rt2x00dev->chip) > RT2860D_VERSION) {
|
|
|
|
+ rt2800usb_bbp_write(rt2x00dev, 84, 0x19);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
if (rt2x00_rev(&rt2x00dev->chip) == RT3070_VERSION) {
|
|
|
|
rt2800usb_bbp_write(rt2x00dev, 70, 0x0a);
|
|
|
|
rt2800usb_bbp_write(rt2x00dev, 84, 0x99);
|
2009-02-26 18:03:20 +00:00
|
|
|
@@ -1658,11 +1662,9 @@ static u8 rt2800usb_init_rx_filter(struc
|
2009-02-16 19:55:09 +00:00
|
|
|
|
|
|
|
rt2800usb_rfcsr_write(rt2x00dev, 24, rfcsr24);
|
|
|
|
|
|
|
|
- if (bw40) {
|
|
|
|
- rt2800usb_bbp_read(rt2x00dev, 4, &bbp);
|
|
|
|
- rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 2);
|
|
|
|
- rt2800usb_bbp_write(rt2x00dev, 4, bbp);
|
|
|
|
- }
|
|
|
|
+ rt2800usb_bbp_read(rt2x00dev, 4, &bbp);
|
|
|
|
+ rt2x00_set_field8(&bbp, BBP4_BANDWIDTH, 2 * bw40);
|
|
|
|
+ rt2800usb_bbp_write(rt2x00dev, 4, bbp);
|
|
|
|
|
|
|
|
rt2800usb_rfcsr_read(rt2x00dev, 22, &rfcsr);
|
|
|
|
rt2x00_set_field8(&rfcsr, RFCSR22_BASEBAND_LOOPBACK, 1);
|
2009-02-26 18:03:20 +00:00
|
|
|
@@ -2535,6 +2537,7 @@ static int rt2800usb_probe_hw_mode(struc
|
2009-02-16 19:55:09 +00:00
|
|
|
spec->ht.mcs.rx_mask[1] = 0xff;
|
|
|
|
case 1:
|
|
|
|
spec->ht.mcs.rx_mask[0] = 0xff;
|
|
|
|
+ spec->ht.mcs.rx_mask[4] = 0x1; /* MCS32 */
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|