ramips: add support for I-O DATA WN-AX1167GR
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 01_leds
index 88e4c2b7feadd87440df7a3b2a774ac2d7f3c1c8..f89b4ea333729044df2446a57a6c0ea24bbd7e42 100755 (executable)
@@ -168,6 +168,9 @@ dlink,dwr-921-c1)
        ucidef_set_led_default "sigstrength" "Signal Strength" "$boardname:green:sigstrength" "0"
        ;;
 dir-810l|\
+elecom,wrc-1167ghbk2-s|\
+iodata,wn-ax1167gr|\
+iodata,wn-gx300gr|\
 mzk-750dhp|\
 mzk-dp150n|\
 vr500)
@@ -196,7 +199,7 @@ fonera20n)
        set_usb_led "$boardname:orange:usb"
        set_wifi_led "$boardname:orange:wifi"
        ;;
-gb-pc1|\
+gnubee,gb-pc1|\
 gnubee,gb-pc2)
        ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x01"
        ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x10"
@@ -260,6 +263,14 @@ m2m)
        set_wifi_led "$boardname:blue:wifi"
        ucidef_set_led_netdev "eth" "Ethernet" "$boardname:green:wan" "eth0"
        ;;
+mikrotik,rbm11g)
+       ucidef_set_rssimon "wlan0" "200000" "1"
+       ucidef_set_led_rssi "rssilow" "RSSILOW" "$boardname:green:rssi0" "wlan0" "1" "100"
+       ucidef_set_led_rssi "rssimediumlow" "RSSIMEDIUMLOW" "$boardname:green:rssi1" "wlan0" "20" "100"
+       ucidef_set_led_rssi "rssimediumhigh" "RSSIMEDIUMHIGH" "$boardname:green:rssi2" "wlan0" "40" "100"
+       ucidef_set_led_rssi "rssihigh" "RSSIHIGH" "$boardname:green:rssi3" "wlan0" "60" "100"
+       ucidef_set_led_rssi "rssiveryhigh" "RSSIVERYHIGH" "$boardname:green:rssi4" "wlan0" "80" "100"
+       ;;
 miniembplug)
        set_wifi_led "$boardname:red:wlan"
        set_usb_led "$boardname:green:mobile"
@@ -384,18 +395,24 @@ tiny-ac)
        set_usb_led "$boardname:green:usb"
        ;;
 tl-wr840n-v4)
-       set_wifi_led "$boardname:green:wlan"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
        ;;
 tl-wr841n-v13)
-       set_wifi_led "$boardname:green:wlan"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan1" "lan1" "$boardname:green:lan1" "switch0" "0x2"
        ucidef_set_led_switch "lan2" "lan2" "$boardname:green:lan2" "switch0" "0x4"
        ucidef_set_led_switch "lan3" "lan3" "$boardname:green:lan3" "switch0" "0x8"
        ucidef_set_led_switch "lan4" "lan4" "$boardname:green:lan4" "switch0" "0x10"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
        ;;
+tplink,c2-v1)
+       ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch1" "0x1e"
+       ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch1" "0x01"
+       set_usb_led "$boardname:green:usb" "2-1"
+       set_wifi_led "$boardname:green:wlan"
+       ;;
 tplink,c20-v1)
        ucidef_set_led_switch "lan" "lan" "$boardname:blue:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:blue:wan" "switch0" "0x01"
@@ -413,15 +430,20 @@ tplink,c50-v3)
        ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan2g" "phy0tpt"
        ucidef_set_led_wlan "wlan5g" "wlan5g" "$boardname:green:wlan5g" "phy1tpt"
        ;;
-tplink,tl-mr3420-v5)
+tplink,tl-wa801nd-v5)
+       ucidef_set_led_wlan "wlan" "wlan" "$boardname:green:wlan" "phy0tpt"
+       ucidef_set_led_netdev "lan" "lan" "$boardname:green:lan" "eth0"
+       ;;
+tplink,tl-mr3420-v5|\
+tplink,tl-wr842n-v5)
        set_usb_led "$boardname:green:usb"
-       set_wifi_led "$boardname:green:wlan"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x1e"
        ucidef_set_led_switch "wan" "wan" "$boardname:green:wan" "switch0" "0x01"
        ;;
 tplink,tl-wr902ac-v3)
        set_usb_led "$boardname:green:usb"
-       ucidef_set_led_netdev "wlan2g" "wlan2g" "$boardname:green:wlan" "wlan0"
+       ucidef_set_led_wlan "wlan2g" "wlan2g" "$boardname:green:wlan" "phy0tpt"
        ucidef_set_led_switch "lan" "lan" "$boardname:green:lan" "switch0" "0x10"
        ;;
 u25awf-h1)
@@ -538,6 +560,11 @@ zorlik,zl5900v2)
 zte-q7)
        set_wifi_led "$boardname:blue:status"
        ;;
+zyxel,keenetic-extra-ii)
+       set_wifi_led "$boardname:green:wifi"
+       set_usb_led "$boardname:green:usb"
+       ucidef_set_led_switch "internet" "internet" "$boardname:green:internet" "switch0" "0x01"
+       ;;
 youku-yk1)
        set_wifi_led "$boardname:blue:air"
        set_usb_led "$boardname:blue:usb"