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