diff mbox series

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

Message ID b0670df-9f43-925b-b1a9-69d271326f2@lysator.liu.se
State Changes Requested
Headers show
Series [1/6] mesh: Set BSS sae_pwe from config | expand

Commit Message

Peter Åstrand Jan. 22, 2021, 2:57 p.m. UTC
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@etteplan.com>
---
 wpa_supplicant/mesh.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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]) {