From 39850973afdbbd65e58259c013f983a361a81c49 Mon Sep 17 00:00:00 2001 From: Benjamin Carlson Date: Tue, 9 Sep 2025 16:26:17 -0600 Subject: [PATCH] RDKBWIFI-48: Pass vap password through to easymesh Reason for change: With this, unified-wifi-mesh can read the SSID and password of the backhaul mesh, then tell the backhaul sta that it should connect to that network. `unified-wifi-mesh` should be in charge of telling OneWifi what it should associate to. `OneWifi` shouldn't blindly associate to a network. Test Procedure: Ensure the `mesh_ap_passphrase` variable is populated in the `em_bss_t` struct. Risks: Very Low Priority: P1 Signed-off-by: Benjamin Carlson --- source/webconfig/wifi_easymesh_translator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source/webconfig/wifi_easymesh_translator.c b/source/webconfig/wifi_easymesh_translator.c index 7f0bf2c5a..d62ceab95 100644 --- a/source/webconfig/wifi_easymesh_translator.c +++ b/source/webconfig/wifi_easymesh_translator.c @@ -511,6 +511,7 @@ webconfig_error_t translate_vap_info_to_em_common(const wifi_vap_info_t *vap, co vap_row->enabled = vap->u.bss_info.enabled; strncpy(vap_row->ssid, vap->u.bss_info.ssid, sizeof(vap_row->ssid)); vap_row->vap_index = vap->vap_index; + strncpy(vap_row->mesh_ap_passphrase, vap->u.bss_info.security.u.key.key, sizeof(vap_row->mesh_ap_passphrase)); // Set the em_bss_info_t vendor_elements to the same as wifi_vap_info_t vendor_elements memset(vap_row->vendor_elements, 0, sizeof(vap_row->vendor_elements));