Skip to content

RDKB-65811: Do not update rdk_vap_info in cache#1278

Open
bmilcz-comcast wants to merge 2 commits into
rdkcentral:developfrom
bmilcz-comcast:rdkb-65811-update-global-cache-fix
Open

RDKB-65811: Do not update rdk_vap_info in cache#1278
bmilcz-comcast wants to merge 2 commits into
rdkcentral:developfrom
bmilcz-comcast:rdkb-65811-update-global-cache-fix

Conversation

@bmilcz-comcast

Copy link
Copy Markdown
Contributor

Reason for change: update_global_cache updates rdk_vap_info structures, however due to the mixed use this is invalid. Decoders only partially fill these structs when decoding and if copied, these partially filled structs will fill rdk_vap_info in cache with invalid data. Moreover, these structs seem to be updated internally in OneWifi and will not be modified by external libraries - thus only cache updates it might need is if during application relevant flags are changed due to internal logic.

Test Procedure: Ensure OneWifi does not send back invalid data in subdocs.
Risks:Medium
Priority:P1

Copilot AI review requested due to automatic review settings July 17, 2026 14:13
@bmilcz-comcast
bmilcz-comcast requested a review from a team as a code owner July 17, 2026 14:13

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 prevents update_global_cache() from overwriting the cached rdk_wifi_vap_info_t entries with partially decoded (and pointer-containing) structures, which could otherwise corrupt internal state used when generating subdocs.

Changes:

  • Removed memcpy() of rdk_wifi_vap_info_t into the global cache.
  • Updated only the exists and force_apply flags in the cached rdk_wifi_vap_info_t entries.

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

Copilot AI review requested due to automatic review settings July 17, 2026 15:30
@bmilcz-comcast
bmilcz-comcast force-pushed the rdkb-65811-update-global-cache-fix branch from b4830e8 to 97b04b9 Compare July 17, 2026 15:30

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

Comment thread source/core/wifi_ctrl.c
Comment thread source/core/services/vap_svc_public.c
Comment thread source/core/services/vap_svc_public.c
Reason for change: update_global_cache updates rdk_vap_info structures,
however due to the mixed use this is invalid. Decoders only partially
fill these structs when decoding and if copied, these partially filled
structs will fill rdk_vap_info in cache with invalid data. Moreover,
these structs seem to be updated internally in OneWifi and will not be
modified by external libraries - thus only cache updates it might need
is if during application relevant flags are changed due to internal
logic.

This commit brings back previous implementation of cache sync in
vap_svc_public update to not interfere with other platforms, however
this needs to be reevaluated as it doesn't look like it fulfills the
role properly.

Test Procedure: Ensure OneWifi does not send back invalid data in
subdocs.
Risks:Medium
Priority:P1

Signed-off-by: Brayan Milczarek <brayan_milczarek@comcast.com>
Copilot AI review requested due to automatic review settings July 17, 2026 15:55
@bmilcz-comcast
bmilcz-comcast force-pushed the rdkb-65811-update-global-cache-fix branch from 97b04b9 to 6c08e39 Compare July 17, 2026 15:55

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

Comment thread source/core/wifi_ctrl.c
Comment thread source/core/wifi_ctrl.c
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