From: krishna T <krishna.t@xxxxxxxxxxxxx> This is handy to dynamically configure PWE method and switch across APs. Signed-off-by: Krishna T <krishna.t@xxxxxxxxxxxxx> --- wpa_supplicant/ctrl_iface.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 9abfeb216..0dd53548a 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -934,6 +934,17 @@ static int wpa_supplicant_ctrl_iface_set(struct wpa_supplicant *wpa_s, #endif /* CONFIG_WNM */ } else if (os_strcasecmp(cmd, "enable_dscp_policy_capa") == 0) { wpa_s->enable_dscp_policy_capa = !!atoi(value); +#ifdef CONFIG_SAE + } else if (os_strcasecmp(cmd, "sae_pwe") == 0) { + wpa_s->conf->sae_pwe = atoi(value); + if (wpa_s->conf->sae_pwe < 0 || + wpa_s->conf->sae_pwe > 2) { + wpa_printf(MSG_ERROR, + "Invalid SAE PWE value %d", + wpa_s->conf->sae_pwe); + return -1; + } +#endif /* CONFIG_SAE */ } else { value[-1] = '='; ret = wpa_config_process_global(wpa_s->conf, cmd, -1); -- 2.34.1 _______________________________________________ Hostap mailing list Hostap@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/hostap