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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
|
Index: linux-3.10.14/drivers/net/raeth/raether.c
===================================================================
--- linux-3.10.14.orig/drivers/net/raeth/raether.c
+++ linux-3.10.14/drivers/net/raeth/raether.c
@@ -2103,6 +2103,11 @@ static void esw_link_status_changed(int
#endif
} else {
printk("ESW: Link Status Changed - Port%d Link Down\n", port_no);
+#if defined (CONFIG_WAN_AT_P4)
+ if(port_no==4) {
+ schedule_work(&ei_local->kill_sig_wq);
+ }
+#endif
}
}
@@ -5947,21 +5952,22 @@ void LANWANPartition(void)
mii_mgr_write(31, 0x2204, 0xff0003);//port2
mii_mgr_write(31, 0x2304, 0xff0003);//port3
mii_mgr_write(31, 0x2404, 0xff0003);//port4
+ mii_mgr_write(31, 0x2504, 0xff0003);//port5
+ mii_mgr_write(31, 0x2604, 0xff0003);//port6
/*set PVID*/
mii_mgr_write(31, 0x2014, 0x10002);//port0
- mii_mgr_write(31, 0x2114, 0x10001);//port1
- mii_mgr_write(31, 0x2214, 0x10001);//port2
- mii_mgr_write(31, 0x2314, 0x10001);//port3
- mii_mgr_write(31, 0x2414, 0x10001);//port4
- /*port6 */
+ mii_mgr_write(31, 0x2514, 0x10001);//port5
+
/*VLAN member*/
IsSwitchVlanTableBusy();
- mii_mgr_write(31, 0x94, 0x407e0001);//VAWD1
+ //mii_mgr_write(31, 0x94, 0x407e0001);//VAWD1
+ mii_mgr_write(31, 0x94, 0x40DE0001);//VAWD1
mii_mgr_write(31, 0x90, 0x80001001);//VTCR, VID=1
IsSwitchVlanTableBusy();
- mii_mgr_write(31, 0x94, 0x40610001);//VAWD1
+ //mii_mgr_write(31, 0x94, 0x40610001);//VAWD1
+ mii_mgr_write(31, 0x94, 0x40210001);//VAWD1
mii_mgr_write(31, 0x90, 0x80001002);//VTCR, VID=2
IsSwitchVlanTableBusy();
#endif
@@ -5974,20 +5980,21 @@ void LANWANPartition(void)
mii_mgr_write(31, 0x2204, 0xff0003);//port2
mii_mgr_write(31, 0x2304, 0xff0003);//port3
mii_mgr_write(31, 0x2404, 0xff0003);//port4
+ mii_mgr_write(31, 0x2504, 0xff0003);//port5
+ mii_mgr_write(31, 0x2604, 0xff0003);//port6
/*set PVID*/
- mii_mgr_write(31, 0x2014, 0x10001);//port0
- mii_mgr_write(31, 0x2114, 0x10001);//port1
- mii_mgr_write(31, 0x2214, 0x10001);//port2
- mii_mgr_write(31, 0x2314, 0x10001);//port3
mii_mgr_write(31, 0x2414, 0x10002);//port4
+ mii_mgr_write(31, 0x2514, 0x10002);//port5
/*VLAN member*/
IsSwitchVlanTableBusy();
- mii_mgr_write(31, 0x94, 0x404f0001);//VAWD1
+ //mii_mgr_write(31, 0x94, 0x404f0001);//VAWD1
+ mii_mgr_write(31, 0x94, 0x40CF0001);//VAWD1
mii_mgr_write(31, 0x90, 0x80001001);//VTCR, VID=1
IsSwitchVlanTableBusy();
- mii_mgr_write(31, 0x94, 0x40500001);//VAWD1
+ //mii_mgr_write(31, 0x94, 0x40500001);//VAWD1
+ mii_mgr_write(31, 0x94, 0x40300001);//VAWD1
mii_mgr_write(31, 0x90, 0x80001002);//VTCR, VID=2
IsSwitchVlanTableBusy();
#endif
Index: linux-3.10.14/drivers/net/wireless/Makefile
===================================================================
--- linux-3.10.14.orig/drivers/net/wireless/Makefile
+++ linux-3.10.14/drivers/net/wireless/Makefile
@@ -72,8 +72,18 @@ else
obj-$(CONFIG_WIFI_PKT_FWD) += wifi_forward/wifi_fwd/
endif
-obj-y += mtk/
-
+ifneq ($(CONFIG_RLT_AP_SUPPORT),)
+obj-$(CONFIG_RLT_AP_SUPPORT) += rlt_wifi_ap/
+endif
+ifneq ($(CONFIG_RLT_STA_SUPPORT),)
+obj-$(CONFIG_RLT_STA_SUPPORT) += rlt_wifi_sta/
+endif
+ifneq ($(CONFIG_MT_AP_SUPPORT),)
+obj-$(CONFIG_MT_AP_SUPPORT) += mt_wifi_ap/
+endif
+ifneq ($(CONFIG_MT_STA_SUPPORT),)
+obj-$(CONFIG_MT_STA_SUPPORT) += mt_wifi_sta/
+endif
#ifneq ($(CONFIG_WIFI_PKT_FWD),)
#obj-y += wifi_forward/wifi_hook/
#endif
Index: linux-3.10.14/ralink/Kconfig
===================================================================
--- linux-3.10.14.orig/ralink/Kconfig
+++ linux-3.10.14/ralink/Kconfig
@@ -61,80 +61,80 @@ choice
bool "MT7620 for rlt_wifi wifi driver"
select RTMP_MAC
select RALINK_RT6352
- select WIFI_MT7620 if SUPPORT_OPENWRT
- select MT7620_RALINK_RT6352 if SUPPORT_OPENWRT
- select MT7620_RTMP_MAC if SUPPORT_OPENWRT
config FIRST_IF_MT7628
bool "MT7628 for rlt_wifi wifi driver"
+ depends on RALINK_MT7628
select MT_MAC
config FIRST_IF_RT3092
bool "RT3092"
+ depends on RALINK_MT7621
select RTMP_MAC
select RALINK_RT3092
config FIRST_IF_RT5392
bool "RT5392"
+ depends on RALINK_MT7621
select RTMP_MAC
select RALINK_RT5392
config FIRST_IF_RT5592
bool "RT5592"
+ depends on RALINK_MT7621
select RTMP_MAC
select RALINK_RT5592
config FIRST_IF_RT3593
bool "RT3593"
+ depends on RALINK_MT7621
select RTMP_MAC
select RALINK_RT3593
config FIRST_IF_MT7610E
bool "MT7610E"
+ depends on RALINK_MT7621
select RLT_MAC
select RALINK_MT7610E
- select WIFI_MT7610E if SUPPORT_OPENWRT
config FIRST_IF_MT7612E
bool "MT7612E"
+ depends on RALINK_MT7621
select RLT_MAC
select RALINK_MT7612E
- select WIFI_MT7612E if SUPPORT_OPENWRT
- select MT76X2E_RALINK_MT7612E if SUPPORT_OPENWRT
- select MT76X2E_RLT_MAC if SUPPORT_OPENWRT
config FIRST_IF_MT7602E
bool "MT7602E"
+ depends on RALINK_MT7621
select RLT_MAC
select RALINK_MT7602E
- select WIFI_MT7602E if SUPPORT_OPENWRT
- select MT76X2E_RALINK_MT7602E if SUPPORT_OPENWRT
- select MT76X2E_RLT_MAC if SUPPORT_OPENWRT
config FIRST_IF_MT7603E
bool "MT7603E"
+ depends on RALINK_MT7621
select MT_MAC
select RALINK_MT7603E
- select WIFI_MT7603E if SUPPORT_OPENWRT
- select MT7603E_RALINK_MT7603E if SUPPORT_OPENWRT
- select MT7603E_MT_MAC if SUPPORT_OPENWRT
config FIRST_IF_MT7637E
bool "MT7637E"
+ depends on RALINK_MT7621
select WIFI_MT_MAC
select MT_MAC
select RALINK_MT7637E
- select WIFI_MT7637E if SUPPORT_OPENWRT
config FIRST_IF_MT7615E
bool "MT7615E"
+ depends on RALINK_MT7621
+ select WIFI_MT_MAC
+ select MT_MAC
+ select CHIP_MT7615E
+
+ config FIRST_IF_MT7615E
+ bool "MT7615E"
+ depends on RALINK_MT7628
select WIFI_MT_MAC
select MT_MAC
select CHIP_MT7615E
- select WIFI_MT7615E if SUPPORT_OPENWRT
- select MT7615E_CHIP_MT7615E if SUPPORT_OPENWRT
- select MT7615E_MT_MAC if SUPPORT_OPENWRT
- select MT7615E_WIFI_MT_MAC if SUPPORT_OPENWRT
endchoice
@@ -177,13 +177,11 @@ choice
bool "MT7610U"
select RLT_MAC
select RALINK_MT7610U
- select WIFI_MT7610U if SUPPORT_OPENWRT
config SECOND_IF_MT7610E
bool "MT7610E"
select RLT_MAC
select RALINK_MT7610E
- select WIFI_MT7610E if SUPPORT_OPENWRT
config SECOND_IF_RT8592
bool "RT85592"
@@ -194,32 +192,21 @@ choice
bool "MT7612U"
select RLT_MAC
select RALINK_MT7612U
- select WIFI_MT7612U if SUPPORT_OPENWRT
config SECOND_IF_MT7612E
bool "MT7612E"
select RLT_MAC
select RALINK_MT7612E
- select WIFI_MT7612E if SUPPORT_OPENWRT
- select MT76X2E_RALINK_MT7612E if SUPPORT_OPENWRT
- select MT76X2E_RLT_MAC if SUPPORT_OPENWRT
config SECOND_IF_MT7602E
bool "MT7602E"
select RLT_MAC
select RALINK_MT7602E
- select WIFI_MT7602E if SUPPORT_OPENWRT
- select MT76X2E_RALINK_MT7602E if SUPPORT_OPENWRT
- select MT76X2E_RLT_MAC if SUPPORT_OPENWRT
config SECOND_IF_MT7603E
bool "MT7603E"
select MT_MAC
select RALINK_MT7603E
- select WIFI_MT7603E if SUPPORT_OPENWRT
- select MT7603E_RALINK_MT7603E if SUPPORT_OPENWRT
- select MT7603E_MT_MAC if SUPPORT_OPENWRT
-
config SECOND_IF_MT7637E
bool "MT7637E"
@@ -231,10 +218,6 @@ choice
bool "MT7615E"
select WIFI_MT_MAC
select CHIP_MT7615E
- select WIFI_MT7615E if SUPPORT_OPENWRT
- select MT7615E_CHIP_MT7615E if SUPPORT_OPENWRT
- select MT7615E_MT_MAC if SUPPORT_OPENWRT
- select MT7615E_WIFI_MT_MAC if SUPPORT_OPENWRT
endchoice
choice
@@ -247,10 +230,6 @@ choice
select WIFI_MT_MAC
select MT_MAC
select CHIP_MT7615E
- select WIFI_MT7615E if SUPPORT_OPENWRT
- select MT7615E_CHIP_MT7615E if SUPPORT_OPENWRT
- select MT7615E_MT_MAC if SUPPORT_OPENWRT
- select MT7615E_WIFI_MT_MAC if SUPPORT_OPENWRT
endchoice
config RT_FIRST_CARD
@@ -383,7 +362,6 @@ choice
endchoice
-source "drivers/net/wireless/mtk/Kconfig"
#source "drivers/net/wireless/rt2860v2_ap/Kconfig"
#source "drivers/net/wireless/rt2860v2_sta/Kconfig"
#source "drivers/net/wireless/RTPCI_ap/Kconfig"
|