Skip to content

Commit 2e3778a

Browse files
krish2718nashif
authored andcommitted
modules: hostap: Fix build error
Remove obsolete variable. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 2e52f0d commit 2e3778a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/hostap/src/supp_api.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,10 @@ static int wpas_add_and_config_network(struct wpa_supplicant *wpa_s,
478478

479479
if (params->security == WIFI_SECURITY_TYPE_SAE_H2E ||
480480
params->security == WIFI_SECURITY_TYPE_SAE_AUTO) {
481-
params->sae_pwe =
482-
(params->security == WIFI_SECURITY_TYPE_SAE_H2E) ? 1 : 2;
483-
if (!wpa_cli_cmd_v("set sae_pwe %d", params->sae_pwe)) {
481+
if (!wpa_cli_cmd_v("set sae_pwe %d",
482+
(params->security == WIFI_SECURITY_TYPE_SAE_H2E)
483+
? 1
484+
: 2)) {
484485
goto out;
485486
}
486487
}

0 commit comments

Comments
 (0)