Lines Matching defs:wpa_auth

16 #include "wpa_auth.h"
25 struct wpa_authenticator *wpa_auth = eloop_ctx;
50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth,
59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG,
74 __wpa_send_eapol(wpa_auth, sm,
81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK,
113 /* FIX: wpa_stsl_remove(wpa_auth, neg); */
133 wpa_auth_logger(wpa_auth, search.sm->addr, LOGGER_DEBUG,
136 __wpa_send_eapol(wpa_auth, search.sm,
145 static void wpa_send_smk_m4(struct wpa_authenticator *wpa_auth,
186 wpa_auth_logger(sm->wpa_auth, sm->addr, LOGGER_DEBUG,
189 __wpa_send_eapol(wpa_auth, sm,
198 static void wpa_send_smk_m5(struct wpa_authenticator *wpa_auth,
243 wpa_auth_logger(sm->wpa_auth, sm->addr, LOGGER_DEBUG,
246 __wpa_send_eapol(wpa_auth, sm,
255 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
281 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
286 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK,
288 /* FIX: wpa_stsl_remove(wpa_auth, neg); */
300 os_memcpy(buf, wpa_auth->addr, ETH_ALEN);
317 wpa_send_smk_m4(wpa_auth, sm, key, &kde, smk);
318 wpa_send_smk_m5(wpa_auth, search.sm, key, &kde, smk, sm->addr);
326 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
349 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) ==
360 wpa_auth_vlogger(wpa_auth, sm->addr, LOGGER_INFO,
365 wpa_smk_send_error(wpa_auth, search.sm, sm->addr, mui, error_type);
369 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
374 if (wpa_auth == NULL)
376 pos = wpa_auth->stsl_negotiations;
383 wpa_auth->stsl_negotiations = pos->next;
385 eloop_cancel_timeout(wpa_stsl_step, wpa_auth, pos);