Skip to content

RDKB-66158: LEVL App : Fixed incorrect band reporting for MLO connect… - #1314

Open
stanislavkuchar2 wants to merge 2 commits into
rdkcentral:developfrom
stanislavkuchar2:RDKB-66158
Open

RDKB-66158: LEVL App : Fixed incorrect band reporting for MLO connect…#1314
stanislavkuchar2 wants to merge 2 commits into
rdkcentral:developfrom
stanislavkuchar2:RDKB-66158

Conversation

@stanislavkuchar2

Copy link
Copy Markdown
Contributor

RDKB-66158: LEVL App : Fixed incorrect band reporting for MLO connection events

Reason for change: Correction of connection interface in connection reporting event to LEVL App

Test Procedure: Connect MLO/Non MLO clients and verify if the assoc frame is reported on proper band.

Risks: Low
Priority: P1

Copilot AI review requested due to automatic review settings July 31, 2026 15:18
@stanislavkuchar2
stanislavkuchar2 requested a review from a team as a code owner July 31, 2026 15:18

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 addresses incorrect band (VAP/radio) reporting for MLO connection/association events sent to the LEVL app by correcting the reported ap_index to the associated link’s VAP.

Changes:

  • Added core helpers to obtain MLD common info from a VAP and to look up an MLO partner VAP by link_id.
  • Updated assoc device event handling to restore the associated link context for subsequent notifications and enhanced logging.
  • In LEVL assoc-request frame handling (Broadcom 11be), parsed a vendor IE to identify the assoc link and corrected msg->frame.ap_index before publishing.

Reviewed changes

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

File Description
source/core/wifi_ctrl.h Exposes new helper APIs for MLD/VAP lookup used by LEVL reporting correction.
source/core/wifi_ctrl.c Implements MLD extraction and partner-link lookup by mld_id/link_id.
source/core/wifi_ctrl_queue_handlers.c Restores assoc-link data for later notifications and improves MLO connect logging.
source/apps/levl/wifi_levl.c Parses assoc vendor IE (BRCM/11be) and corrects reporting ap_index for MLO assoc frames.
Suppressed comments (1)

source/core/wifi_ctrl.c:3092

  • Candidate VAPs should be filtered to only those with mld_enable==true; otherwise this can pick a VAP that shares mld_id/mld_link_id but is not part of the active MLO group (see update_mld_groups() logic that disables MLD on incompatible VAPs).
            wifi_mld_common_info_t *mld = get_mld_from_vap_info(&wifi_mgr->radio_config[radioIndex].vaps.vap_map.vap_array[vapArrayIndex]);
            if (mld == NULL) {
                continue;
            }
            if (link_id == mld->mld_link_id && input_mld->mld_id == mld->mld_id) {

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

Comment thread source/core/wifi_ctrl.c
Comment on lines +3080 to +3084
wifi_mld_common_info_t *input_mld = get_mld_from_vap_info(vapInfo);
if (input_mld == NULL) {
wifi_util_error_print(WIFI_CTRL,"RDK_LOG_ERROR, %s Input vapInfo is not MLO capable\n", __FUNCTION__);
return NULL;
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Irrelevant issue report.
The actual association link is determined using the mld_link_id retrieved from real driver data, which represents the interface genuinely utilized for the connection.
MLD enabled check is not needed here

Copilot AI review requested due to automatic review settings July 31, 2026 18:45
…ion events

Reason for change: Correction of connection interface in connection reporting event to LEVL App

Test Procedure: Connect MLO/Non MLO clients and verify if the assoc frame is reported on proper band.

Risks: Low
Priority: P1

Signed-off-by: Stanislav Kuchar <stanislav.kuchar@gmail.com>

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

Copilot AI review requested due to automatic review settings July 31, 2026 18:50

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

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