Home
last modified time | relevance | path

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

12

/external/wpa_supplicant_8/src/rsn_supp/
Dwpa.h17 struct wpa_sm;
112 struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx);
113 void wpa_sm_deinit(struct wpa_sm *sm);
114 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
115 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
116 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
118 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
119 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
120 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
121 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.h21 struct wpa_sm { struct
144 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) in wpa_sm_set_state() argument
150 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) in wpa_sm_get_state()
156 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, int reason_code) in wpa_sm_deauthenticate()
162 static inline int wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, in wpa_sm_set_key()
172 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm) in wpa_sm_get_network_ctx()
178 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) in wpa_sm_get_bssid()
184 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, in wpa_sm_ether_send()
191 static inline int wpa_sm_get_beacon_ie(struct wpa_sm *sm) in wpa_sm_get_beacon_ie()
197 static inline void wpa_sm_cancel_auth_timeout(struct wpa_sm *sm) in wpa_sm_cancel_auth_timeout()
[all …]
Dpeerkey.h39 int peerkey_verify_eapol_key_mic(struct wpa_sm *sm,
43 void peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey,
46 void peerkey_rx_eapol_smk(struct wpa_sm *sm, const u8 *src_addr,
49 void peerkey_deinit(struct wpa_sm *sm);
54 peerkey_verify_eapol_key_mic(struct wpa_sm *sm, in peerkey_verify_eapol_key_mic()
63 peerkey_rx_eapol_4way(struct wpa_sm *sm, struct wpa_peerkey *peerkey, in peerkey_rx_eapol_4way()
70 peerkey_rx_eapol_smk(struct wpa_sm *sm, const u8 *src_addr, in peerkey_rx_eapol_smk()
76 static inline void peerkey_deinit(struct wpa_sm *sm) in peerkey_deinit()
Dpmksa_cache.h52 void *ctx, struct wpa_sm *sm);
62 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm);
63 void pmksa_cache_clear_current(struct wpa_sm *sm);
64 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
78 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
95 pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
114 static inline void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
118 static inline int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
Dwpa.c43 int wpa_eapol_key_send(struct wpa_sm *sm, const u8 *kck, size_t kck_len, in wpa_eapol_key_send()
96 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) in wpa_sm_key_request()
163 static void wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm) in wpa_supplicant_key_mgmt_set_pmk()
181 static int wpa_supplicant_get_pmk(struct wpa_sm *sm, in wpa_supplicant_get_pmk()
336 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, in wpa_supplicant_send_2_of_4()
429 static int wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk()
444 static void wpa_supplicant_process_1_of_4(struct wpa_sm *sm, in wpa_supplicant_process_1_of_4()
554 struct wpa_sm *sm = eloop_ctx; in wpa_sm_start_preauth()
559 static void wpa_supplicant_key_neg_complete(struct wpa_sm *sm, in wpa_supplicant_key_neg_complete()
605 struct wpa_sm *sm = eloop_ctx; in wpa_sm_rekey_ptk()
[all …]
Dpreauth.c37 void pmksa_candidate_free(struct wpa_sm *sm) in pmksa_candidate_free()
55 struct wpa_sm *sm = ctx; in rsn_preauth_receive()
77 struct wpa_sm *sm = ctx; in rsn_preauth_eapol_cb()
121 struct wpa_sm *sm = eloop_ctx; in rsn_preauth_timeout()
133 struct wpa_sm *sm = ctx; in rsn_preauth_eapol_send()
170 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, in rsn_preauth_init()
273 void rsn_preauth_deinit(struct wpa_sm *sm) in rsn_preauth_deinit()
300 void rsn_preauth_candidate_process(struct wpa_sm *sm) in rsn_preauth_candidate_process()
367 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, in pmksa_candidate_add()
447 int rsn_preauth_scan_results(struct wpa_sm *sm) in rsn_preauth_scan_results()
[all …]
Dtdls.c85 static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer);
86 static void wpa_tdls_disable_peer_link(struct wpa_sm *sm,
88 static int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr,
158 static int wpa_tdls_get_privacy(struct wpa_sm *sm) in wpa_tdls_get_privacy()
176 static int wpa_tdls_del_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_del_key()
189 static int wpa_tdls_set_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer) in wpa_tdls_set_key()
222 static int wpa_tdls_send_tpk_msg(struct wpa_sm *sm, const u8 *dst, in wpa_tdls_send_tpk_msg()
233 static int wpa_tdls_tpk_send(struct wpa_sm *sm, const u8 *dest, u8 action_code, in wpa_tdls_tpk_send()
302 static int wpa_tdls_do_teardown(struct wpa_sm *sm, struct wpa_tdls_peer *peer, in wpa_tdls_do_teardown()
318 struct wpa_sm *sm = eloop_ctx; in wpa_tdls_tpk_retry_timeout()
[all …]
Dpeerkey.c47 struct wpa_sm *sm = eloop_ctx; in wpa_supplicant_smk_timeout()
54 static void wpa_supplicant_peerkey_free(struct wpa_sm *sm, in wpa_supplicant_peerkey_free()
62 static int wpa_supplicant_send_smk_error(struct wpa_sm *sm, const u8 *dst, in wpa_supplicant_send_smk_error()
124 static int wpa_supplicant_send_smk_m3(struct wpa_sm *sm, in wpa_supplicant_send_smk_m3()
179 struct wpa_sm *sm, const unsigned char *src_addr, in wpa_supplicant_process_smk_m2()
322 static void wpa_supplicant_send_stk_1_of_4(struct wpa_sm *sm, in wpa_supplicant_send_stk_1_of_4()
379 static void wpa_supplicant_send_stk_3_of_4(struct wpa_sm *sm, in wpa_supplicant_send_stk_3_of_4()
458 static int wpa_supplicant_process_smk_m5(struct wpa_sm *sm, in wpa_supplicant_process_smk_m5()
514 struct wpa_sm *sm, const unsigned char *src_addr, in wpa_supplicant_process_smk_m45()
593 struct wpa_sm *sm, const unsigned char *src_addr, in wpa_supplicant_process_smk_error()
[all …]
Dwpa_ft.c21 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, in wpa_derive_ptk_ft()
58 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
141 static u8 * wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, in wpa_ft_gen_req_ies()
313 static int wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) in wpa_ft_install_ptk()
346 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) in wpa_ft_prepare_auth_request()
369 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response()
520 int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed()
532 void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed()
539 static int wpa_ft_process_gtk_subelem(struct wpa_sm *sm, const u8 *gtk_elem, in wpa_ft_process_gtk_subelem()
614 static int wpa_ft_process_igtk_subelem(struct wpa_sm *sm, const u8 *igtk_elem, in wpa_ft_process_igtk_subelem()
[all …]
Dwpa_ie.h12 struct wpa_sm;
70 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
Dpmksa_cache.c25 struct wpa_sm *sm; /* TODO: get rid of this reference(?) */
405 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm) in pmksa_cache_get_current()
417 void pmksa_cache_clear_current(struct wpa_sm *sm) in pmksa_cache_clear_current()
434 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, in pmksa_cache_set_current()
526 void *ctx, struct wpa_sm *sm) in pmksa_cache_init()
Dwpa_ie.c111 struct wpa_sm *sm) in wpa_gen_wpa_ie_rsn()
298 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len) in wpa_gen_wpa_ie()
/external/wpa_supplicant_8/src/ap/
Ddrv_callbacks.c216 if (sta->wpa_sm == NULL) in hostapd_notif_assoc()
217 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
220 if (sta->wpa_sm == NULL) { in hostapd_notif_assoc()
225 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
283 if (wpa_auth_uses_mfp(sta->wpa_sm)) in hostapd_notif_assoc()
291 status = wpa_ft_validate_reassoc(sta->wpa_sm, req_ies, in hostapd_notif_assoc()
343 if (sta->wpa_sm == NULL) in hostapd_notif_assoc()
344 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in hostapd_notif_assoc()
346 if (sta->wpa_sm == NULL) { in hostapd_notif_assoc()
351 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in hostapd_notif_assoc()
[all …]
Dieee802_11.c246 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in auth_shared_key()
562 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in sae_accept_sta()
1242 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in handle_auth()
1264 if (sta->wpa_sm == NULL) in handle_auth()
1265 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in handle_auth()
1267 if (sta->wpa_sm == NULL) { in handle_auth()
1273 wpa_ft_process_auth(sta->wpa_sm, mgmt->bssid, in handle_auth()
1286 if (sta->wpa_sm == NULL) in handle_auth()
1287 sta->wpa_sm = in handle_auth()
1290 if (sta->wpa_sm == NULL) { in handle_auth()
[all …]
Dwpa_auth_glue.c363 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx)) in hostapd_wpa_auth_for_each_sta()
518 if (sta == NULL || sta->wpa_sm == NULL) in hostapd_wpa_auth_send_ft_action()
550 if (sta->wpa_sm) { in hostapd_wpa_auth_add_sta()
552 return sta->wpa_sm; in hostapd_wpa_auth_add_sta()
555 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL); in hostapd_wpa_auth_add_sta()
556 if (sta->wpa_sm == NULL) { in hostapd_wpa_auth_add_sta()
562 return sta->wpa_sm; in hostapd_wpa_auth_add_sta()
Dap_mlme.c179 if (sta->wpa_sm) in mlme_deletekeys_request()
180 wpa_remove_ptk(sta->wpa_sm); in mlme_deletekeys_request()
Dwnm_ap.c111 if (!wpa_auth_uses_mfp(sta->wpa_sm) || in ieee802_11_send_wnmsleep_resp()
115 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp()
120 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos); in ieee802_11_send_wnmsleep_resp()
164 wpa_set_wnmsleep(sta->wpa_sm, 1); in ieee802_11_send_wnmsleep_resp()
176 wpa_set_wnmsleep(sta->wpa_sm, 0); in ieee802_11_send_wnmsleep_resp()
179 if (!wpa_auth_uses_mfp(sta->wpa_sm)) in ieee802_11_send_wnmsleep_resp()
180 wpa_wnmsleep_rekey_gtk(sta->wpa_sm); in ieee802_11_send_wnmsleep_resp()
Dieee802_1x.c70 if (wpa_auth_pairwise_set(sta->wpa_sm)) in ieee802_1x_send()
346 ver = wpa_auth_sta_wpa_version(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
347 val = wpa_auth_get_pairwise(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
370 val = wpa_auth_sta_key_mgmt(sta->wpa_sm); in add_common_radius_sta_attr_rsn()
476 sta->wpa_sm && in add_common_radius_sta_attr()
477 (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm)) || in add_common_radius_sta_attr()
489 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm && in add_common_radius_sta_attr()
853 if (sta->wpa_sm) { in ieee802_1x_alloc_eapol_sm()
855 if (wpa_auth_sta_get_pmksa(sta->wpa_sm)) in ieee802_1x_alloc_eapol_sm()
959 wpa_receive(hapd->wpa_auth, sta->wpa_sm, (u8 *) hdr, in ieee802_1x_receive()
[all …]
Dtkip_countermeasures.c77 wpa_auth_sta_local_mic_failure_report(sta->wpa_sm); in michael_mic_failure()
Dsta_info.c260 wpa_auth_sta_deinit(sta->wpa_sm); in ap_free_sta()
992 if (wpa_auth_sta_set_vlan(sta->wpa_sm, sta->vlan_id) < 0) in ap_sta_bind_vlan()
1149 if (wpa_auth_get_ip_addr(sta->wpa_sm, ip_addr_buf) == 0) { in ap_sta_set_authorized()
1207 wpa_auth_sm_event(sta->wpa_sm, WPA_DEAUTH); in ap_sta_disconnect()
Dsta_info.h138 struct wpa_state_machine *wpa_sm; member
/external/wpa_supplicant_8/wpa_supplicant/
Dibss_rsn.h35 struct wpa_sm *supp;
Dmesh_rsn.c309 if (!sta->wpa_sm) in mesh_rsn_auth_sae_sta()
310 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in mesh_rsn_auth_sae_sta()
312 if (!sta->wpa_sm) { 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()
Dwpa_supplicant_i.h30 struct wpa_sm;
573 struct wpa_sm *wpa;

12