Skip to content

RDKCOM-5597: RDKBDEV-3453, RDKBWIFI-459 Add Device.WiFi.EM.FailedConnection RBUS event#1167

Open
santhoshg6 wants to merge 2 commits into
rdkcentral:developfrom
santhoshg6:RDKBWIFI-459
Open

RDKCOM-5597: RDKBDEV-3453, RDKBWIFI-459 Add Device.WiFi.EM.FailedConnection RBUS event#1167
santhoshg6 wants to merge 2 commits into
rdkcentral:developfrom
santhoshg6:RDKBWIFI-459

Conversation

@santhoshg6

Copy link
Copy Markdown

Reason for change:
When a Wi-Fi client fails to connect due to authentication or association failure (e.g., wrong password, MIC failure, ACL deny), there is no RBUS event to notify upper layers about the failure. This change introduces the Device.WiFi.EM.FailedConnection event that is published on connection failure, carrying the BSSID, station MAC, IEEE 802.11 status code, and reason code as a JSON payload.

Test Procedure:

  1. WPA3-SAE wrong password — verified event published with status=15 (SAE Challenge Failure), reason=0
  2. WPA2-PSK wrong password — verified event published with status=0, reason=14 (MIC Failure)
  3. ACL deny (blacklist) — verified event published with status=33 (Unspecified/ACL deny), reason=0 All scenarios validated via RBUS subscriber and packet capture on rdkb-lgm platform.

Risks:
Low. New RBUS event only; no modification to existing connection or data path logic. No impact on normal association flow.

Signed-off-by: sgunasekaran@maxlinear.com

@santhoshg6 santhoshg6 requested a review from a team as a code owner June 4, 2026 12:38
@github-actions

github-actions Bot commented Jun 4, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@santhoshg6

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Copilot AI review requested due to automatic review settings June 9, 2026 05: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

Note

Copilot was unable to run its full agentic suite in this review.

Adds WiFi connection-failure telemetry by emitting new HAL events for pre/post association failures and publishing a corresponding EM bus event for consumers.

Changes:

  • Emit wifi_event_hal_pre_assoc_fail / wifi_event_hal_post_assoc_fail from monitor path before interop STA-map lookups.
  • Add EM bus event Device.WiFi.EM.FailedConnection and handlers to publish a failure payload.
  • Introduce shared sta_fail_data_t carrier for status/reason codes.

Reviewed changes

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

Show a summary per file
File Description
source/stats/wifi_monitor.c Push new pre/post-association failure HAL events early in status/reason handlers
include/wifi_events.h Add new HAL event subtypes for failed-connection reporting
include/wifi_base.h Add sta_fail_data_t struct used to carry status/reason + STA MAC + ap_index
source/apps/em/wifi_em.h Add EM event name constant and a failure-connection payload struct/comment
source/apps/em/wifi_em.c Handle new HAL events and publish FailedConnection bus event as JSON

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

Comment thread source/apps/em/wifi_em.h Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
@santhoshg6 santhoshg6 force-pushed the RDKBWIFI-459 branch 2 times, most recently from 2ecf961 to 439d802 Compare June 9, 2026 12:44
Copilot AI review requested due to automatic review settings June 9, 2026 17:43

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

Comment thread include/wifi_events.h
Comment thread include/wifi_base.h Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
@santhoshg6 santhoshg6 force-pushed the RDKBWIFI-459 branch 2 times, most recently from a65e552 to e77819d Compare June 9, 2026 18:55
Copilot AI review requested due to automatic review settings June 10, 2026 06:01

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

Comment thread include/wifi_events.h
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
@santhoshg6 santhoshg6 force-pushed the RDKBWIFI-459 branch 2 times, most recently from d7944ad to 0664207 Compare June 10, 2026 07:13
@santhoshg6 santhoshg6 requested a review from Copilot June 10, 2026 07:44

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

Comment thread include/wifi_events.h
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/apps/em/wifi_em.c
@santhoshg6 santhoshg6 force-pushed the RDKBWIFI-459 branch 2 times, most recently from d830e01 to e6dba30 Compare June 10, 2026 09:55
Copilot AI review requested due to automatic review settings June 17, 2026 07:15

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

Comment thread source/stats/wifi_monitor.c Outdated

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

Comment thread include/wifi_base.h Outdated
Comment thread source/apps/em/wifi_em.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated

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

Comment thread include/wifi_base.h
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread include/wifi_events.h

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

Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated

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

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

Comment thread include/wifi_events.h
Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated

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

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

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

Comment thread source/stats/wifi_monitor.c Outdated

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

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

Comment thread source/stats/wifi_monitor.c Outdated

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

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

Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c Outdated

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

Comment thread source/stats/wifi_monitor.c Outdated
Comment thread source/stats/wifi_monitor.c Outdated

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c
Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c

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

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread source/stats/wifi_monitor.c

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

Comment thread include/wifi_base.h Outdated
Comment thread source/apps/em/wifi_em.h Outdated
Comment thread source/stats/wifi_monitor.c
@Nikita-Hakai

Nikita-Hakai commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Internal build: https://gerrit.teamccp.com/959661 - success

narendradandu
narendradandu previously approved these changes Jun 22, 2026
Reason for change:
When a Wi-Fi client fails to connect due to authentication or
association failure (e.g., wrong password, MIC failure, ACL deny),
there is no RBUS event to notify upper layers about the failure.
This change introduces the Device.WiFi.EM.FailedConnection event
that is published on connection failure, carrying the BSSID,
station MAC, IEEE 802.11 status code, and reason code as a JSON
payload.

Test Procedure:
1. WPA3-SAE wrong password — verified event published with
   status=15 (SAE Challenge Failure), reason=0
2. WPA2-PSK wrong password — verified event published with
   status=0, reason=14 (MIC Failure)
3. ACL deny (blacklist) — verified event published with
   status=33 (Unspecified/ACL deny), reason=0
All scenarios validated via RBUS subscriber and packet capture
on rdkb-lgm platform.

Risks:
Low. New RBUS event only; no modification to existing connection
or data path logic. No impact on normal association flow.

Signed-off-by: sgunasekaran@maxlinear.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 10 out of 10 changed files in this pull request and generated 1 comment.

Comment thread source/apps/em/wifi_em.c Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.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 10 out of 10 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

community contribution Contributions from community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants