mac80211: refresh patches
[14.07/openwrt.git] / package / kernel / mac80211 / patches / 925-rt2x00-backport_rf5362.patch
1 --- a/drivers/net/wireless/rt2x00/rt2800.h
2 +++ b/drivers/net/wireless/rt2x00/rt2800.h
3 @@ -53,6 +53,7 @@
4   * RF5592 2.4G/5G 2T2R
5   * RF3070 2.4G 1T1R
6   * RF5360 2.4G 1T1R
7 + * RF5362 2.4G 1T1R
8   * RF5370 2.4G 1T1R
9   * RF5390 2.4G 1T1R
10   */
11 @@ -75,6 +76,7 @@
12  #define RF3853                         0x3853
13  #define RF5350                         0x5350
14  #define RF5360                         0x5360
15 +#define RF5362                         0x5362
16  #define RF5370                         0x5370
17  #define RF5372                         0x5372
18  #define RF5390                         0x5390
19 @@ -2207,7 +2209,7 @@ struct mac_iveiv_entry {
20  /* Bits [7-4] for RF3320 (RT3370/RT3390), on other chipsets reserved */
21  #define RFCSR3_PA1_BIAS_CCK            FIELD8(0x70)
22  #define RFCSR3_PA2_CASCODE_BIAS_CCKK   FIELD8(0x80)
23 -/* Bits for RF3290/RF5360/RF5370/RF5372/RF5390/RF5392 */
24 +/* Bits for RF3290/RF5360/RF5362/RF5370/RF5372/RF5390/RF5392 */
25  #define RFCSR3_VCOCAL_EN               FIELD8(0x80)
26  /* Bits for RF3050 */
27  #define RFCSR3_BIT1                    FIELD8(0x02)
28 --- a/drivers/net/wireless/rt2x00/rt2800lib.c
29 +++ b/drivers/net/wireless/rt2x00/rt2800lib.c
30 @@ -3902,6 +3902,7 @@ static void rt2800_config_channel(struct
31         case RF3070:
32         case RF5350:
33         case RF5360:
34 +       case RF5362:
35         case RF5370:
36         case RF5372:
37         case RF5390:
38 @@ -3923,6 +3924,7 @@ static void rt2800_config_channel(struct
39             rt2x00_rf(rt2x00dev, RF3322) ||
40             rt2x00_rf(rt2x00dev, RF5350) ||
41             rt2x00_rf(rt2x00dev, RF5360) ||
42 +           rt2x00_rf(rt2x00dev, RF5362) ||
43             rt2x00_rf(rt2x00dev, RF5370) ||
44             rt2x00_rf(rt2x00dev, RF5372) ||
45             rt2x00_rf(rt2x00dev, RF5390) ||
46 @@ -5087,6 +5089,7 @@ void rt2800_vco_calibration(struct rt2x0
47         case RF3853:
48         case RF5350:
49         case RF5360:
50 +       case RF5362:
51         case RF5370:
52         case RF5372:
53         case RF5390:
54 @@ -8801,6 +8804,7 @@ static int rt2800_init_eeprom(struct rt2
55         case RF3853:
56         case RF5350:
57         case RF5360:
58 +       case RF5362:
59         case RF5370:
60         case RF5372:
61         case RF5390:
62 @@ -9368,6 +9372,7 @@ static int rt2800_probe_hw_mode(struct r
63         case RF3322:
64         case RF5350:
65         case RF5360:
66 +       case RF5362:
67         case RF5370:
68         case RF5372:
69         case RF5390:
70 @@ -9508,6 +9513,7 @@ static int rt2800_probe_hw_mode(struct r
71         case RF3853:
72         case RF5350:
73         case RF5360:
74 +       case RF5362:
75         case RF5370:
76         case RF5372:
77         case RF5390: