aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm2708/patches-3.10/0092-Support-for-cheap-Ralink-3070-WiFi-plug.patch
blob: 1ead15d4e74864c53687afc927034b52dd2aab56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
From b735e5ba3039bbd89651b881705a6cb8d62882d6 Mon Sep 17 00:00:00 2001
From: popcornmix <popcornmix@gmail.com>
Date: Sat, 7 Sep 2013 19:07:33 +0100
Subject: [PATCH 092/174] Support for cheap Ralink 3070 WiFi plug

See: https://github.com/raspberrypi/linux/pull/321
---
 drivers/net/wireless/rt2x00/rt2800.h    | 1 +
 drivers/net/wireless/rt2x00/rt2800lib.c | 6 ++++++
 2 files changed, 7 insertions(+)

--- a/drivers/net/wireless/rt2x00/rt2800.h
+++ b/drivers/net/wireless/rt2x00/rt2800.h
@@ -70,6 +70,7 @@
 #define RF3322				0x000c
 #define RF3053				0x000d
 #define RF5592				0x000f
+#define RF3070				0x3070
 #define RF3290				0x3290
 #define RF5360				0x5360
 #define RF5370				0x5370
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -2599,6 +2599,7 @@ static void rt2800_config_channel(struct
 		break;
 	case RF5360:
 	case RF5370:
+	case RF3070:
 	case RF5372:
 	case RF5390:
 	case RF5392:
@@ -2615,6 +2616,7 @@ static void rt2800_config_channel(struct
 	    rt2x00_rf(rt2x00dev, RF3322) ||
 	    rt2x00_rf(rt2x00dev, RF5360) ||
 	    rt2x00_rf(rt2x00dev, RF5370) ||
+	    rt2x00_rf(rt2x00dev, RF3070) ||
 	    rt2x00_rf(rt2x00dev, RF5372) ||
 	    rt2x00_rf(rt2x00dev, RF5390) ||
 	    rt2x00_rf(rt2x00dev, RF5392)) {
@@ -3206,6 +3208,7 @@ void rt2800_vco_calibration(struct rt2x0
 	case RF3290:
 	case RF5360:
 	case RF5370:
+	case RF3070:
 	case RF5372:
 	case RF5390:
 	case RF5392:
@@ -5524,6 +5527,7 @@ static int rt2800_init_eeprom(struct rt2
 	case RF3322:
 	case RF5360:
 	case RF5370:
+	case RF3070:
 	case RF5372:
 	case RF5390:
 	case RF5392:
@@ -5979,6 +5983,7 @@ static int rt2800_probe_hw_mode(struct r
 		   rt2x00_rf(rt2x00dev, RF3322) ||
 		   rt2x00_rf(rt2x00dev, RF5360) ||
 		   rt2x00_rf(rt2x00dev, RF5370) ||
+		   rt2x00_rf(rt2x00dev, RF3070) ||
 		   rt2x00_rf(rt2x00dev, RF5372) ||
 		   rt2x00_rf(rt2x00dev, RF5390) ||
 		   rt2x00_rf(rt2x00dev, RF5392)) {
@@ -6081,6 +6086,7 @@ static int rt2800_probe_hw_mode(struct r
 	case RF3290:
 	case RF5360:
 	case RF5370:
+	case RF3070:
 	case RF5372:
 	case RF5390:
 	case RF5392: