FILS: Simplify code paths
Use a shared code path for freeing the wpa_ie buffer to avoid unnecessary complexity with a separate return for the non-FILS case. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
4a5f6e88b2
commit
900adb3c9f
1 changed files with 3 additions and 5 deletions
|
@ -3312,13 +3312,11 @@ static void wpas_update_fils_connect_params(struct wpa_supplicant *wpa_s)
|
|||
if (!wpa_ie)
|
||||
return;
|
||||
|
||||
if (params.auth_alg != WPA_AUTH_ALG_FILS) {
|
||||
os_free(wpa_ie);
|
||||
return;
|
||||
}
|
||||
|
||||
if (params.auth_alg == WPA_AUTH_ALG_FILS) {
|
||||
wpa_s->auth_alg = params.auth_alg;
|
||||
wpa_drv_update_connect_params(wpa_s, ¶ms, mask);
|
||||
}
|
||||
|
||||
os_free(wpa_ie);
|
||||
}
|
||||
#endif /* CONFIG_FILS && IEEE8021X_EAPOL */
|
||||
|
|
Loading…
Reference in a new issue