brcm2708: update against latest rpi-3.10.y branch
[openwrt/svn-archive/archive.git] / target / linux / brcm2708 / patches-3.10 / 0092-Support-for-cheap-Ralink-3070-WiFi-plug.patch
1 From b735e5ba3039bbd89651b881705a6cb8d62882d6 Mon Sep 17 00:00:00 2001
2 From: popcornmix <popcornmix@gmail.com>
3 Date: Sat, 7 Sep 2013 19:07:33 +0100
4 Subject: [PATCH 092/174] Support for cheap Ralink 3070 WiFi plug
5
6 See: https://github.com/raspberrypi/linux/pull/321
7 ---
8 drivers/net/wireless/rt2x00/rt2800.h | 1 +
9 drivers/net/wireless/rt2x00/rt2800lib.c | 6 ++++++
10 2 files changed, 7 insertions(+)
11
12 --- a/drivers/net/wireless/rt2x00/rt2800.h
13 +++ b/drivers/net/wireless/rt2x00/rt2800.h
14 @@ -70,6 +70,7 @@
15 #define RF3322 0x000c
16 #define RF3053 0x000d
17 #define RF5592 0x000f
18 +#define RF3070 0x3070
19 #define RF3290 0x3290
20 #define RF5360 0x5360
21 #define RF5370 0x5370
22 --- a/drivers/net/wireless/rt2x00/rt2800lib.c
23 +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
24 @@ -2599,6 +2599,7 @@ static void rt2800_config_channel(struct
25 break;
26 case RF5360:
27 case RF5370:
28 + case RF3070:
29 case RF5372:
30 case RF5390:
31 case RF5392:
32 @@ -2615,6 +2616,7 @@ static void rt2800_config_channel(struct
33 rt2x00_rf(rt2x00dev, RF3322) ||
34 rt2x00_rf(rt2x00dev, RF5360) ||
35 rt2x00_rf(rt2x00dev, RF5370) ||
36 + rt2x00_rf(rt2x00dev, RF3070) ||
37 rt2x00_rf(rt2x00dev, RF5372) ||
38 rt2x00_rf(rt2x00dev, RF5390) ||
39 rt2x00_rf(rt2x00dev, RF5392)) {
40 @@ -3206,6 +3208,7 @@ void rt2800_vco_calibration(struct rt2x0
41 case RF3290:
42 case RF5360:
43 case RF5370:
44 + case RF3070:
45 case RF5372:
46 case RF5390:
47 case RF5392:
48 @@ -5524,6 +5527,7 @@ static int rt2800_init_eeprom(struct rt2
49 case RF3322:
50 case RF5360:
51 case RF5370:
52 + case RF3070:
53 case RF5372:
54 case RF5390:
55 case RF5392:
56 @@ -5979,6 +5983,7 @@ static int rt2800_probe_hw_mode(struct r
57 rt2x00_rf(rt2x00dev, RF3322) ||
58 rt2x00_rf(rt2x00dev, RF5360) ||
59 rt2x00_rf(rt2x00dev, RF5370) ||
60 + rt2x00_rf(rt2x00dev, RF3070) ||
61 rt2x00_rf(rt2x00dev, RF5372) ||
62 rt2x00_rf(rt2x00dev, RF5390) ||
63 rt2x00_rf(rt2x00dev, RF5392)) {
64 @@ -6081,6 +6086,7 @@ static int rt2800_probe_hw_mode(struct r
65 case RF3290:
66 case RF5360:
67 case RF5370:
68 + case RF3070:
69 case RF5372:
70 case RF5390:
71 case RF5392: