RDKBWIFI-388: Add support for onboarding extender using WPS mechanism in RDK-B#1102
RDKBWIFI-388: Add support for onboarding extender using WPS mechanism in RDK-B#1102bsomanath wants to merge 7 commits intordkcentral:developfrom
Conversation
… in RDK-B Signed-off-by: Somanath Bulusu <bsomanath@plume.com>
… in RDK-B RDKBWIFI-388: Add support for onboarding extender using WPS mechanism in RDK-B
|
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. |
There was a problem hiding this comment.
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_SUPPORTis 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.
removed unused unistd.h usage Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
| /* 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; |
|
|
||
| // 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(); |
I have read the CLA Document and I hereby sign the CLA