From: Vinay Gannevaram Date: Wed, 28 Sep 2022 19:18:18 +0000 (+0530) Subject: PASN: Remove unused wpa_s parameter for wpas_pasn_sae_setup_pt() X-Git-Tag: hostap_2_11~1610 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5313e5a790260bef253dbcb8e13d320e73bc9e17;p=thirdparty%2Fhostap.git PASN: Remove unused wpa_s parameter for wpas_pasn_sae_setup_pt() This removes unnecessary struct wpa_supplicant dependency for wpas_pasn_sae_setup_pt(). Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/pasn_supplicant.c b/wpa_supplicant/pasn_supplicant.c index 62a853922..c347343a1 100644 --- a/wpa_supplicant/pasn_supplicant.c +++ b/wpa_supplicant/pasn_supplicant.c @@ -260,8 +260,7 @@ static struct wpabuf * wpas_pasn_wd_sae_confirm(struct wpas_pasn *pasn) } -static int wpas_pasn_sae_setup_pt(struct wpa_supplicant *wpa_s, - struct wpa_ssid *ssid, int group) +static int wpas_pasn_sae_setup_pt(struct wpa_ssid *ssid, int group) { const char *password = ssid->sae_password; int groups[2] = { group, 0 }; @@ -391,13 +390,13 @@ static int wpas_pasn_get_params_from_bss(struct wpa_supplicant *wpa_s, } else if ((sel & WPA_KEY_MGMT_SAE_EXT_KEY) && (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) && - (wpas_pasn_sae_setup_pt(wpa_s, ssid, group) == 0)) { + (wpas_pasn_sae_setup_pt(ssid, group) == 0)) { key_mgmt = WPA_KEY_MGMT_SAE_EXT_KEY; wpa_printf(MSG_DEBUG, "PASN: using KEY_MGMT SAE (ext key)"); } else if ((sel & WPA_KEY_MGMT_SAE) && (ieee802_11_rsnx_capab(rsnxe, WLAN_RSNX_CAPAB_SAE_H2E)) && - (wpas_pasn_sae_setup_pt(wpa_s, ssid, group) == 0)) { + (wpas_pasn_sae_setup_pt(ssid, group) == 0)) { key_mgmt = WPA_KEY_MGMT_SAE; wpa_printf(MSG_DEBUG, "PASN: using KEY_MGMT SAE"); #endif /* CONFIG_SAE */ @@ -1315,7 +1314,7 @@ static int wpas_pasn_start(struct wpa_supplicant *wpa_s, const u8 *own_addr, return -1; } - if (wpas_pasn_sae_setup_pt(wpa_s, ssid, group) < 0) { + if (wpas_pasn_sae_setup_pt(ssid, group) < 0) { wpa_printf(MSG_DEBUG, "PASN: Failed to derive PT"); return -1;