modules: hostap: Fix build error

Remove obsolete variable.

Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
This commit is contained in:
Chaitanya Tata 2024-08-20 16:00:25 +05:30 committed by Anas Nashif
parent 2e52f0d154
commit 2e3778a845
1 changed files with 4 additions and 3 deletions

View File

@ -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;
}
}