aboutsummaryrefslogtreecommitdiffstats
path: root/package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch')
-rw-r--r--package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch b/package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch
new file mode 100644
index 0000000000..2adf983ea0
--- /dev/null
+++ b/package/mac80211/patches/324-rt2x00-Add-support-for-MCS32-rt2800usb.patch
@@ -0,0 +1,46 @@
+From a0b61da562624d3a5c11309c8742ae115290a418 Mon Sep 17 00:00:00 2001
+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
+@@ -1627,6 +1627,10 @@ static int rt2800usb_init_bbp(struct rt2
+ 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);
+@@ -1658,11 +1662,9 @@ static u8 rt2800usb_init_rx_filter(struc
+
+ 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);
+@@ -2535,6 +2537,7 @@ static int rt2800usb_probe_hw_mode(struc
+ 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;
+ }
+