From 15b5c7e37761fb339f347140645d88e85288a2d5 Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 1/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl_webconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/wifi_ctrl_webconfig.c b/source/core/wifi_ctrl_webconfig.c index 826eaa232..04a82a8fc 100644 --- a/source/core/wifi_ctrl_webconfig.c +++ b/source/core/wifi_ctrl_webconfig.c @@ -2208,7 +2208,7 @@ void ecomode_telemetry_update_and_reboot(unsigned int index, bool active) } system("systemctl restart onewifi.service"); #else - reboot_device(ctrl); + scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device, ctrl, (10 * 1000), 1, TRUE); #endif } #endif // defined (FEATURE_SUPPORT_ECOPOWERDOWN) From 16776fb06c62273a5e587348fbacc01e168b38ac Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 2/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl_webconfig.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/core/wifi_ctrl_webconfig.c b/source/core/wifi_ctrl_webconfig.c index 04a82a8fc..264e4480a 100644 --- a/source/core/wifi_ctrl_webconfig.c +++ b/source/core/wifi_ctrl_webconfig.c @@ -2174,6 +2174,13 @@ static bool is_radio_param_config_changed(wifi_radio_operationParam_t *old , wif return false; } +#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) +static int reboot_device_callback(void *arg) +{ + return reboot_device((wifi_ctrl_t*)arg); +} +#endif + #if defined (FEATURE_SUPPORT_ECOPOWERDOWN) #define ECOMODE_COMPLETE_MARKER_FILE "/tmp/ecomode_operation_done" #define MAX_RETRY_VALUE 15 @@ -2208,7 +2215,7 @@ void ecomode_telemetry_update_and_reboot(unsigned int index, bool active) } system("systemctl restart onewifi.service"); #else - scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device, ctrl, (10 * 1000), 1, TRUE); + scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device_callback, ctrl, (10 * 1000), 1, FALSE); #endif } #endif // defined (FEATURE_SUPPORT_ECOPOWERDOWN) From 164274ae8165d0a31147ac513a6ec0436cc3726a Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 3/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl_webconfig.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/core/wifi_ctrl_webconfig.c b/source/core/wifi_ctrl_webconfig.c index 264e4480a..fb273846a 100644 --- a/source/core/wifi_ctrl_webconfig.c +++ b/source/core/wifi_ctrl_webconfig.c @@ -2174,7 +2174,14 @@ static bool is_radio_param_config_changed(wifi_radio_operationParam_t *old , wif return false; } -#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) +#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) && !defined(DISABLE_ECO_REBOOT) +static int reboot_device_callback(void *arg) +{ + return reboot_device((wifi_ctrl_t*)arg); +} +#endif + +#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) && !defined(DISABLE_ECO_REBOOT) static int reboot_device_callback(void *arg) { return reboot_device((wifi_ctrl_t*)arg); From f26ca2795f14849ec31b0f8c6c173391070487bf Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 4/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl_webconfig.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/source/core/wifi_ctrl_webconfig.c b/source/core/wifi_ctrl_webconfig.c index fb273846a..a80db83ad 100644 --- a/source/core/wifi_ctrl_webconfig.c +++ b/source/core/wifi_ctrl_webconfig.c @@ -2181,13 +2181,6 @@ static int reboot_device_callback(void *arg) } #endif -#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) && !defined(DISABLE_ECO_REBOOT) -static int reboot_device_callback(void *arg) -{ - return reboot_device((wifi_ctrl_t*)arg); -} -#endif - #if defined (FEATURE_SUPPORT_ECOPOWERDOWN) #define ECOMODE_COMPLETE_MARKER_FILE "/tmp/ecomode_operation_done" #define MAX_RETRY_VALUE 15 From ab8c150badf2ecc1a735465aa18473a5c8bef817 Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 5/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl.c | 5 ++++- source/core/wifi_ctrl_webconfig.c | 9 +-------- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/source/core/wifi_ctrl.c b/source/core/wifi_ctrl.c index d14f745c8..4bb60199e 100644 --- a/source/core/wifi_ctrl.c +++ b/source/core/wifi_ctrl.c @@ -199,10 +199,13 @@ unsigned int selfheal_event_publish_time(void) return atoi(buff) ? atoi(buff) : 1; } -int reboot_device(wifi_ctrl_t *ctrl) +int reboot_device(void* arg) { + wifi_ctrl_t *ctrl = (wifi_ctrl_t *)arg; bus_error_t rc; + wifi_util_dbg_print(WIFI_WEBCONFIG, + "%s : Setting the reboot reason as ECO Mode Reboot and rebooting the device\n", __FUNCTION__); rc = get_bus_descriptor()->bus_set_string_fn(&ctrl->handle, "Device.DeviceInfo.X_RDKCENTRAL-COM_LastRebootReason", "ECO Mode Reboot"); if (rc != bus_error_success) { diff --git a/source/core/wifi_ctrl_webconfig.c b/source/core/wifi_ctrl_webconfig.c index a80db83ad..bf294c729 100644 --- a/source/core/wifi_ctrl_webconfig.c +++ b/source/core/wifi_ctrl_webconfig.c @@ -2174,13 +2174,6 @@ static bool is_radio_param_config_changed(wifi_radio_operationParam_t *old , wif return false; } -#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) && !defined(DISABLE_ECO_REBOOT) -static int reboot_device_callback(void *arg) -{ - return reboot_device((wifi_ctrl_t*)arg); -} -#endif - #if defined (FEATURE_SUPPORT_ECOPOWERDOWN) #define ECOMODE_COMPLETE_MARKER_FILE "/tmp/ecomode_operation_done" #define MAX_RETRY_VALUE 15 @@ -2215,7 +2208,7 @@ void ecomode_telemetry_update_and_reboot(unsigned int index, bool active) } system("systemctl restart onewifi.service"); #else - scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device_callback, ctrl, (10 * 1000), 1, FALSE); + scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device, ctrl, 0, 1, TRUE); #endif } #endif // defined (FEATURE_SUPPORT_ECOPOWERDOWN) From 07a12aa25ba9ad88cc088be51a5f0f12167ef60c Mon Sep 17 00:00:00 2001 From: usi096 Date: Fri, 24 Jul 2026 11:12:50 +0100 Subject: [PATCH 6/6] SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK Reason for change: Test Procedure: Enable and disable eco mode Risks: low Priority: P0 Signed-off-by: usi096 --- source/core/wifi_ctrl.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/core/wifi_ctrl.h b/source/core/wifi_ctrl.h index ebad8320f..11e0c9adc 100644 --- a/source/core/wifi_ctrl.h +++ b/source/core/wifi_ctrl.h @@ -431,6 +431,7 @@ int publish_endpoint_enable(void); int get_mld_mac_from_link_mac(mac_address_t in_addr, mac_address_t mld_addr); void hotspot_timing_start(void); void hotspot_timing_stop(void); +int reboot_device(void* arg); #if defined(CONFIG_IEEE80211BE) && !defined(CONFIG_GENERIC_MLO) unsigned int update_mld_groups(webconfig_subdoc_decoded_data_t *data, char **vap_names, unsigned int vap_names_size, wifi_dbg_type_t log_type);