Skip to content

RDKBWIFI-386: Channel Scan Report - BSS Load element is wrong#989

Open
Sangeetha-selvaraj18 wants to merge 1 commit intordkcentral:developfrom
Sangeetha-selvaraj18:bss-load-element
Open

RDKBWIFI-386: Channel Scan Report - BSS Load element is wrong#989
Sangeetha-selvaraj18 wants to merge 1 commit intordkcentral:developfrom
Sangeetha-selvaraj18:bss-load-element

Conversation

@Sangeetha-selvaraj18
Copy link
Copy Markdown
Contributor

Populate the Channel Utilization and Station count fetched from the BSS Load element of Probe response and send it to easymesh.

This is part of the Channel Scan Result TLV of the Channel Scan Report Message.

@github-actions github-actions bot added the community contribution Contributions from community. label Mar 21, 2026
@Sangeetha-selvaraj18 Sangeetha-selvaraj18 marked this pull request as ready for review March 23, 2026 09:30
@Sangeetha-selvaraj18 Sangeetha-selvaraj18 requested a review from a team as a code owner March 23, 2026 09:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 correct the EasyMesh Channel Scan Report contents by properly propagating scan metadata (aggregate scan duration / scan type) and by forwarding BSS Load-derived fields (channel utilization and station count) from probe responses into the Channel Scan Result TLV sent to EasyMesh.

Changes:

  • Populate aggregate_scan_duration and scan_type into EasyMesh scan results instead of hard-coding them to 0.
  • Forward neighbor BSS fields (bss_color, channel_utilization, station_count) into EasyMesh neighbor structures rather than using placeholder constants.
  • Persist the effective scan dwell_time back into monitor args so it can be reused downstream (e.g., as aggregate scan duration).

Reviewed changes

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

File Description
source/webconfig/wifi_easymesh_translator.c Stops using placeholder values and forwards scan duration/type and neighbor BSS fields into EasyMesh scan results.
source/stats/wifi_stats_radio_channel.c Writes the computed/adjusted dwell_time back into args for downstream consumers.
source/apps/em/wifi_em.c Adds logic to populate BSS Load-related fields and to set scan duration/type for the Channel Scan Report.

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

@Sangeetha-selvaraj18 Sangeetha-selvaraj18 force-pushed the bss-load-element branch 2 times, most recently from 45b89bd to 6f536a9 Compare March 31, 2026 19:13
Copy link
Copy Markdown
Contributor

@amarnathhullur amarnathhullur left a comment

Choose a reason for hiding this comment

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

Minor changes to be resolved

neighbor->bss_load_element_present = 0;
neighbor->bss_color = 0;
neighbor->bss_color = EM_BSS_COLOR_DEFAULT;
neighbor->bss_load_element_present = 0;
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.

Address indentation

@amarnathhullur amarnathhullur requested a review from Copilot April 2, 2026 19:34
Retrieve Channel Utilization and Station Count from the BSS Load element
of the Probe Response and populate the corresponding fields.

Ensure these values are correctly included in the Channel Scan Result TLV
within the Channel Scan Report message for EasyMesh.

Signed-off-by: Sangeetha <sangeetha.s1@tataelxsi.co.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community contribution Contributions from community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants