#ifdef CONFIG_SAE
-static struct wpabuf * wpas_pasn_wd_sae_commit(struct wpa_supplicant *wpa_s)
+static struct wpabuf * wpas_pasn_wd_sae_commit(struct wpas_pasn *pasn)
{
- struct wpas_pasn *pasn = &wpa_s->pasn;
struct wpabuf *buf = NULL;
int ret;
}
-static int wpas_pasn_wd_sae_rx(struct wpa_supplicant *wpa_s, struct wpabuf *wd)
+static int wpas_pasn_wd_sae_rx(struct wpas_pasn *pasn, struct wpabuf *wd)
{
- struct wpas_pasn *pasn = &wpa_s->pasn;
const u8 *data;
size_t buf_len;
u16 len, res, alg, seq, status;
}
-static struct wpabuf * wpas_pasn_wd_sae_confirm(struct wpa_supplicant *wpa_s)
+static struct wpabuf * wpas_pasn_wd_sae_confirm(struct wpas_pasn *pasn)
{
- struct wpas_pasn *pasn = &wpa_s->pasn;
struct wpabuf *buf = NULL;
/* Need to add the entire authentication frame body */
case WPA_KEY_MGMT_SAE:
#ifdef CONFIG_SAE
if (pasn->trans_seq == 0)
- return wpas_pasn_wd_sae_commit(wpa_s);
+ return wpas_pasn_wd_sae_commit(pasn);
if (pasn->trans_seq == 2)
- return wpas_pasn_wd_sae_confirm(wpa_s);
+ return wpas_pasn_wd_sae_confirm(pasn);
#endif /* CONFIG_SAE */
wpa_printf(MSG_ERROR,
"PASN: SAE: Cannot derive wrapped data");
if (pasn->akmp == WPA_KEY_MGMT_SAE) {
int ret;
- ret = wpas_pasn_wd_sae_rx(wpa_s, wrapped_data);
+ ret = wpas_pasn_wd_sae_rx(pasn, wrapped_data);
if (ret) {
wpa_printf(MSG_DEBUG,
"PASN: Failed processing SAE wrapped data");