Home
last modified time | relevance | path

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

/hostap-latest/src/ap/
Dwpa_auth.c54 static void wpa_group_sm_step(struct wpa_authenticator *wpa_auth,
57 static int wpa_gtk_update(struct wpa_authenticator *wpa_auth,
59 static int wpa_group_config_group_keys(struct wpa_authenticator *wpa_auth,
66 static void wpa_group_free(struct wpa_authenticator *wpa_auth,
68 static void wpa_group_get(struct wpa_authenticator *wpa_auth,
70 static void wpa_group_put(struct wpa_authenticator *wpa_auth,
74 static void wpa_group_update_gtk(struct wpa_authenticator *wpa_auth,
93 return sm->wpa_auth->mld_addr; in wpa_auth_get_aa()
95 return sm->wpa_auth->addr; in wpa_auth_get_aa()
115 if (!sm->wpa_auth) in wpa_gkeydone_sta()
[all …]
Dwpa_auth_ie.c633 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth) in wpa_auth_gen_wpa_ie() argument
639 if (wpa_auth->conf.own_ie_override_len) { in wpa_auth_gen_wpa_ie()
641 wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
642 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
643 os_free(wpa_auth->wpa_ie); in wpa_auth_gen_wpa_ie()
644 wpa_auth->wpa_ie = in wpa_auth_gen_wpa_ie()
645 os_malloc(wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
646 if (wpa_auth->wpa_ie == NULL) in wpa_auth_gen_wpa_ie()
648 os_memcpy(wpa_auth->wpa_ie, wpa_auth->conf.own_ie_override, in wpa_auth_gen_wpa_ie()
649 wpa_auth->conf.own_ie_override_len); in wpa_auth_gen_wpa_ie()
[all …]
Dwpa_auth_ft.c631 static int wpa_ft_rrb_send(struct wpa_authenticator *wpa_auth, const u8 *dst, in wpa_ft_rrb_send() argument
634 if (wpa_auth->cb->send_ether == NULL) in wpa_ft_rrb_send()
637 return wpa_auth->cb->send_ether(wpa_auth->cb_ctx, dst, ETH_P_RRB, in wpa_ft_rrb_send()
642 static int wpa_ft_rrb_oui_send(struct wpa_authenticator *wpa_auth, in wpa_ft_rrb_oui_send() argument
646 if (!wpa_auth->cb->send_oui) in wpa_ft_rrb_oui_send()
650 return wpa_auth->cb->send_oui(wpa_auth->cb_ctx, dst, oui_suffix, data, in wpa_ft_rrb_oui_send()
655 static int wpa_ft_action_send(struct wpa_authenticator *wpa_auth, in wpa_ft_action_send() argument
658 if (wpa_auth->cb->send_ft_action == NULL) in wpa_ft_action_send()
660 return wpa_auth->cb->send_ft_action(wpa_auth->cb_ctx, dst, in wpa_ft_action_send()
665 static const u8 * wpa_ft_get_psk(struct wpa_authenticator *wpa_auth, in wpa_ft_get_psk() argument
[all …]
Dwpa_auth.h435 int wpa_init_keys(struct wpa_authenticator *wpa_auth);
436 void wpa_deinit(struct wpa_authenticator *wpa_auth);
437 int wpa_reconfig(struct wpa_authenticator *wpa_auth,
449 wpa_validate_wpa_ie(struct wpa_authenticator *wpa_auth,
456 int wpa_validate_osen(struct wpa_authenticator *wpa_auth,
463 wpa_auth_sta_init(struct wpa_authenticator *wpa_auth, const u8 *addr,
465 int wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth,
469 void wpa_receive(struct wpa_authenticator *wpa_auth,
479 void wpa_gtk_rekey(struct wpa_authenticator *wpa_auth);
480 int wpa_get_mib(struct wpa_authenticator *wpa_auth, char *buf, size_t buflen);
[all …]
Dwpa_auth_i.h20 struct wpa_authenticator *wpa_auth; member
188 struct wpa_authenticator *wpa_auth; member
312 void wpa_auth_logger(struct wpa_authenticator *wpa_auth, const u8 *addr,
314 void wpa_auth_vlogger(struct wpa_authenticator *wpa_auth, const u8 *addr,
317 void __wpa_send_eapol(struct wpa_authenticator *wpa_auth,
322 int wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth,
325 int wpa_auth_for_each_auth(struct wpa_authenticator *wpa_auth,
328 void wpa_auth_store_ptksa(struct wpa_authenticator *wpa_auth,
Dvlan_init.c51 if (hapd->wpa_auth) in vlan_if_add()
52 ret = wpa_auth_ensure_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_add()
59 if (wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id)) in vlan_if_add()
74 ret = wpa_auth_release_group(hapd->wpa_auth, vlan->vlan_id); in vlan_if_remove()
Dwpa_auth_glue.c659 if (iface->bss[i]->wpa_auth && in wpa_auth_iface_iter()
660 data->cb(iface->bss[i]->wpa_auth, data->cb_ctx)) in wpa_auth_iface_iter()
699 if (hapd->wpa_auth) { in hostapd_wpa_ft_rrb_rx_later()
700 wpa_ft_rrb_rx(hapd->wpa_auth, data->addr, in hostapd_wpa_ft_rrb_rx_later()
728 !hapd->wpa_auth || in hostapd_wpa_auth_ft_iter()
877 if (hapd->wpa_auth && oui_ctx) { in hostapd_oui_deliver_later()
1168 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL); in hostapd_wpa_auth_add_sta()
1471 wpa_ft_rrb_rx(hapd->wpa_auth, ethhdr->h_source, buf + sizeof(*ethhdr), in hostapd_rrb_receive()
1487 wpa_ft_rrb_oui_rx(hapd->wpa_auth, src_addr, dst_addr, oui_suffix, buf, in hostapd_rrb_oui_receive()
1610 wpa_auth_ml_get_key_info(hapd->wpa_auth, in hostapd_wpa_auth_get_ml_key_info()
[all …]
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()
Dwpa_auth_ie.h14 int wpa_auth_gen_wpa_ie(struct wpa_authenticator *wpa_auth);
DMakefile53 wpa_auth.o \
Dhostapd.c124 if (hapd->wpa_auth) in hostapd_reconfig_encryption()
168 if ((hapd->conf->wpa || hapd->conf->osen) && hapd->wpa_auth == NULL) { in hostapd_reload_bss()
170 if (hapd->wpa_auth) in hostapd_reload_bss()
171 wpa_init_keys(hapd->wpa_auth); in hostapd_reload_bss()
176 wpa_ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &wpa_ie_len); in hostapd_reload_bss()
180 } else if (hapd->wpa_auth) { in hostapd_reload_bss()
181 wpa_deinit(hapd->wpa_auth); in hostapd_reload_bss()
182 hapd->wpa_auth = NULL; in hostapd_reload_bss()
1158 if (!hapd->wpa_auth) in hostapd_das_disconnect_pmksa()
1160 return wpa_auth_radius_das_disconnect_pmksa(hapd->wpa_auth, attr); in hostapd_das_disconnect_pmksa()
[all …]
Ddrv_callbacks.c508 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
527 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
672 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
679 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
1606 if (rx_auth->auth_type == WLAN_AUTH_FT && hapd->wpa_auth) { in hostapd_notif_auth()
1609 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_auth()
2300 if (!hapd || !hapd->wpa_auth) { in hostapd_notif_update_dh_ie()
2710 if (hapd->wpa_auth) in hostapd_event()
2711 wpa_auth_reconfig_group_keys(hapd->wpa_auth); in hostapd_event()
Dieee802_11.c973 wpa_auth_pmksa_add_sae(hapd->wpa_auth, sta->addr, in sae_accept_sta()
1139 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in sae_sm_step()
1365 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in handle_auth_sae()
1929 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1940 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in handle_auth_fils()
1971 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1975 pmksa = wpa_auth_pmksa_get_fils_cache_id(hapd->wpa_auth, in handle_auth_fils()
2078 ie = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ielen); in prepare_auth_resp_fils()
2144 res = wpa_auth_write_fte(hapd->wpa_auth, sta->wpa_sm, in prepare_auth_resp_fils()
2217 hapd->wpa_auth, sta->addr, in prepare_auth_resp_fils()
[all …]
Dpreauth_auth.c208 if (wpa_auth_pmksa_add_preauth(hapd->wpa_auth, key, len, in rsn_preauth_finished()
Dctrl_iface_ap.c1159 return wpa_auth_pmksa_list(hapd->wpa_auth, buf, len); in hostapd_ctrl_iface_pmksa_list()
1165 wpa_auth_pmksa_flush(hapd->wpa_auth); in hostapd_ctrl_iface_pmksa_flush()
1212 return wpa_auth_pmksa_add2(hapd->wpa_auth, spa, pmk, pmk_len, in hostapd_ctrl_iface_pmksa_add()
1223 return wpa_auth_pmksa_list_mesh(hapd->wpa_auth, addr, buf, len); in hostapd_ctrl_iface_pmksa_list_mesh()
Dhostapd.h221 struct wpa_authenticator *wpa_auth; member
Dbeacon.c313 ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len); in hostapd_wpa_ie()
327 ies = wpa_auth_get_wpa_ie(hapd->wpa_auth, &ies_len); in hostapd_vendor_wpa_ie()
2045 if (wpa_auth_write_fd_rsn_info(hapd->wpa_auth, fd_rsn_info)) { in hostapd_gen_fils_discovery()
Dwnm_ap.c890 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in set_disassoc_timer()
Ddpp_hostapd.c2032 if (!hapd->wpa_auth || in hapd_dpp_connector_available()
2143 if (wpa_auth_pmksa_add2(hapd->wpa_auth, src, intro.pmk, intro.pmk_len, in hostapd_dpp_rx_peer_disc_req()
2917 if (wpa_auth_pmksa_add2(hapd->wpa_auth, src, intro.pmk, intro.pmk_len, in hostapd_dpp_rx_priv_peer_intro_update()
Dieee802_1x.c1183 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr, in ieee802_1x_receive()
2730 wpa_auth_eapol_key_tx_status(hapd->wpa_auth, in ieee802_1x_eapol_tx_status()
/hostap-latest/wpa_supplicant/
Dmesh_rsn.c272 bss->wpa_auth = mesh_rsn->auth; in mesh_rsn_auth_init()
280 ret = wpa_auth_pmksa_add_entry(bss->wpa_auth, in mesh_rsn_auth_init()
391 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL); in mesh_rsn_auth_sae_sta()
394 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
406 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
666 if (!wpa_auth_pmksa_get(hapd->wpa_auth, sta->addr, NULL)) { in mesh_rsn_process_ampe()
Dmesh_mpm.c533 wpa_auth_pmksa_remove(hapd->wpa_auth, sta->addr); in plink_timer()
1256 wpa_auth_pmksa_get(hapd->wpa_auth, mgmt->sa, NULL))) in mesh_mpm_action_rx()
/hostap-latest/hostapd/
Dctrl_iface.c1331 wpa_auth_set_transition_disable(hapd->wpa_auth, in hostapd_ctrl_iface_set()
1337 wpa_auth_set_ft_rsnxe_used(hapd->wpa_auth, in hostapd_ctrl_iface_set()
1341 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_EAPOL_M3, in hostapd_ctrl_iface_set()
1345 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_EAPOL_G1, in hostapd_ctrl_iface_set()
1349 hapd->wpa_auth, WPA_AUTH_OCV_OVERRIDE_FT_ASSOC, in hostapd_ctrl_iface_set()
1353 hapd->wpa_auth, in hostapd_ctrl_iface_set()
2386 return wpa_auth_rekey_ptk(hapd->wpa_auth, sta->wpa_sm); in hostapd_ctrl_rekey_ptk()
2395 pmksa = wpa_auth_pmksa_get(hapd->wpa_auth, addr, NULL); in hostapd_ctrl_get_pmksa_pmk()
4023 res = wpa_get_mib(hapd->wpa_auth, reply + reply_len, in hostapd_ctrl_iface_receive_process()
4268 if (wpa_auth_rekey_gtk(hapd->wpa_auth) < 0) in hostapd_ctrl_iface_receive_process()