[PATCH 1/6] mesh: Set BSS sae_pwe from config

Peter Astrand astrand at lysator.liu.se
Fri Jan 22 09:57:23 EST 2021


This makes it possible to use ie sae_pwe=3 in mesh mode, allowing
SAE Password Identifiers even after the IEEE P802.11-REVmd changes
introduced by e36a5894d0c01eb4dc439b3d93c92736f407082d.

Signed-off-by: Peter Astrand <peter.astrand at etteplan.com>
---
 wpa_supplicant/mesh.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wpa_supplicant/mesh.c b/wpa_supplicant/mesh.c
index df204478b..34be40a40 100644
--- a/wpa_supplicant/mesh.c
+++ b/wpa_supplicant/mesh.c
@@ -332,6 +332,7 @@ static int wpa_supplicant_mesh_enable_iface_cb(struct hostapd_iface *ifmsh)
 	bss->conf->start_disabled = 1;
 	bss->conf->mesh = MESH_ENABLED;
 	bss->conf->ap_max_inactivity = wpa_s->conf->mesh_max_inactivity;
+	bss->conf->sae_pwe = wpa_s->conf->sae_pwe;
 
 	if (wpa_drv_init_mesh(wpa_s)) {
 		wpa_msg(wpa_s, MSG_ERROR, "Failed to init mesh in driver");
@@ -440,6 +441,7 @@ static int wpa_supplicant_mesh_init(struct wpa_supplicant *wpa_s,
 	bss->conf->start_disabled = 1;
 	bss->conf->mesh = MESH_ENABLED;
 	bss->conf->ap_max_inactivity = wpa_s->conf->mesh_max_inactivity;
+	bss->conf->sae_pwe = wpa_s->conf->sae_pwe;
 
 	if (ieee80211_is_dfs(ssid->frequency, wpa_s->hw.modes,
 			     wpa_s->hw.num_modes) && wpa_s->conf->country[0]) {
-- 
2.17.1



Br,
Peter Åstrand


More information about the Hostap mailing list