Skip to content

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

Open
umasankar098 wants to merge 6 commits into
rdkcentral:developfrom
umasankar098:SHARMAN-4192_NEW
Open

SHARMAN-4192 -- Eco mode is not not working in 6.3 SDK#1294
umasankar098 wants to merge 6 commits into
rdkcentral:developfrom
umasankar098:SHARMAN-4192_NEW

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 July 24, 2026 10:14
@umasankar098
umasankar098 requested a review from a team as a code owner July 24, 2026 10:14

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

Adjusts how EcoPowerDown/Eco mode applies changes by deferring the reboot path, aiming to make eco mode toggling work reliably in the 6.3 SDK flow.

Changes:

  • Replaces an immediate reboot_device(ctrl) call with a scheduled timer task to reboot after a delay.
  • Uses the existing scheduler infrastructure (scheduler_add_timer_task) to trigger the reboot.

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

Comment thread source/core/wifi_ctrl_webconfig.c Outdated
system("systemctl restart onewifi.service");
#else
reboot_device(ctrl);
scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device, ctrl, (10 * 1000), 1, TRUE);
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 July 24, 2026 11:15

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

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

Comment thread source/core/wifi_ctrl_webconfig.c Outdated
Comment thread source/core/wifi_ctrl_webconfig.c Outdated
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 July 24, 2026 12:14

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread source/core/wifi_ctrl_webconfig.c Outdated
Comment on lines +2184 to +2189
#if defined (FEATURE_SUPPORT_ECOPOWERDOWN) && !defined(DISABLE_ECO_REBOOT)
static int reboot_device_callback(void *arg)
{
return reboot_device((wifi_ctrl_t*)arg);
}
#endif
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 July 24, 2026 12:17

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comments suppressed due to low confidence (1)

source/core/wifi_ctrl_webconfig.c:2218

  • The reboot is now scheduled asynchronously, but the return value from scheduler_add_timer_task() is ignored and the task isn’t tracked. If scheduling fails (or this function is called for multiple radios in one apply), the device may never reboot or may enqueue multiple reboot tasks. Consider storing the task id, skipping/canceling duplicates, and falling back to an immediate reboot on scheduling failure.
    scheduler_add_timer_task(ctrl->sched, TRUE, NULL, reboot_device_callback, ctrl, (10 * 1000), 1, FALSE);

Comment thread source/core/wifi_ctrl_webconfig.c Outdated
Reason for change:

Test Procedure: Enable and disable eco mode

Risks: low

Priority: P0

Signed-off-by: usi096 <umasankar.srinivasan@sky.uk>
Reason for change:

Test Procedure: Enable and disable eco mode

Risks: low

Priority: P0

Signed-off-by: usi096 <umasankar.srinivasan@sky.uk>
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