Skip to content

RDKBWIFI-278: CLIENT ASSOC CTRL REQUEST Improvement#1137

Open
sundram0711 wants to merge 1 commit into
rdkcentral:developfrom
sundram0711:easymesh-client_assoc_improvement
Open

RDKBWIFI-278: CLIENT ASSOC CTRL REQUEST Improvement#1137
sundram0711 wants to merge 1 commit into
rdkcentral:developfrom
sundram0711:easymesh-client_assoc_improvement

Conversation

@sundram0711
Copy link
Copy Markdown
Contributor

Added a utility function to get the correct vap_index from bssid Used that utility in the client assoc ctrl implementaiton.

Added a helper to cancel the timer if unblock request comes for the blocked stations.

@sundram0711 sundram0711 requested a review from a team as a code owner May 19, 2026 09:00
@github-actions github-actions Bot added the community contribution Contributions from community. label May 19, 2026
@Nikita-Hakai Nikita-Hakai requested a review from Copilot May 20, 2026 22:32
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 improves EasyMesh “client assoc control” handling by resolving the correct vap_index from a provided BSSID and by attempting to cancel scheduled unblock timers when an unblock request arrives for a previously blocked station.

Changes:

  • Added em_get_vap_index_from_bssid() and switched client assoc control logic to use it (instead of deriving an index via radio MAC).
  • Introduced a pending-block tracking list to support canceling scheduled ACL removal timers on unblock requests.
  • Extended kick_details_t to include a timer_id field intended for timer cancellation.

Reviewed changes

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

File Description
source/core/wifi_ctrl.h Extends kick_details_t with timer_id to track scheduled tasks.
source/apps/em/wifi_em.c Adds BSSID→VAP index utility + pending timer tracking/cancellation logic for client assoc control.

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

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
Comment thread source/apps/em/wifi_em.c
Comment thread source/apps/em/wifi_em.c
@sundram0711 sundram0711 force-pushed the easymesh-client_assoc_improvement branch 3 times, most recently from 634d506 to ccc08f9 Compare May 26, 2026 09:37
Comment thread source/apps/em/wifi_em.c
policy_config->radio_metrics_policies.radio_count = 0;

// Initialize pending blocks list mutex
pthread_mutex_init(&pending_blocks_lock, NULL);
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.

I don't see anywhere pthread_mutex_destroy(&pending_blocks_lock)

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.

Yes right, now added it.

Added a utility function to get the correct vap_index from bssid
Used that utility in the client assoc ctrl implementaiton.

Added a helper to cancel the timer if unblock request comes for the blocked stations.

Signed-off-by: Sundram Patel <sundram.p@tataelxsi.co.in>
@sundram0711 sundram0711 force-pushed the easymesh-client_assoc_improvement branch from ccc08f9 to a71413b Compare May 29, 2026 12:40
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