From 2e3778a84572dd161c93129104256dbd38d96ff6 Mon Sep 17 00:00:00 2001 From: Chaitanya Tata Date: Tue, 20 Aug 2024 16:00:25 +0530 Subject: [PATCH] modules: hostap: Fix build error Remove obsolete variable. Signed-off-by: Chaitanya Tata --- modules/hostap/src/supp_api.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/hostap/src/supp_api.c b/modules/hostap/src/supp_api.c index 69d79932706..393a33eaf0e 100644 --- a/modules/hostap/src/supp_api.c +++ b/modules/hostap/src/supp_api.c @@ -478,9 +478,10 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s, if (params->security == WIFI_SECURITY_TYPE_SAE_H2E || params->security == WIFI_SECURITY_TYPE_SAE_AUTO) { - params->sae_pwe = - (params->security == WIFI_SECURITY_TYPE_SAE_H2E) ? 1 : 2; - if (!wpa_cli_cmd_v("set sae_pwe %d", params->sae_pwe)) { + if (!wpa_cli_cmd_v("set sae_pwe %d", + (params->security == WIFI_SECURITY_TYPE_SAE_H2E) + ? 1 + : 2)) { goto out; } }