Home
last modified time | relevance | path

Searched refs:wpa_sm (Results 1 – 25 of 30) sorted by relevance

12

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.h17 struct wpa_sm;
175 struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx);
176 void wpa_sm_deinit(struct wpa_sm *sm);
177 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
178 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
179 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
181 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
182 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
183 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
184 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
[all …]
Dpreauth.h16 void pmksa_candidate_free(struct wpa_sm *sm);
17 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
19 void rsn_preauth_deinit(struct wpa_sm *sm);
20 int rsn_preauth_scan_results(struct wpa_sm *sm);
21 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
23 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
25 void rsn_preauth_candidate_process(struct wpa_sm *sm);
26 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
28 int rsn_preauth_in_progress(struct wpa_sm *sm);
32 static inline void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free()
[all …]
Dwpa_i.h25 struct wpa_sm { struct
228 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument
234 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state()
240 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code) in wpa_sm_deauthenticate()
246 static inline int wpa_sm_set_key(struct wpa_sm *sm, int link_id, in wpa_sm_set_key()
257 static inline void wpa_sm_reconnect(struct wpa_sm *sm) in wpa_sm_reconnect()
263 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm) in wpa_sm_get_network_ctx()
269 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) in wpa_sm_get_bssid()
275 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, in wpa_sm_ether_send()
282 static inline int wpa_sm_get_beacon_ie(struct wpa_sm *sm) in wpa_sm_get_beacon_ie()
[all …]
Dpmksa_cache.h67 void *ctx, struct wpa_sm *sm);
84 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm);
85 void pmksa_cache_clear_current(struct wpa_sm *sm);
86 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
108 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
125 pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
158 static inline void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
162 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
Dwpa_ie.h12 struct wpa_sm;
14 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
15 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len);
16 u16 rsn_supp_capab(struct wpa_sm *sm);
Dpreauth.c37 void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free()
64 struct wpa_sm *sm = ctx; in rsn_preauth_receive()
87 struct wpa_sm *sm = ctx; in rsn_preauth_eapol_cb()
131 struct wpa_sm *sm = eloop_ctx; in rsn_preauth_timeout()
143 struct wpa_sm *sm = ctx; in rsn_preauth_eapol_send()
180 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, in rsn_preauth_init()
283 void rsn_preauth_deinit(struct wpa_sm *sm) in rsn_preauth_deinit()
310 void rsn_preauth_candidate_process(struct wpa_sm *sm) in rsn_preauth_candidate_process()
377 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add()
457 int rsn_preauth_scan_results(struct wpa_sm *sm) in rsn_preauth_scan_results()
[all …]
Dwpa.c92 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk, in wpa_eapol_key_send()
221 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) in wpa_sm_key_request()
293 static void wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm) in wpa_supplicant_key_mgmt_set_pmk()
311 static int wpa_supplicant_get_pmk(struct wpa_sm *sm, in wpa_supplicant_get_pmk()
525 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, in wpa_supplicant_send_2_of_4()
626 static int wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk()
683 static int wpa_handle_ext_key_id(struct wpa_sm *sm, in wpa_handle_ext_key_id()
741 static size_t wpa_mlo_link_kde_len(struct wpa_sm *sm) in wpa_mlo_link_kde_len()
755 static u8 * wpa_mlo_link_kde(struct wpa_sm *sm, u8 *pos) in wpa_mlo_link_kde()
775 static bool is_valid_ap_mld_mac_kde(struct wpa_sm *sm, const u8 *mac_kde) in is_valid_ap_mld_mac_kde()
[all …]
Dtdls.c86 static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer);
87 static void wpa_tdls_disable_peer_link(struct wpa_sm *sm,
89 static int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr,
163 static int wpa_tdls_get_privacy(struct wpa_sm *sm) in wpa_tdls_get_privacy()
181 static int wpa_tdls_del_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_del_key()
194 static int wpa_tdls_set_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_set_key()
245 static int wpa_tdls_send_tpk_msg(struct wpa_sm *sm, const u8 *dst, in wpa_tdls_send_tpk_msg()
256 static int wpa_tdls_tpk_send(struct wpa_sm *sm, const u8 *dest, u8 action_code, in wpa_tdls_tpk_send()
324 static int wpa_tdls_do_teardown(struct wpa_sm *sm, struct wpa_tdls_peer *peer, in wpa_tdls_do_teardown()
340 struct wpa_sm *sm = eloop_ctx; in wpa_tdls_tpk_retry_timeout()
[all …]
Dwpa_ft.c29 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid);
31 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_pasn_store_r1kh()
37 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft()
112 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
203 static u8 * wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, in wpa_ft_gen_req_ies()
488 static int wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_install_ptk()
526 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) in wpa_ft_prepare_auth_request()
549 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len, in wpa_ft_add_mdie()
574 const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm) in wpa_sm_get_ft_md()
580 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response()
[all …]
Dwpa_ie.c108 u16 rsn_supp_capab(struct wpa_sm *sm) in rsn_supp_capab()
132 struct wpa_sm *sm) in wpa_gen_wpa_ie_rsn()
339 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) in wpa_gen_wpa_ie()
362 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len) in wpa_gen_rsnxe()
Dpmksa_cache.c27 struct wpa_sm *sm; /* TODO: get rid of this reference(?) */
585 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
597 void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
618 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
765 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
/external/wpa_supplicant_8/src/ap/
Ddrv_callbacks.c70 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p, in hostapd_notify_assoc_fils_finish()
83 wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FILS); in hostapd_notify_assoc_fils_finish()
353 if (sta->wpa_sm == NULL) in hostapd_notif_assoc()
354 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
357 if (sta->wpa_sm == NULL) { in hostapd_notif_assoc()
362 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
433 if (wpa_auth_uses_mfp(sta->wpa_sm)) in hostapd_notif_assoc()
440 status = wpa_ft_validate_reassoc(sta->wpa_sm, req_ies, in hostapd_notif_assoc()
506 if (sta->wpa_sm == NULL) in hostapd_notif_assoc()
507 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
[all …]
Dieee802_11.c380 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in auth_shared_key()
883 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in sae_accept_sta()
1815 if (!sta->wpa_sm) in handle_auth_fils()
1816 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1818 if (!sta->wpa_sm) { in handle_auth_fils()
1825 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in handle_auth_fils()
1869 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) { in handle_auth_fils()
1872 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp); in handle_auth_fils()
1911 if (fils_pmkid_erp(wpa_auth_sta_key_mgmt(sta->wpa_sm), in handle_auth_fils()
2025 if (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm))) { in prepare_auth_resp_fils()
[all …]
Dieee802_1x.c79 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send()
379 ver = wpa_auth_sta_wpa_version(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
380 val = wpa_auth_get_pairwise(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
403 val = wpa_auth_sta_key_mgmt(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
508 sta->wpa_sm && in add_common_radius_sta_attr()
509 (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm)) || in add_common_radius_sta_attr()
521 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
989 if (sta->wpa_sm) { in ieee802_1x_alloc_eapol_sm()
991 if (wpa_auth_sta_get_pmksa(sta->wpa_sm)) in ieee802_1x_alloc_eapol_sm()
1036 return !wpa_auth_pairwise_set(sta->wpa_sm); in ieee802_1x_check_encryption()
[all …]
Dwnm_ap.c97 wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_send_wnmsleep_resp()
156 if (!wpa_auth_uses_mfp(sta->wpa_sm) || in ieee802_11_send_wnmsleep_resp()
161 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp()
165 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp()
175 res = wpa_wnmsleep_bigtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp()
224 wpa_set_wnmsleep(sta->wpa_sm, 1); in ieee802_11_send_wnmsleep_resp()
236 wpa_set_wnmsleep(sta->wpa_sm, 0); in ieee802_11_send_wnmsleep_resp()
239 if (!wpa_auth_uses_mfp(sta->wpa_sm) || in ieee802_11_send_wnmsleep_resp()
241 wpa_wnmsleep_rekey_gtk(sta->wpa_sm); in ieee802_11_send_wnmsleep_resp()
320 sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_rx_wnmsleep_req()
Dap_mlme.c189 if (sta->wpa_sm) in mlme_deletekeys_request()
190 wpa_remove_ptk(sta->wpa_sm); in mlme_deletekeys_request()
Dwpa_auth_glue.c358 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) { in hostapd_wpa_auth_get_psk()
375 sa = wpa_auth_sta_get_pmksa(sta->wpa_sm); in hostapd_wpa_auth_get_psk()
560 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
1033 if (sta == NULL || sta->wpa_sm == NULL) in hostapd_wpa_auth_send_ft_action()
1081 if (sta->wpa_sm) { in hostapd_wpa_auth_add_sta()
1083 return sta->wpa_sm; in hostapd_wpa_auth_add_sta()
1086 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL); in hostapd_wpa_auth_add_sta()
1087 if (sta->wpa_sm == NULL) { in hostapd_wpa_auth_add_sta()
1093 return sta->wpa_sm; in hostapd_wpa_auth_add_sta()
1132 if (!sta || !sta->wpa_sm) in hostapd_wpa_auth_set_vlan()
Dsta_info.c304 wpa_auth_sta_deinit(sta->wpa_sm); in ap_free_sta()
869 wpa_auth_sta_deinit(sta->wpa_sm); in ap_sta_disassociate()
870 sta->wpa_sm = NULL; in ap_sta_disassociate()
1128 if (wpa_auth_sta_set_vlan(sta->wpa_sm, sta->vlan_id) < 0) in ap_sta_bind_vlan()
1252 pmk = wpa_auth_get_pmk(sta->wpa_sm, &pmk_len); in ap_sta_wpa_get_keyid()
1269 return wpa_auth_get_dpp_pkhash(sta->wpa_sm); in ap_sta_wpa_get_dpp_pkhash()
1323 if (wpa_auth_get_ip_addr(sta->wpa_sm, ip_addr_buf) == 0) { in ap_sta_set_authorized()
1402 wpa_auth_sm_event(sta->wpa_sm, WPA_DEAUTH); in ap_sta_disconnect()
Dtkip_countermeasures.c82 wpa_auth_sta_local_mic_failure_report(sta->wpa_sm); in michael_mic_failure()
Dieee802_11_shared.c69 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_send_sa_query_req()
158 if (wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_send_sa_query_resp()
255 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) { in ieee802_11_sa_query_action()
278 if (get_sta_tx_parameters(sta->wpa_sm, in ieee802_11_sa_query_action()
Dieee802_11_auth.c602 if (!sta || !sta->wpa_sm) { in hostapd_acl_recv_radius()
614 wpa_auth_sta_radius_psk_resp(sta->wpa_sm, success); in hostapd_acl_recv_radius()
Dsta_info.h164 struct wpa_state_machine *wpa_sm; member
/external/wpa_supplicant_8/wpa_supplicant/
Dibss_rsn.h35 struct wpa_sm *supp;
Dmesh_rsn.c375 if (!sta->wpa_sm) in mesh_rsn_auth_sae_sta()
376 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
378 if (!sta->wpa_sm) { in mesh_rsn_auth_sae_sta()
388 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
/external/wpa_supplicant_8/hostapd/
Dctrl_iface.c1424 pmk = wpa_auth_get_pmk(sta->wpa_sm, &pmk_len); in hostapd_ctrl_iface_kick_mismatch_psk_sta_iter()
2270 if (!sta || !sta->wpa_sm) in hostapd_ctrl_resend_m1()
2284 return wpa_auth_resend_m1(sta->wpa_sm, in hostapd_ctrl_resend_m1()
2300 if (!sta || !sta->wpa_sm) in hostapd_ctrl_resend_m3()
2314 return wpa_auth_resend_m3(sta->wpa_sm, in hostapd_ctrl_resend_m3()
2330 if (!sta || !sta->wpa_sm) in hostapd_ctrl_resend_group_m1()
2346 return wpa_auth_resend_group_m1(sta->wpa_sm, in hostapd_ctrl_resend_group_m1()
2360 if (!sta || !sta->wpa_sm) in hostapd_ctrl_rekey_ptk()
2363 return wpa_auth_rekey_ptk(hapd->wpa_auth, sta->wpa_sm); in hostapd_ctrl_rekey_ptk()
2392 if (!sta || !sta->wpa_sm) { in hostapd_ctrl_get_pmk()
[all …]

12