ath79: use internal switch for EAP300 v2
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / board.d / 01_leds
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4
5 board_config_update
6
7 board=$(board_name)
8
9 case "$board" in
10 8dev,carambola2)
11 ucidef_set_led_netdev "lan" "LAN" "orange:eth0" "eth0"
12 ucidef_set_led_switch "wan" "WAN" "orange:eth1" "switch0" "0x04"
13 ;;
14 alfa-network,ap121f|\
15 alfa-network,ap121fe|\
16 avm,fritz450e|\
17 glinet,6408|\
18 glinet,6416|\
19 glinet,gl-ar300m-lite|\
20 glinet,gl-ar300m16|\
21 pcs,cap324|\
22 tplink,cpe610-v1|\
23 tplink,cpe610-v2)
24 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
25 ;;
26 alfa-network,n2q)
27 ucidef_set_led_netdev "lan2" "LAN2" "orange:lan2" "eth1"
28 ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
29 ucidef_set_rssimon "wlan0" "200000" "1"
30 ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
31 ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "33" "100"
32 ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "66" "100"
33 ;;
34 alfa-network,n5q)
35 ucidef_set_led_netdev "lan2" "LAN2" "green:lan2" "eth1"
36 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
37 ucidef_set_rssimon "wlan0" "200000" "1"
38 ucidef_set_led_rssi "signal1" "SIGNAL1" "red:signal1" "wlan0" "1" "100"
39 ucidef_set_led_rssi "signal2" "SIGNAL2" "orange:signal2" "wlan0" "25" "100"
40 ucidef_set_led_rssi "signal3" "SIGNAL3" "green:signal3" "wlan0" "50" "100"
41 ucidef_set_led_rssi "signal4" "SIGNAL4" "green:signal4" "wlan0" "75" "100"
42 ;;
43 alfa-network,pi-wifi4)
44 ucidef_set_led_netdev "lan_data" "LAN_DATA" "orange:lan_data" "eth0" "tx rx"
45 ucidef_set_led_netdev "lan_link" "LAN_LINK" "green:lan_link" "eth0" "link"
46 ;;
47 alfa-network,r36a)
48 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
49 ucidef_set_led_switch "wan" "WAN" "blue:wan" "switch0" "0x10"
50 ;;
51 avm,fritz1750e)
52 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
53 ucidef_set_rssimon "wlan1" "200000" "1"
54 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan1" "1" "100"
55 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan1" "20" "100"
56 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan1" "40" "100"
57 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan1" "60" "100"
58 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan1" "80" "100"
59 ;;
60 avm,fritz300e)
61 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
62 ucidef_set_rssimon "wlan0" "200000" "1"
63 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssi0" "wlan0" "1" "100"
64 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssi1" "wlan0" "20" "100"
65 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssi2" "wlan0" "40" "100"
66 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssi3" "wlan0" "60" "100"
67 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssi4" "wlan0" "80" "100"
68 ;;
69 avm,fritz4020|\
70 tplink,archer-c58-v1|\
71 tplink,archer-c59-v1|\
72 tplink,archer-c59-v2|\
73 tplink,archer-c60-v1|\
74 tplink,archer-c60-v2|\
75 tplink,archer-c60-v3)
76 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x1e"
77 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
78 ;;
79 avm,fritzdvbc)
80 ucidef_set_rssimon "wlan1" "200000" "1"
81 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:rssilow" "wlan1" "1" "100"
82 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan1" "20" "100"
83 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "green:rssimedium" "wlan1" "40" "100"
84 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan1" "60" "100"
85 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan1" "80" "100"
86 ;;
87 comfast,cf-e110n-v2)
88 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
89 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
90 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
91 ucidef_set_rssimon "wlan0" "200000" "1"
92 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
93 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
94 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
95 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
96 ;;
97 comfast,cf-e120a-v3)
98 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
99 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x04"
100 ucidef_set_rssimon "wlan0" "200000" "1"
101 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
102 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
103 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
104 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
105 ;;
106 comfast,cf-e130n-v2)
107 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
108 ucidef_set_rssimon "wlan0" "200000" "1"
109 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
110 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
111 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
112 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
113 ;;
114 comfast,cf-e313ac)
115 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
116 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
117 ucidef_set_rssimon "wlan0" "200000" "1"
118 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
119 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
120 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
121 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
122 ;;
123 comfast,cf-e314n-v2)
124 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
125 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth1"
126 ucidef_set_rssimon "wlan0" "200000" "1"
127 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
128 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "red:rssimediumlow" "wlan0" "26" "100"
129 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
130 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
131 ;;
132 comfast,cf-e5)
133 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
134 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
135 ucidef_set_rssimon "wlan0" "200000" "1"
136 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
137 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "blue:rssi1" "wlan0" "33" "100"
138 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi2" "wlan0" "66" "100"
139 ;;
140 comfast,cf-e560ac)
141 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
142 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x02"
143 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x04"
144 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x08"
145 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x10"
146 ;;
147 comfast,cf-ew72|\
148 openmesh,om2p-v2|\
149 openmesh,om2p-hs-v1|\
150 openmesh,om2p-hs-v2|\
151 openmesh,om2p-hs-v3|\
152 openmesh,om2p-lc|\
153 openmesh,om5p|\
154 telco,t1)
155 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
156 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
157 ;;
158 comfast,cf-wr752ac-v1|\
159 enterasys,ws-ap3705i|\
160 openmesh,mr900-v1|\
161 openmesh,mr900-v2|\
162 openmesh,mr1750-v1|\
163 openmesh,mr1750-v2)
164 ucidef_set_led_netdev "lan" "LAN" "blue:lan" "eth0"
165 ;;
166 compex,wpj344-16m|\
167 compex,wpj531-16m)
168 ucidef_set_rssimon "wlan0" "200000" "1"
169 ucidef_set_led_rssi "sig1" "SIG1" "red:sig1" "wlan0" "85" "100"
170 ucidef_set_led_rssi "sig2" "SIG2" "yellow:sig2" "wlan0" "75" "100"
171 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "65" "100"
172 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "50" "100"
173 ;;
174 devolo,magic-2-wifi)
175 ucidef_set_led_netdev "plcw" "dLAN" "white:dlan" "eth0.1" "rx"
176 ;;
177 dlink,dap-1330-a1|\
178 dlink,dap-1365-a1)
179 ucidef_set_rssimon "wlan0" "200000" "1"
180 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "25"
181 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:rssimediumlow" "wlan0" "1" "100"
182 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:rssimediumhigh" "wlan0" "51" "100"
183 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "76" "100"
184 ;;
185 dlink,dir-859-a1)
186 ucidef_set_led_switch "internet" "WAN" "green:internet" "switch0" "0x20"
187 ;;
188 engenius,ens202ext-v1|\
189 engenius,enstationac-v1)
190 ucidef_set_rssimon "wlan0" "200000" "1"
191 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:rssilow" "wlan0" "1" "100"
192 ucidef_set_led_rssi "rssimedium" "RSSIMEDIUM" "amber:rssimedium" "wlan0" "33" "100"
193 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:rssihigh" "wlan0" "67" "100"
194 ;;
195 engenius,ews511ap)
196 ucidef_set_led_netdev "lan1" "LAN1" "blue:lan1" "eth1"
197 ucidef_set_led_netdev "lan2" "LAN2" "blue:lan2" "eth0"
198 ;;
199 etactica,eg200)
200 ucidef_set_led_netdev "lan" "LAN" "red:eth0" "eth0"
201 ucidef_set_led_oneshot "modbus" "Modbus" "red:modbus" "100" "33"
202 ;;
203 glinet,gl-mifi|\
204 qxwlan,e600g-v2-8m|\
205 qxwlan,e600g-v2-16m|\
206 qxwlan,e600gac-v2-8m|\
207 qxwlan,e600gac-v2-16m|\
208 qxwlan,e750a-v4-8m|\
209 qxwlan,e750a-v4-16m)
210 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x02"
211 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
212 ;;
213 glinet,gl-x750)
214 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
215 ;;
216 hak5,lan-turtle)
217 ucidef_set_led_netdev "wan" "WAN" "orange:system" "eth1"
218 ;;
219 meraki,mr12|\
220 tplink,cpe210-v2|\
221 tplink,cpe210-v3)
222 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
223 ucidef_set_rssimon "wlan0" "200000" "1"
224 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
225 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
226 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
227 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
228 ;;
229 meraki,mr16)
230 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth0"
231 ;;
232 netgear,wnr2200-8m|\
233 netgear,wnr2200-16m)
234 ucidef_set_led_netdev "wan-amber" "WAN (amber)" "amber:wan" "eth0"
235 ucidef_set_led_switch "lan1green" "LAN1 (green)" "green:lan1" "switch0" "0x02" "0x04"
236 ucidef_set_led_switch "lan2green" "LAN2 (green)" "green:lan2" "switch0" "0x04" "0x04"
237 ucidef_set_led_switch "lan3green" "LAN3 (green)" "green:lan3" "switch0" "0x08" "0x04"
238 ucidef_set_led_switch "lan4green" "LAN4 (green)" "green:lan4" "switch0" "0x10" "0x04"
239 ucidef_set_led_switch "lan1amber" "LAN1 (amber)" "amber:lan1" "switch0" "0x02" "0x02"
240 ucidef_set_led_switch "lan2amber" "LAN2 (amber)" "amber:lan2" "switch0" "0x04" "0x02"
241 ucidef_set_led_switch "lan3amber" "LAN3 (amber)" "amber:lan3" "switch0" "0x08" "0x02"
242 ucidef_set_led_switch "lan4amber" "LAN4 (amber)" "amber:lan4" "switch0" "0x10" "0x02"
243 ;;
244 openmesh,om2p-v4|\
245 openmesh,om2p-hs-v4)
246 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth0"
247 ucidef_set_led_switch "lan" "LAN" "blue:lan" "switch0" "0x02"
248 ;;
249 pcs,cr3000)
250 ucidef_set_led_netdev "wan" "WAN" "blue:wan" "eth1"
251 ucidef_set_led_switch "lan1" "LAN1" "blue:lan1" "switch0" "0x04"
252 ucidef_set_led_switch "lan2" "LAN2" "blue:lan2" "switch0" "0x08"
253 ucidef_set_led_switch "lan3" "LAN3" "blue:lan3" "switch0" "0x10"
254 ucidef_set_led_switch "lan4" "LAN4" "blue:lan4" "switch0" "0x02"
255 ;;
256 qihoo,c301)
257 ucidef_set_led_wlan "wlan" "WLAN" "green:wlan" "phy0tpt"
258 ;;
259 samsung,wam250)
260 ucidef_set_led_netdev "lan" "LAN" "white:lan" "eth0"
261 ;;
262 tplink,archer-a7-v5|\
263 tplink,archer-c7-v4|\
264 tplink,archer-c7-v5)
265 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
266 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
267 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
268 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
269 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x20"
270 ;;
271 tplink,archer-c2-v3|\
272 tplink,tl-wr1043nd-v4|\
273 tplink,tl-wr1043n-v5)
274 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x20"
275 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
276 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
277 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
278 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
279 ;;
280 tplink,archer-c6-v2|\
281 tplink,archer-c6-v2-us)
282 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
283 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x02"
284 ;;
285 tplink,archer-c25-v1|\
286 tplink,tl-wr842n-v3)
287 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
288 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
289 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
290 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x04"
291 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
292 ;;
293 tplink,archer-d50-v1)
294 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x1c"
295 ucidef_set_led_switch "wan_data" "WAN Data" "white:internet" "switch0" "0x02" "" "tx rx"
296 ucidef_set_led_switch "wan_link" "WAN Link" "white:wan" "switch0" "0x02" "" "link"
297 ;;
298 tplink,archer-d7-v1|\
299 tplink,archer-d7b-v1)
300 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x3c"
301 ;;
302 tplink,cpe210-v1|\
303 tplink,cpe220-v2|\
304 tplink,cpe220-v3|\
305 tplink,cpe510-v1|\
306 tplink,wbs210-v1|\
307 tplink,wbs210-v2|\
308 tplink,wbs510-v1|\
309 tplink,wbs510-v2)
310 ucidef_set_led_netdev "lan0" "LAN0" "green:lan0" "eth1"
311 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x10"
312 ucidef_set_rssimon "wlan0" "200000" "1"
313 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100"
314 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "30" "100"
315 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "60" "100"
316 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "80" "100"
317 ;;
318 tplink,cpe510-v2|\
319 tplink,cpe510-v3)
320 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
321 ucidef_set_rssimon "wlan0" "200000" "1"
322 ucidef_set_led_rssi "rssilow" "RSSILOW" "green:link1" "wlan0" "1" "100" "0" "13"
323 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "green:link2" "wlan0" "26" "100" "-25" "13"
324 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100" "-50" "13"
325 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100" "-75" "13"
326 ;;
327 tplink,tl-wr902ac-v1)
328 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
329 ucidef_set_led_netdev "internet" "Internet" "green:internet" "eth0"
330 ;;
331 tplink,re355-v1|\
332 tplink,re450-v1|\
333 tplink,re450-v2|\
334 tplink,re450-v3)
335 ucidef_set_led_netdev "lan_data" "LAN Data" "green:lan_data" "eth0" "tx rx"
336 ucidef_set_led_netdev "lan_link" "LAN Link" "green:lan_link" "eth0" "link"
337 ;;
338 tplink,tl-mr6400-v1)
339 ucidef_set_led_switch "lan" "LAN" "white:lan" "switch0" "0x0e"
340 ucidef_set_led_netdev "wan" "WAN" "white:wan" "eth1"
341 ucidef_set_led_netdev "4g" "4G" "white:4g" "usb0"
342 ;;
343 tplink,tl-wpa8630-v1|\
344 tplink,tl-wpa8630p-v2-int|\
345 tplink,tl-wpa8630p-v2.0-eu|\
346 tplink,tl-wpa8630p-v2.1-eu)
347 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x3c"
348 ;;
349 tplink,tl-wr842n-v2)
350 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
351 ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x04"
352 ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x08"
353 ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x10"
354 ucidef_set_led_switch "lan4" "LAN4" "green:lan4" "switch0" "0x02"
355 ;;
356 trendnet,tew-823dru)
357 ucidef_set_led_netdev "wan" "WAN" "green:planet" "eth0"
358 ;;
359 ubnt,bullet-ac|\
360 ubnt,nanobeam-ac|\
361 ubnt,nanobeam-ac-gen2|\
362 ubnt,nanostation-ac|\
363 ubnt,powerbeam-5ac-gen2)
364 ucidef_set_rssimon "wlan0" "200000" "1"
365 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi0" "wlan0" "1" "100"
366 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "blue:rssi1" "wlan0" "26" "100"
367 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "blue:rssi2" "wlan0" "51" "100"
368 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "blue:rssi3" "wlan0" "76" "100"
369 ;;
370 ubnt,bullet-m-ar7240|\
371 ubnt,bullet-m-ar7241|\
372 ubnt,bullet-m-xw|\
373 ubnt,nanobridge-m|\
374 ubnt,nanostation-loco-m|\
375 ubnt,nanostation-loco-m-xw|\
376 ubnt,nanostation-m|\
377 ubnt,nanostation-m-xw|\
378 ubnt,picostation-m|\
379 ubnt,powerbridge-m|\
380 ubnt,rocket-m)
381 ucidef_set_rssimon "wlan0" "200000" "1"
382 ucidef_set_led_rssi "rssilow" "RSSILOW" "red:link1" "wlan0" "1" "100"
383 ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "orange:link2" "wlan0" "26" "100"
384 ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "green:link3" "wlan0" "51" "100"
385 ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "green:link4" "wlan0" "76" "100"
386 ;;
387 wallys,dr531)
388 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
389 ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x2"
390 ucidef_set_rssimon "wlan0" "200000" "1"
391 ucidef_set_led_rssi "sig1" "SIG1" "green:sig1" "wlan0" "1" "100"
392 ucidef_set_led_rssi "sig2" "SIG2" "green:sig2" "wlan0" "25" "100"
393 ucidef_set_led_rssi "sig3" "SIG3" "green:sig3" "wlan0" "50" "100"
394 ucidef_set_led_rssi "sig4" "SIG4" "green:sig4" "wlan0" "75" "100"
395 ;;
396 wd,mynet-wifi-rangeextender)
397 ucidef_set_led_netdev "lan" "LAN" "green:lan" "eth0"
398 ucidef_set_rssimon "wlan0" "200000" "1"
399 ucidef_set_led_rssi "rssilow" "RSSILOW" "blue:rssi-low" "wlan0" "1" "100"
400 ucidef_set_led_rssi "rssimedium" "RSSIMED" "blue:rssi-med" "wlan0" "33" "100"
401 ucidef_set_led_rssi "rssihigh" "RSSIMAX" "blue:rssi-max" "wlan0" "66" "100"
402 ;;
403 yuncore,a770)
404 ucidef_set_led_netdev "wan" "WAN" "green:wan" "eth1"
405 ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x10"
406 ;;
407 zbtlink,zbt-wd323)
408 ucidef_set_led_switch "lan1" "LAN1" "orange:lan1" "switch0" "0x10"
409 ucidef_set_led_switch "lan2" "LAN2" "orange:lan2" "switch0" "0x08"
410 ;;
411 esac
412
413 board_config_flush
414
415 exit 0