From: Lech Perczak Date: Sat, 18 Nov 2023 15:54:18 +0000 (+0100) Subject: ath79: mikrotik: add rssileds support for Routerboard 911G and RB912UAG X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=95b6d76c5a343d13aaf33df44d2d8518a2ede1b6;p=openwrt%2Fstaging%2Fthess.git ath79: mikrotik: add rssileds support for Routerboard 911G and RB912UAG LEDs 1 through 5 are used for RSSI monitoring on factory firmware. Reflect that by creating appropriate rssileds configuration. Signed-off-by: Lech Perczak --- diff --git a/target/linux/ath79/image/mikrotik.mk b/target/linux/ath79/image/mikrotik.mk index 1bd1323f07..06a2417faa 100644 --- a/target/linux/ath79/image/mikrotik.mk +++ b/target/linux/ath79/image/mikrotik.mk @@ -34,6 +34,7 @@ define Device/mikrotik_routerboard-911g-xhpnd DEVICE_MODEL := RouterBOARD 911G-2HPnD DEVICE_ALT0_VENDOR := Mikrotik DEVICE_ALT0_MODEL := RouterBOARD 911G-5HPnD + DEVICE_PACKAGES += rssileds SUPPORTED_DEVICES += rb-912uag-2hpnd endef TARGET_DEVICES += mikrotik_routerboard-911g-xhpnd @@ -44,7 +45,7 @@ define Device/mikrotik_routerboard-912uag-2hpnd DEVICE_MODEL := RouterBOARD 912UAG-2HPnD DEVICE_ALT0_VENDOR := Mikrotik DEVICE_ALT0_MODEL := RouterBOARD 912UAG-5HPnD - DEVICE_PACKAGES += kmod-usb-ehci kmod-usb2 + DEVICE_PACKAGES += kmod-usb-ehci kmod-usb2 rssileds SUPPORTED_DEVICES += rb-912uag-2hpnd endef TARGET_DEVICES += mikrotik_routerboard-912uag-2hpnd diff --git a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds index 66fa2ee6ac..16cb628445 100644 --- a/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds +++ b/target/linux/ath79/mikrotik/base-files/etc/board.d/01_leds @@ -16,6 +16,15 @@ mikrotik,routerboard-lhg-5nd) ucidef_set_led_rssi "rssimediumhigh" "rssimediumhigh" "green:rssimediumhigh" "wlan0" "60" "100" ucidef_set_led_rssi "rssihigh" "rssihigh" "green:rssihigh" "wlan0" "80" "100" ;; +mikrotik,routerboard-911g-xhpnd|\ +mikrotik,routerboard-912uag-2hpnd) + ucidef_set_rssimon "wlan0" "200000" "1" + ucidef_set_led_rssi "rssilow" "rssilow" "green:led1" "wlan0" "1" "100" + ucidef_set_led_rssi "rssimediumlow" "rssimediumlow" "green:led2" "wlan0" "20" "100" + ucidef_set_led_rssi "rssimedium" "rssimedium" "green:led3" "wlan0" "40" "100" + ucidef_set_led_rssi "rssimediumhigh" "rssimediumhigh" "green:led4" "wlan0" "60" "100" + ucidef_set_led_rssi "rssihigh" "rssihigh" "green:led5" "wlan0" "80" "100" + ;; mikrotik,routerboard-750-r2|\ mikrotik,routerboard-951ui-2hnd|\ mikrotik,routerboard-951ui-2nd|\