Skip to content

RDKBWIFI-388: Add support for onboarding extender using WPS mechanism in RDK-B#1102

Open
bsomanath wants to merge 7 commits intordkcentral:developfrom
bsomanath:develop
Open

RDKBWIFI-388: Add support for onboarding extender using WPS mechanism in RDK-B#1102
bsomanath wants to merge 7 commits intordkcentral:developfrom
bsomanath:develop

Conversation

@bsomanath
Copy link
Copy Markdown

@bsomanath bsomanath commented Apr 30, 2026

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

Copilot AI review requested due to automatic review settings April 30, 2026 03:51
@bsomanath bsomanath requested a review from a team as a code owner April 30, 2026 03:51
@github-actions
Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


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


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

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

Adds RDK-B mesh extender onboarding via WPS by enabling WPS configuration on STA/mesh VAPs and wiring a STA-side WPS success path into the mesh extender connection state machine.

Changes:

  • Allow WPS parameter get/set for STA mesh VAPs when UWM_EXT_WPS_SUPPORT is enabled (TR-181 + DM callbacks).
  • Track whether backhaul credentials are “valid” in DB defaults and trigger a WPS onboarding state in the mesh extender service when they are missing.
  • Register and handle a WPS STA event callback; add new mesh extender connection states to react to received WPS credentials.

Reviewed changes

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

Show a summary per file
File Description
source/platform/common/data_model/wifi_dml_cb.c Relaxes WPS configuration restrictions for STA mesh VAPs under UWM_EXT_WPS_SUPPORT.
source/dml/tr_181/ml/cosa_wifi_dml.c Adjusts WPS validation flow to allow STA/mesh interfaces to proceed under UWM_EXT_WPS_SUPPORT.
source/db/wifi_db.c Initializes valid_bh_credentials for STA configs based on default SSID/key presence.
source/core/wifi_ctrl.c Registers a new WPS STA callback and calls into mesh extender service on success.
source/core/services/vap_svc_private.c Tweaks security mode for WPS-enabled private VAPs and copies mesh backhaul creds into Multi-AP backhaul fields.
source/core/services/vap_svc_mesh_ext.c Adds new connection states and logic to drive WPS STA onboarding and reinit supplicant after credentials arrive.
source/core/services/vap_svc.h Extends the connection state enum and exposes a mesh-ext WPS-credentials handler.

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

Comment thread source/core/services/vap_svc_private.c
Comment thread source/core/services/vap_svc_mesh_ext.c
Comment thread source/core/services/vap_svc_mesh_ext.c
Comment thread source/core/services/vap_svc_mesh_ext.c
Comment thread source/core/wifi_ctrl.c
Comment thread source/core/wifi_ctrl.c
Comment thread source/core/services/vap_svc_private.c Outdated
removed unused unistd.h usage

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 7, 2026 13:23
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

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

Comment thread source/core/wifi_ctrl.c
Comment on lines +1397 to +1401
/* Only handle WPS_EV_SUCCESS (value 2) */
if (event != 2) {
wifi_util_dbg_print(WIFI_CTRL, "%s:%d: Ignoring non-success WPS event %d\n",
__func__, __LINE__, event);
return;
Comment thread source/core/services/vap_svc_mesh_ext.c
Comment thread source/core/services/vap_svc_private.c

// If WPS is enabled on private VAP, copy mesh backhaul credentials into multi_ap_backhaul structure
if (map->vap_array[i].u.bss_info.wps.enable && isVapPrivate(map->vap_array[i].vap_index)) {
wifi_platform_property_t *wifi_prop = get_wifi_hal_cap_prop();
Comment thread source/platform/common/data_model/wifi_dml_cb.c
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