[OpenWrt-Devel] [PATCH 5/8] BB (BACKPORT) - mac80211: add support for rf5362 (needed by vgv7519 wifi)

Eddi De Pieri eddi at depieri.net
Fri Oct 10 15:19:04 EDT 2014


Signed-off-by: Eddi De Pieri <eddi at depieri.net>
---
 .../patches/925-rt2x00-backport_rf5362.patch       |   79 ++++++++++++++++++++
 1 file changed, 79 insertions(+)
 create mode 100644 package/kernel/mac80211/patches/925-rt2x00-backport_rf5362.patch

diff --git a/package/kernel/mac80211/patches/925-rt2x00-backport_rf5362.patch b/package/kernel/mac80211/patches/925-rt2x00-backport_rf5362.patch
new file mode 100644
index 0000000..84b1fcd
--- /dev/null
+++ b/package/kernel/mac80211/patches/925-rt2x00-backport_rf5362.patch
@@ -0,0 +1,79 @@
+diff -u -N -r compat-wireless-2014-05-22.orig/drivers/net/wireless/rt2x00/rt2800.h compat-wireless-2014-05-22/drivers/net/wireless/rt2x00/rt2800.h
+--- compat-wireless-2014-05-22.orig/drivers/net/wireless/rt2x00/rt2800.h	2014-10-10 14:53:56.000000000 +0200
++++ compat-wireless-2014-05-22/drivers/net/wireless/rt2x00/rt2800.h	2014-10-10 15:09:36.000000000 +0200
+@@ -53,6 +53,7 @@
+  * RF5592 2.4G/5G 2T2R
+  * RF3070 2.4G 1T1R
+  * RF5360 2.4G 1T1R
++ * RF5362 2.4G 1T1R
+  * RF5370 2.4G 1T1R
+  * RF5390 2.4G 1T1R
+  */
+@@ -75,6 +76,7 @@
+ #define RF3853				0x3853
+ #define RF5350				0x5350
+ #define RF5360				0x5360
++#define RF5362				0x5362
+ #define RF5370				0x5370
+ #define RF5372				0x5372
+ #define RF5390				0x5390
+@@ -2207,7 +2209,7 @@
+ /* Bits [7-4] for RF3320 (RT3370/RT3390), on other chipsets reserved */
+ #define RFCSR3_PA1_BIAS_CCK		FIELD8(0x70)
+ #define RFCSR3_PA2_CASCODE_BIAS_CCKK	FIELD8(0x80)
+-/* Bits for RF3290/RF5360/RF5370/RF5372/RF5390/RF5392 */
++/* Bits for RF3290/RF5360/RF5362/RF5370/RF5372/RF5390/RF5392 */
+ #define RFCSR3_VCOCAL_EN		FIELD8(0x80)
+ /* Bits for RF3050 */
+ #define RFCSR3_BIT1			FIELD8(0x02)
+diff -u -N -r compat-wireless-2014-05-22.orig/drivers/net/wireless/rt2x00/rt2800lib.c compat-wireless-2014-05-22/drivers/net/wireless/rt2x00/rt2800lib.c
+--- compat-wireless-2014-05-22.orig/drivers/net/wireless/rt2x00/rt2800lib.c	2014-10-10 14:53:56.000000000 +0200
++++ compat-wireless-2014-05-22/drivers/net/wireless/rt2x00/rt2800lib.c	2014-10-10 15:10:43.000000000 +0200
+@@ -3902,6 +3902,7 @@
+ 	case RF3070:
+ 	case RF5350:
+ 	case RF5360:
++	case RF5362:
+ 	case RF5370:
+ 	case RF5372:
+ 	case RF5390:
+@@ -3923,6 +3924,7 @@
+ 	    rt2x00_rf(rt2x00dev, RF3322) ||
+ 	    rt2x00_rf(rt2x00dev, RF5350) ||
+ 	    rt2x00_rf(rt2x00dev, RF5360) ||
++	    rt2x00_rf(rt2x00dev, RF5362) ||
+ 	    rt2x00_rf(rt2x00dev, RF5370) ||
+ 	    rt2x00_rf(rt2x00dev, RF5372) ||
+ 	    rt2x00_rf(rt2x00dev, RF5390) ||
+@@ -5087,6 +5089,7 @@
+ 	case RF3853:
+ 	case RF5350:
+ 	case RF5360:
++	case RF5362:
+ 	case RF5370:
+ 	case RF5372:
+ 	case RF5390:
+@@ -8801,6 +8804,7 @@
+ 	case RF3853:
+ 	case RF5350:
+ 	case RF5360:
++	case RF5362:
+ 	case RF5370:
+ 	case RF5372:
+ 	case RF5390:
+@@ -9368,6 +9372,7 @@
+ 	case RF3322:
+ 	case RF5350:
+ 	case RF5360:
++	case RF5362:
+ 	case RF5370:
+ 	case RF5372:
+ 	case RF5390:
+@@ -9508,6 +9513,7 @@
+ 	case RF3853:
+ 	case RF5350:
+ 	case RF5360:
++	case RF5362:
+ 	case RF5370:
+ 	case RF5372:
+ 	case RF5390:
-- 
1.7.10.4
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list