Skip to content

RDKB-65811: Update DML cache if HAL params change#1133

Open
bmilcz-comcast wants to merge 2 commits into
rdkcentral:developfrom
bmilcz-comcast:dml_cache_updates_fix
Open

RDKB-65811: Update DML cache if HAL params change#1133
bmilcz-comcast wants to merge 2 commits into
rdkcentral:developfrom
bmilcz-comcast:dml_cache_updates_fix

Conversation

@bmilcz-comcast

@bmilcz-comcast bmilcz-comcast commented May 18, 2026

Copy link
Copy Markdown
Contributor

Using WebConfig we are synchronizing the current manager cache with DML cache if params that were passed down to createVAP() change after the funcion finalizes.

Comment thread source/core/wifi_ctrl.c
Comment thread source/core/services/vap_svc.c Outdated
Comment thread source/core/wifi_ctrl_queue_handlers.c Outdated
Comment thread source/core/wifi_ctrl_queue_handlers.c Outdated
Comment thread source/core/wifi_ctrl_queue_handlers.c Outdated
Comment thread source/core/wifi_ctrl_webconfig.c Outdated
Comment thread source/core/services/vap_svc.c
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch from 9641ce3 to d0fcfd4 Compare June 1, 2026 13:50
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch 2 times, most recently from 21727c4 to 719a442 Compare June 29, 2026 16:02
@bmilcz-comcast bmilcz-comcast changed the title Update DML if HAL params change when applying RDKB-65811: Update DML if HAL params change when applying Jun 29, 2026
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch 3 times, most recently from fa97d7e to a94afac Compare June 30, 2026 08:53
@bmilcz-comcast bmilcz-comcast marked this pull request as ready for review June 30, 2026 09:02
Copilot AI review requested due to automatic review settings June 30, 2026 09:02

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 aims to keep the manager/global caches and the DML cache consistent when HAL mutates VAP parameters after an apply path completes (notably for _PLATFORM_BANANAPI_R4_), so subsequent WebConfig/DML reads reflect the true applied state.

Changes:

  • Adds a shared update_global_cache() implementation in wifi_ctrl.c (and exposes it via wifi_ctrl.h) to sync WifiDB/global VAP caches from a target VAP map.
  • Introduces BananaPi-specific logic in several apply/update flows to detect post-apply HAL mutations and trigger a DML subdoc encode to refresh DML cache.
  • Fixes RBUS publish payload length by setting raw_data_len for a DML-init event publish.

Reviewed changes

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

Show a summary per file
File Description
source/core/wifi_ctrl.h Exposes new cache update helpers (update_global_cache, BananaPi-only update_dml_cache).
source/core/wifi_ctrl.c Adds update_global_cache() and BananaPi-only update_dml_cache() implementation.
source/core/wifi_ctrl_webconfig.c BananaPi-only detection of post-apply HAL mutations and triggering DML cache refresh.
source/core/wifi_ctrl_rbus_handlers.c Sets raw_data_len for a DML-init RBUS event publish.
source/core/wifi_ctrl_queue_handlers.c BananaPi-only DML cache refresh triggering in multiple queue-handler flows.
source/core/services/vap_svc.c Removes local update_global_cache and adds BananaPi-only DML cache refresh triggering in VAP start/stop.

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

Comment thread source/core/services/vap_svc.c
Comment thread source/core/wifi_ctrl.c
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch 2 times, most recently from 9bec572 to c9f77c2 Compare June 30, 2026 11:13
@bmilcz-comcast bmilcz-comcast changed the title RDKB-65811: Update DML if HAL params change when applying RDKB-65811: Update DML cache if HAL params change Jun 30, 2026
Copilot AI review requested due to automatic review settings June 30, 2026 17:05
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch from c9f77c2 to 26be21d Compare June 30, 2026 17:05

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 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread source/core/wifi_ctrl_webconfig.c Outdated
Comment thread source/core/wifi_ctrl_queue_handlers.c Outdated
Comment thread source/core/wifi_ctrl_queue_handlers.c Outdated
Using WebConfig we are synchronizing the current manager cache with DML
cache if params that were passed down to createVAP() change after the
function finalizes.

Signed-off-by: Brayan Milczarek <brayan_milczarek@comcast.com>
@bmilcz-comcast bmilcz-comcast force-pushed the dml_cache_updates_fix branch from 26be21d to 7bbccb6 Compare July 1, 2026 07:56
Copilot AI review requested due to automatic review settings July 6, 2026 19:28

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 6 out of 6 changed files in this pull request and generated 1 comment.

Comment on lines +1069 to +1073
if (dml_cache_update_needed) {
webconfig_init_subdoc_data(dml_cache_update_subdoc);
update_dml_cache(ctrl, dml_cache_update_subdoc);
}
free(dml_cache_update_subdoc);
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.

4 participants