Skip to content

XB-2787: Fix radio bitmap calculation - #1297

Draft
bmilcz-comcast wants to merge 1 commit into
rdkcentral:developfrom
bmilcz-comcast:xb10-2878
Draft

XB-2787: Fix radio bitmap calculation#1297
bmilcz-comcast wants to merge 1 commit into
rdkcentral:developfrom
bmilcz-comcast:xb10-2878

Conversation

@bmilcz-comcast

Copy link
Copy Markdown
Contributor

Reason for change: Due to always being set for all radios on all boots, it was causing constant 25s delay.
Test Procedure: Verify if the delay is present on subsequent boots without any changes to specific VAPs
Risks: None
Priority: P2

Copilot AI review requested due to automatic review settings July 24, 2026 15:17
@bmilcz-comcast
bmilcz-comcast requested a review from a team as a code owner July 24, 2026 15:17
@bmilcz-comcast
bmilcz-comcast marked this pull request as draft July 24, 2026 15: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

This PR adjusts MLO (MLD) update logic so the returned radio_bitmap only flags radios where mld_enable and/or mld_link_id actually changed, preventing unnecessary reconfiguration work that was causing a recurring ~25s delay on subsequent boots.

Changes:

  • Update update_mld_groups() to cache original mld_enable state per VAP and only set radio_bitmap when the final enable state differs from the baseline (and when mld_link_id is overridden).
  • Centralize MAX_VAP_INDEX in wifi_ctrl.h (removing the local define from wifi_ctrl_queue_handlers.c).
  • Minor comment/docstring and formatting adjustments around MLD handling.

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 Introduces MAX_VAP_INDEX used for VAP indexing/bounds in core code.
source/core/wifi_ctrl.c Refines update_mld_groups() radio bitmap calculation using baseline mld_enable caching and conditional bitmap updates.
source/core/wifi_ctrl_queue_handlers.c Removes local MAX_VAP_INDEX define to rely on the shared header definition.

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

Comment thread source/core/wifi_ctrl.h
Comment thread source/core/wifi_ctrl.c
Reason for change: Due to always being set for all radios on all boots,
it was causing constant 25s delay.
Test Procedure: Verify if the delay is present on subsequent boots
without any changes to specific VAPs
Risks: None
Priority: P2

Signed-off-by: Brayan Milczarek <brayan_milczarek@comcast.com>
@bmilcz-comcast bmilcz-comcast changed the title XB2787: Fix radio bitmap calculation XB-2787: Fix radio bitmap calculation Jul 28, 2026
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.

2 participants