From 60e9fb2645ee80adb60c88d9c2157162dd8e0345 Mon Sep 17 00:00:00 2001 From: Tanya Singh Date: Tue, 19 Aug 2025 11:14:47 +0800 Subject: [PATCH 1/5] cloud_discover: typo fix in DHCP script option 138 Signed-off-by: Tanya Singh --- .../cloud_discovery/files/usr/share/ucentral/cloud_discovery.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/tip/cloud_discovery/files/usr/share/ucentral/cloud_discovery.uc b/feeds/tip/cloud_discovery/files/usr/share/ucentral/cloud_discovery.uc index 85769cbe4..2e56dc721 100755 --- a/feeds/tip/cloud_discovery/files/usr/share/ucentral/cloud_discovery.uc +++ b/feeds/tip/cloud_discovery/files/usr/share/ucentral/cloud_discovery.uc @@ -5,7 +5,7 @@ import * as fs from 'fs'; let cmd = ARGV[0]; let ifname = getenv("interface"); -let opt224 = getenv("opt138"); +let opt138 = getenv("opt138"); let opt224 = getenv("opt224"); if (cmd != 'bound' && cmd != 'renew') From 34e4a01e25e0302c43d650fc46d245174d04dc7f Mon Sep 17 00:00:00 2001 From: Paul White Date: Tue, 19 Aug 2025 17:19:51 -0700 Subject: [PATCH 2/5] ucentral-state: Respect LED config before enabling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ensure that LEDs are configured to be ON before attempting to change their state. Previously, if the LED was configured to be OFF, it would still enter a double-blink state when the cloud connection was lost, and then switch to solid ON upon reconnection—ignoring the configured OFF state. This update changes that behavior: - If LEDs are configured OFF, they will remain OFF even during cloud disconnection (no double-blink). - After temporary state changes (e.g., during factory reset), the LED will return to its configured state (either OFF or ON). Signed-off-by: Paul White --- feeds/ucentral/ucentral-state/files/ucentral-state | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/feeds/ucentral/ucentral-state/files/ucentral-state b/feeds/ucentral/ucentral-state/files/ucentral-state index 8e8536a89..c4d6942c3 100755 --- a/feeds/ucentral/ucentral-state/files/ucentral-state +++ b/feeds/ucentral/ucentral-state/files/ucentral-state @@ -20,6 +20,7 @@ let config; let offline_timer; let current_state; let online = false; +let leds_off = false; function self_healing() { let heal_wifi = false; @@ -148,6 +149,13 @@ function online_handler() { function config_load() { ulog(LOG_INFO, 'loading config\n'); + + uci.load('system'); + let led_off_cfg = uci.get("system", "@system[0]", "leds_off"); + if (led_off_cfg == 1) { + leds_off = true; + } + uci.load('state'); config = uci.get_all('state'); @@ -191,7 +199,7 @@ function led_find(alias) { function factory_reset_timeout() { let led = led_find('led-running'); if (led) - led_write(led, 'trigger', 'default-on'); + led_write(led, 'trigger', leds-off ? 'none' : 'default-on'); } let blink_timer; @@ -210,7 +218,7 @@ let state_handler = { offline: function() { online = false; let led = led_find('led-running'); - if (led) + if (!leds_off && led) led_write(led, 'trigger', 'heartbeat'); if (config.ui.offline_trigger) { if (offline_timer) @@ -223,7 +231,7 @@ let state_handler = { online: function() { online = true; let led = led_find('led-running'); - if (led) + if (!leds_off && led) led_write(led, 'trigger', 'default-on'); online_handler(); return 0; From e7cd5038ac3e6ede7cd205617407c7ede9eb9890 Mon Sep 17 00:00:00 2001 From: Sebastian Huang Date: Tue, 19 Aug 2025 22:20:06 +0800 Subject: [PATCH 3/5] mediatek-sdk: Disable surge protection mode for AN8801SB PHY driver Signed-off-by: Sebastian Huang --- .../arch/arm64/boot/dts/mediatek/mt7981-edgecore-eap111.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/mediatek-sdk/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-edgecore-eap111.dts b/feeds/mediatek-sdk/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-edgecore-eap111.dts index 45305d119..a1cbbeeb4 100755 --- a/feeds/mediatek-sdk/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-edgecore-eap111.dts +++ b/feeds/mediatek-sdk/mediatek/files-5.4/arch/arm64/boot/dts/mediatek/mt7981-edgecore-eap111.dts @@ -200,7 +200,7 @@ phy-mode = "sgmii"; full-duplex; pause; - airoha,surge = <1>; + airoha,surge = <0>; airoha,polarity = <2>; }; From 02c2e6945b841fb85ce3a6a647a890ecbdd987ca Mon Sep 17 00:00:00 2001 From: Arif Alam Date: Thu, 28 Aug 2025 21:39:54 -0400 Subject: [PATCH 4/5] est_client: cloud_discovery: fixup demo environment Signed-off-by: Arif Alam --- feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery | 4 +++- feeds/tip/cloud_discovery/files/usr/bin/est_client | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery index 88e5a3f1a..c8ee6dc45 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery +++ b/feeds/tip/cloud_discovery/files/usr/bin/cloud_discovery @@ -49,10 +49,12 @@ function detect_certificate_type() { let issuer = pipe.read("all"); pipe.close(); - if (!match(issuer, /Telecom Infra Project Issuing CA/)) { + if (match(issuer, /OpenLAN Demo Birth CA/)) { ulog(LOG_INFO, 'Certificate type is "Demo" \n'); cds_server = 'discovery-qa.open-lan.org'; timeouts.expiry_threshold = 3 * 24 * 60 * 60; + } else if (match(issuer, /OpenLAN Birth Issuing CA/)) { + ulog(LOG_INFO, 'Certificate type is "Production"\n'); } else { ulog(LOG_INFO, 'Certificate type is "TIP"\n'); } diff --git a/feeds/tip/cloud_discovery/files/usr/bin/est_client b/feeds/tip/cloud_discovery/files/usr/bin/est_client index 22ba0f726..6102efbae 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/est_client +++ b/feeds/tip/cloud_discovery/files/usr/bin/est_client @@ -16,9 +16,11 @@ function set_est_server() { let issuer = pipe.read("all"); pipe.close(); - if (!match(issuer, /Telecom Infra Project Issuing CA/)) { + if (match(issuer, /OpenLAN Demo Birth CA/)) { ulog(LOG_INFO, 'Certificate type is "Demo" \n'); est_server = 'qaest.certificates.open-lan.org:8001'; + } else if (match(issuer, /OpenLAN Birth Issuing CA/)) { + ulog(LOG_INFO, 'Certificate type is "Production"\n'); } else { ulog(LOG_INFO, 'Certificate type is "TIP"\n'); } From c27b015a6393a0b80c7652ae86425bd88025d674 Mon Sep 17 00:00:00 2001 From: Arif Alam Date: Fri, 29 Aug 2025 10:01:02 -0400 Subject: [PATCH 5/5] est_client: fix certificate issuer matching Signed-off-by: Arif Alam --- feeds/tip/cloud_discovery/files/usr/bin/est_client | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feeds/tip/cloud_discovery/files/usr/bin/est_client b/feeds/tip/cloud_discovery/files/usr/bin/est_client index 6102efbae..b22c06340 100755 --- a/feeds/tip/cloud_discovery/files/usr/bin/est_client +++ b/feeds/tip/cloud_discovery/files/usr/bin/est_client @@ -167,7 +167,7 @@ function fwtool() { let issuer = pipe.read("all"); pipe.close(); - if (!(match(issuer, /OpenLAN/) && match(issuer, /Birth CA/))) + if (!(match(issuer, /OpenLAN/) && match(issuer, /Birth/))) return 0; ulog(LOG_INFO, 'The issuer is insta\n');