Home
last modified time | relevance | path

Searched refs:wpa_auth (Results 1 – 23 of 23) sorted by relevance

/external/wpa_supplicant_8/src/ap/
Dwpa_auth.c39 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
42 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
44 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
49 static void wpa_group_free(struct wpa_authenticator *wpa_auth,
51 static void wpa_group_get(struct wpa_authenticator *wpa_auth,
53 static void wpa_group_put(struct wpa_authenticator *wpa_auth,
69 struct wpa_authenticator *wpa_auth, const u8 *addr) in wpa_auth_mic_failure_report() argument
71 if (wpa_auth->cb.mic_failure_report) in wpa_auth_mic_failure_report()
72 return wpa_auth->cb.mic_failure_report(wpa_auth->cb.ctx, addr); in wpa_auth_mic_failure_report()
78 struct wpa_authenticator *wpa_auth, const u8 *addr) in wpa_auth_psk_failure_report() argument
[all …]
Dpeerkey_auth.c25 struct wpa_authenticator *wpa_auth = eloop_ctx; in wpa_stsl_step()
50 static void wpa_smk_send_error(struct wpa_authenticator *wpa_auth, in wpa_smk_send_error() argument
59 wpa_auth_logger(wpa_auth, sm->addr, LOGGER_DEBUG, in wpa_smk_send_error()
74 __wpa_send_eapol(wpa_auth, sm, in wpa_smk_send_error()
81 void wpa_smk_m1(struct wpa_authenticator *wpa_auth, in wpa_smk_m1() argument
106 if (wpa_auth_for_each_sta(wpa_auth, wpa_stsl_select_sta, &search) == in wpa_smk_m1()
111 wpa_smk_send_error(wpa_auth, sm, kde.mac_addr, STK_MUI_SMK, in wpa_smk_m1()
133 wpa_auth_logger(wpa_auth, search.sm->addr, LOGGER_DEBUG, in wpa_smk_m1()
136 __wpa_send_eapol(wpa_auth, search.sm, in wpa_smk_m1()
145 static void wpa_send_smk_m4(struct wpa_authenticator *wpa_auth, in wpa_send_smk_m4() argument
[all …]
Dwpa_auth_ie.c376 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) in wpa_auth_gen_wpa_ie() argument
382 if (wpa_auth->conf.own_ie_override_len) { in wpa_auth_gen_wpa_ie()
384 wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
385 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
386 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
387 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie()
388 os_malloc(wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
389 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
391 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
392 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
[all …]
Dwpa_auth_ft.c33 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, in wpa_ft_rrb_send() argument
36 if (wpa_auth->cb.send_ether == NULL) in wpa_ft_rrb_send()
39 return wpa_auth->cb.send_ether(wpa_auth->cb.ctx, dst, ETH_P_RRB, in wpa_ft_rrb_send()
44 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, in wpa_ft_action_send() argument
47 if (wpa_auth->cb.send_ft_action == NULL) in wpa_ft_action_send()
49 return wpa_auth->cb.send_ft_action(wpa_auth->cb.ctx, dst, in wpa_ft_action_send()
55 wpa_ft_add_sta(struct wpa_authenticator *wpa_auth, const u8 *sta_addr) in wpa_ft_add_sta() argument
57 if (wpa_auth->cb.add_sta == NULL) in wpa_ft_add_sta()
59 return wpa_auth->cb.add_sta(wpa_auth->cb.ctx, sta_addr); in wpa_ft_add_sta()
63 static int wpa_ft_add_tspec(struct wpa_authenticator *wpa_auth, in wpa_ft_add_tspec() argument
[all …]
Dwpa_auth.h238 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
239 void wpa_deinit(struct wpa_authenticator *wpa_auth);
240 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
250 int wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
254 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
259 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
261 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
265 void wpa_receive(struct wpa_authenticator *wpa_auth,
275 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
276 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen);
[all …]
Dwpa_auth_i.h25 struct wpa_authenticator *wpa_auth; member
217 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
219 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
221 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
226 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
229 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
234 int wpa_stsl_remove(struct wpa_authenticator *wpa_auth,
236 void wpa_smk_error(struct wpa_authenticator *wpa_auth,
239 void wpa_smk_m1(struct wpa_authenticator *wpa_auth,
242 void wpa_smk_m3(struct wpa_authenticator *wpa_auth,
Dwpa_auth_glue.c380 if (iface->bss[i]->wpa_auth && in wpa_auth_iface_iter()
381 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) in wpa_auth_iface_iter()
424 if (!hapd->wpa_auth) in hostapd_wpa_auth_ft_iter()
433 wpa_ft_rrb_rx(hapd->wpa_auth, in hostapd_wpa_auth_ft_iter()
555 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL); in hostapd_wpa_auth_add_sta()
579 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
627 hapd->wpa_auth = wpa_init(hapd->own_addr, &_conf, &cb); in hostapd_setup_wpa()
628 if (hapd->wpa_auth == NULL) { in hostapd_setup_wpa()
639 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); in hostapd_setup_wpa()
678 wpa_reconfig(hapd->wpa_auth, &wpa_auth_conf); in hostapd_reconfig_wpa()
[all …]
Dvlan_init.c48 if (hapd->wpa_auth) in vlan_if_add()
49 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add()
56 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add()
71 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove()
Dtkip_countermeasures.c41 wpa_auth_countermeasures_start(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
44 wpa_gtk_rekey(hapd->wpa_auth); in ieee80211_tkip_countermeasures_start()
Ddrv_callbacks.c217 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
225 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
344 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
351 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
727 if (rx_auth->auth_type == WLAN_AUTH_FT && hapd->wpa_auth) { in hostapd_notif_auth()
730 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_auth()
1334 wpa_auth_reconfig_group_keys(hapd->wpa_auth); in wpa_supplicant_event()
Dwpa_auth_ie.h55 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
Dhostapd.c99 if ((hapd->conf->wpa || hapd->conf->osen) && hapd->wpa_auth == NULL) { in hostapd_reload_bss()
101 if (hapd->wpa_auth) in hostapd_reload_bss()
102 wpa_init_keys(hapd->wpa_auth); in hostapd_reload_bss()
107 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); in hostapd_reload_bss()
111 } else if (hapd->wpa_auth) { in hostapd_reload_bss()
112 wpa_deinit(hapd->wpa_auth); in hostapd_reload_bss()
113 hapd->wpa_auth = NULL; in hostapd_reload_bss()
827 if (!hapd->wpa_auth) in hostapd_das_disconnect_pmksa()
829 return wpa_auth_radius_das_disconnect_pmksa(hapd->wpa_auth, attr); in hostapd_das_disconnect_pmksa()
861 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in hostapd_das_disconnect()
[all …]
DMakefile57 wpa_auth.o \
Dieee802_11.c564 wpa_auth_pmksa_add_sae(hapd->wpa_auth, sta->addr, in sae_accept_sta()
700 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in sae_sm_step()
746 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in handle_auth_sae()
1265 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in handle_auth()
1288 wpa_auth_sta_init(hapd->wpa_auth, in handle_auth()
1576 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in check_assoc_ies()
1584 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in check_assoc_ies()
1696 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in check_assoc_ies()
1703 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in check_assoc_ies()
Dctrl_iface_ap.c576 return wpa_auth_pmksa_list(hapd->wpa_auth, buf, len); in hostapd_ctrl_iface_pmksa_list()
582 wpa_auth_pmksa_flush(hapd->wpa_auth); in hostapd_ctrl_iface_pmksa_flush()
Dpreauth_auth.c208 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len, in rsn_preauth_finished()
Dhostapd.h149 struct wpa_authenticator *wpa_auth; member
Dwnm_ap.c488 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in set_disassoc_timer()
Dieee802_1x.c959 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr, in ieee802_1x_receive()
2336 wpa_auth_eapol_key_tx_status(hapd->wpa_auth, in ieee802_1x_eapol_tx_status()
Dbeacon.c289 ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ielen); in hostapd_eid_wpa()
/external/wpa_supplicant_8/wpa_supplicant/
Dmesh_rsn.c214 bss->wpa_auth = mesh_rsn->auth; in mesh_rsn_auth_init()
307 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr); in mesh_rsn_auth_sae_sta()
310 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
322 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
541 if (!wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr)) { in mesh_rsn_process_ampe()
Dmesh_mpm.c458 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in plink_timer()
1098 wpa_auth_pmksa_get(hapd->wpa_auth, mgmt->sa))) in mesh_mpm_action_rx()
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c2099 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()