Skip to content

SHARMAN-4192 : Eco mode is not not working in 6.3 SDK - #1318

Open
umasankar098 wants to merge 1 commit into
rdkcentral:developfrom
umasankar098:Aug03_OneWifi_EcoMode
Open

SHARMAN-4192 : Eco mode is not not working in 6.3 SDK#1318
umasankar098 wants to merge 1 commit into
rdkcentral:developfrom
umasankar098:Aug03_OneWifi_EcoMode

Conversation

@umasankar098

Copy link
Copy Markdown

Reason for change:

Test Procedure: Enable and disable eco mode

Risks: low

Priority: P0

Reason for change:

Test Procedure: Enable and disable eco mode

Risks: low

Priority: P0

Signed-off-by: usi096 <umasankar.srinivasan@sky.uk>
Copilot AI review requested due to automatic review settings August 3, 2026 13:20
@umasankar098
umasankar098 requested a review from a team as a code owner August 3, 2026 13:20

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses Eco mode not working in the 6.3 SDK by ensuring the device reboot path is invoked in a scheduler-friendly way while recording an explicit reboot reason.

Changes:

  • Exposes reboot_device() in wifi_ctrl.h and updates its signature to int (*)(void*) to match the scheduler callback contract.
  • Updates reboot_device() implementation to accept a generic argument and adds a debug log before setting reboot reason + triggering reboot via bus.
  • Changes EcoMode flow to schedule the reboot via scheduler_add_timer_task() instead of calling reboot_device() directly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
source/core/wifi_ctrl.h Adds reboot_device(void*) prototype for use as a scheduler callback.
source/core/wifi_ctrl.c Updates reboot_device() signature/body for scheduled invocation and adds logging.
source/core/wifi_ctrl_webconfig.c Schedules the EcoMode reboot via the scheduler instead of direct invocation.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

system("systemctl restart onewifi.service");
#else
reboot_device(ctrl);
scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device, ctrl, 0, 1, TRUE);
Comment thread source/core/wifi_ctrl.c
Comment on lines +208 to 212
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) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants