Lines Matching refs:wpa_sm
17 struct wpa_sm;
183 struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx);
184 void wpa_sm_deinit(struct wpa_sm *sm);
185 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
186 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
187 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
189 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
190 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
191 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
192 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
193 void wpa_sm_set_ssid(struct wpa_sm *sm, const u8 *ssid, size_t ssid_len);
194 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
195 void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
197 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
198 int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
199 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
201 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe,
203 int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
204 int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
205 int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
206 int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
207 int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen);
209 int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
212 int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
214 int wpa_sm_pmf_enabled(struct wpa_sm *sm);
215 int wpa_sm_ext_key_id(struct wpa_sm *sm);
216 int wpa_sm_ext_key_id_active(struct wpa_sm *sm);
217 int wpa_sm_ocv_enabled(struct wpa_sm *sm);
219 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise);
224 void wpa_sm_aborted_cached(struct wpa_sm *sm);
225 void wpa_sm_aborted_external_cached(struct wpa_sm *sm);
226 int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
228 int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data);
229 int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len);
230 struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_head(struct wpa_sm *sm);
232 wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm,
234 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
237 int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const u8 *own_addr,
239 void wpa_sm_drop_sa(struct wpa_sm *sm);
240 struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_get(struct wpa_sm *sm,
245 void wpa_sm_pmksa_cache_remove(struct wpa_sm *sm,
247 bool wpa_sm_has_ft_keys(struct wpa_sm *sm, const u8 *md);
248 int wpa_sm_has_ptk_installed(struct wpa_sm *sm);
250 void wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr);
252 void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
253 void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
255 int wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf);
257 void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter);
258 void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm,
261 int wpa_fils_is_completed(struct wpa_sm *sm);
262 void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm);
263 int wpa_sm_set_mlo_params(struct wpa_sm *sm, const struct wpa_sm_mlo *mlo);
267 static inline struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx) in wpa_sm_init()
269 return (struct wpa_sm *) 1; in wpa_sm_init()
272 static inline void wpa_sm_deinit(struct wpa_sm *sm) in wpa_sm_deinit()
276 static inline void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) in wpa_sm_notify_assoc()
280 static inline void wpa_sm_notify_disassoc(struct wpa_sm *sm) in wpa_sm_notify_disassoc()
284 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, in wpa_sm_set_pmk()
290 static inline void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) in wpa_sm_set_pmk_from_pmksa()
294 static inline void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) in wpa_sm_set_fast_reauth()
298 static inline void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) in wpa_sm_set_scard_ctx()
302 static inline void wpa_sm_set_config(struct wpa_sm *sm, in wpa_sm_set_config()
307 static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) in wpa_sm_set_own_addr()
311 static inline void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, in wpa_sm_set_ifname()
316 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol()
320 static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_assoc_wpa_ie()
326 static inline int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, in wpa_sm_set_assoc_wpa_ie_default()
333 static inline int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_wpa_ie()
339 static inline int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsn_ie()
345 static inline int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsnxe()
351 static inline int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) in wpa_sm_get_mib()
356 static inline int wpa_sm_set_param(struct wpa_sm *sm, in wpa_sm_set_param()
363 static inline int wpa_sm_get_status(struct wpa_sm *sm, char *buf, in wpa_sm_get_status()
369 static inline int wpa_sm_pmf_enabled(struct wpa_sm *sm) in wpa_sm_pmf_enabled()
374 static inline int wpa_sm_ext_key_id(struct wpa_sm *sm) in wpa_sm_ext_key_id()
379 static inline int wpa_sm_ext_key_id_active(struct wpa_sm *sm) in wpa_sm_ext_key_id_active()
384 static inline int wpa_sm_ocv_enabled(struct wpa_sm *sm) in wpa_sm_ocv_enabled()
389 static inline void wpa_sm_key_request(struct wpa_sm *sm, int error, in wpa_sm_key_request()
400 static inline void wpa_sm_aborted_cached(struct wpa_sm *sm) in wpa_sm_aborted_cached()
404 static inline void wpa_sm_aborted_external_cached(struct wpa_sm *sm) in wpa_sm_aborted_external_cached()
408 static inline int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, in wpa_sm_rx_eapol()
415 static inline int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, in wpa_sm_parse_own_wpa_ie()
421 static inline int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, in wpa_sm_pmksa_cache_list()
427 static inline void wpa_sm_drop_sa(struct wpa_sm *sm) in wpa_sm_drop_sa()
432 wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid, in wpa_sm_pmksa_cache_get()
438 static inline int wpa_sm_has_ptk(struct wpa_sm *sm) in wpa_sm_has_ptk()
443 static inline void wpa_sm_update_replay_ctr(struct wpa_sm *sm, in wpa_sm_update_replay_ctr()
448 static inline void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, in wpa_sm_external_pmksa_cache_flush()
453 static inline void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, in wpa_sm_pmksa_cache_flush()
458 static inline void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, in wpa_sm_set_rx_replay_ctr()
463 static inline void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, in wpa_sm_set_ptk_kck_kek()
469 static inline int wpa_fils_is_completed(struct wpa_sm *sm) in wpa_fils_is_completed()
474 static inline void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm) in wpa_sm_pmksa_cache_reconfig()
478 static inline int wpa_sm_set_mlo_params(struct wpa_sm *sm, in wpa_sm_set_mlo_params()
488 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len);
489 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie);
490 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len,
492 const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm);
493 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
496 int wpa_ft_is_completed(struct wpa_sm *sm);
497 void wpa_reset_ft_completed(struct wpa_sm *sm);
498 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies,
500 int wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap,
505 int wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id,
513 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
518 static inline int wpa_ft_prepare_auth_request(struct wpa_sm *sm, in wpa_ft_prepare_auth_request()
524 static inline int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, in wpa_ft_add_mdie()
531 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response()
537 static inline int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed()
542 static inline void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed()
547 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp()
556 wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id, in wpa_pasn_ft_derive_pmk_r1()
568 void wpa_tdls_ap_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
569 void wpa_tdls_assoc_resp_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
570 int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr);
571 void wpa_tdls_remove(struct wpa_sm *sm, const u8 *addr);
572 int wpa_tdls_teardown_link(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
573 int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr);
574 int wpa_tdls_init(struct wpa_sm *sm);
575 void wpa_tdls_teardown_peers(struct wpa_sm *sm);
576 void wpa_tdls_deinit(struct wpa_sm *sm);
577 void wpa_tdls_enable(struct wpa_sm *sm, int enabled);
578 void wpa_tdls_disable_unreachable_link(struct wpa_sm *sm, const u8 *addr);
579 const char * wpa_tdls_get_link_status(struct wpa_sm *sm, const u8 *addr);
580 int wpa_tdls_is_external_setup(struct wpa_sm *sm);
581 int wpa_tdls_enable_chan_switch(struct wpa_sm *sm, const u8 *addr,
584 int wpa_tdls_disable_chan_switch(struct wpa_sm *sm, const u8 *addr);
585 int wpa_tdls_process_discovery_response(struct wpa_sm *sm, const u8 *addr,
592 int wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf);
593 void wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf);
594 void wpa_sm_set_test_eapol_m2_elems(struct wpa_sm *sm, struct wpabuf *buf);
595 void wpa_sm_set_test_eapol_m4_elems(struct wpa_sm *sm, struct wpabuf *buf);
596 const u8 * wpa_sm_get_anonce(struct wpa_sm *sm);
597 unsigned int wpa_sm_get_key_mgmt(struct wpa_sm *sm);
599 struct wpabuf * fils_build_auth(struct wpa_sm *sm, int dh_group, const u8 *md);
600 int fils_process_auth(struct wpa_sm *sm, const u8 *bssid, const u8 *data,
602 struct wpabuf * fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek,
607 int fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len);
609 struct wpabuf * owe_build_assoc_req(struct wpa_sm *sm, u16 group);
610 int owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid,
613 void wpa_sm_set_reset_fils_completed(struct wpa_sm *sm, int set);
614 void wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id);
615 void wpa_sm_set_dpp_z(struct wpa_sm *sm, const struct wpabuf *z);
616 void wpa_pasn_sm_set_caps(struct wpa_sm *sm, unsigned int flags2);
617 struct rsn_pmksa_cache * wpa_sm_get_pmksa_cache(struct wpa_sm *sm);
619 void wpa_sm_set_cur_pmksa(struct wpa_sm *sm,
621 const u8 * wpa_sm_get_auth_addr(struct wpa_sm *sm);
622 void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm,