Lines Matching refs:sm

194 void wpa_sm_deinit(struct wpa_sm *sm);
195 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
196 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
197 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
199 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
200 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
201 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
202 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
203 void wpa_sm_set_ssid(struct wpa_sm *sm, const u8 *ssid, size_t ssid_len);
204 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
205 void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
207 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
208 int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
209 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
211 int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe,
213 int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
214 int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
215 int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
216 int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
217 int wpa_sm_set_ap_rsne_override(struct wpa_sm *sm, const u8 *ie, size_t len);
218 int wpa_sm_set_ap_rsne_override_2(struct wpa_sm *sm, const u8 *ie, size_t len);
219 int wpa_sm_set_ap_rsnxe_override(struct wpa_sm *sm, const u8 *ie, size_t len);
220 int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen);
222 int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
225 int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
227 int wpa_sm_pmf_enabled(struct wpa_sm *sm);
228 int wpa_sm_ext_key_id(struct wpa_sm *sm);
229 int wpa_sm_ext_key_id_active(struct wpa_sm *sm);
230 int wpa_sm_ocv_enabled(struct wpa_sm *sm);
232 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise);
237 void wpa_sm_aborted_cached(struct wpa_sm *sm);
238 void wpa_sm_aborted_external_cached(struct wpa_sm *sm);
239 int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
241 int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data);
242 int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len);
243 struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_head(struct wpa_sm *sm);
245 wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm,
247 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
250 int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const u8 *own_addr,
252 void wpa_sm_drop_sa(struct wpa_sm *sm);
253 struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_get(struct wpa_sm *sm,
258 void wpa_sm_pmksa_cache_remove(struct wpa_sm *sm,
260 bool wpa_sm_has_ft_keys(struct wpa_sm *sm, const u8 *md);
261 int wpa_sm_has_ptk_installed(struct wpa_sm *sm);
263 void wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr);
265 void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
266 void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
268 int wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf);
270 void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter);
271 void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm,
274 int wpa_fils_is_completed(struct wpa_sm *sm);
275 void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm);
276 int wpa_sm_set_mlo_params(struct wpa_sm *sm, const struct wpa_sm_mlo *mlo);
280 static inline void wpa_sm_set_ssid(struct wpa_sm *sm, const u8 *ssid, size_t ssid_len) in wpa_sm_set_ssid() argument
289 static inline void wpa_sm_deinit(struct wpa_sm *sm) in wpa_sm_deinit() argument
293 static inline void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) in wpa_sm_notify_assoc() argument
297 static inline void wpa_sm_notify_disassoc(struct wpa_sm *sm) in wpa_sm_notify_disassoc() argument
301 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, in wpa_sm_set_pmk() argument
307 static inline void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) in wpa_sm_set_pmk_from_pmksa() argument
311 static inline void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) in wpa_sm_set_fast_reauth() argument
315 static inline void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) in wpa_sm_set_scard_ctx() argument
319 static inline void wpa_sm_set_config(struct wpa_sm *sm, in wpa_sm_set_config() argument
324 static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) in wpa_sm_set_own_addr() argument
328 static inline void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, in wpa_sm_set_ifname() argument
333 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol() argument
337 static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_assoc_wpa_ie() argument
343 static inline int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, in wpa_sm_set_assoc_wpa_ie_default() argument
350 static inline int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_wpa_ie() argument
356 static inline int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsn_ie() argument
362 static inline int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsnxe() argument
368 static inline int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe, in wpa_sm_set_assoc_rsnxe_default() argument
375 static inline int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *rsnxe, in wpa_sm_set_assoc_rsnxe() argument
381 static inline int wpa_sm_set_ap_rsne_override(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsne_override() argument
387 static inline int wpa_sm_set_ap_rsne_override_2(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsne_override_2() argument
393 static inline int wpa_sm_set_ap_rsnxe_override(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsnxe_override() argument
399 static inline int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) in wpa_sm_get_mib() argument
404 static inline int wpa_sm_set_param(struct wpa_sm *sm, in wpa_sm_set_param() argument
411 static inline int wpa_sm_get_status(struct wpa_sm *sm, char *buf, in wpa_sm_get_status() argument
417 static inline int wpa_sm_pmf_enabled(struct wpa_sm *sm) in wpa_sm_pmf_enabled() argument
422 static inline int wpa_sm_ext_key_id(struct wpa_sm *sm) in wpa_sm_ext_key_id() argument
427 static inline int wpa_sm_ext_key_id_active(struct wpa_sm *sm) in wpa_sm_ext_key_id_active() argument
432 static inline int wpa_sm_ocv_enabled(struct wpa_sm *sm) in wpa_sm_ocv_enabled() argument
437 static inline void wpa_sm_key_request(struct wpa_sm *sm, int error, in wpa_sm_key_request() argument
448 static inline void wpa_sm_aborted_cached(struct wpa_sm *sm) in wpa_sm_aborted_cached() argument
452 static inline void wpa_sm_aborted_external_cached(struct wpa_sm *sm) in wpa_sm_aborted_external_cached() argument
456 static inline int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, in wpa_sm_rx_eapol() argument
463 static inline int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, in wpa_sm_parse_own_wpa_ie() argument
469 static inline int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, in wpa_sm_pmksa_cache_list() argument
475 static inline void wpa_sm_drop_sa(struct wpa_sm *sm) in wpa_sm_drop_sa() argument
480 wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid, in wpa_sm_pmksa_cache_get() argument
486 static inline int wpa_sm_has_ptk(struct wpa_sm *sm) in wpa_sm_has_ptk() argument
491 static inline void wpa_sm_update_replay_ctr(struct wpa_sm *sm, in wpa_sm_update_replay_ctr() argument
496 static inline void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, in wpa_sm_external_pmksa_cache_flush() argument
501 static inline void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, in wpa_sm_pmksa_cache_flush() argument
506 static inline void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, in wpa_sm_set_rx_replay_ctr() argument
511 static inline void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, in wpa_sm_set_ptk_kck_kek() argument
517 static inline int wpa_fils_is_completed(struct wpa_sm *sm) in wpa_fils_is_completed() argument
522 static inline void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm) in wpa_sm_pmksa_cache_reconfig() argument
526 static inline int wpa_sm_set_mlo_params(struct wpa_sm *sm, in wpa_sm_set_mlo_params() argument
536 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len);
537 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie);
538 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len,
540 const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm);
541 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
544 int wpa_ft_is_completed(struct wpa_sm *sm);
545 void wpa_reset_ft_completed(struct wpa_sm *sm);
546 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies,
548 int wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap,
553 int wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id,
561 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params() argument
566 static inline int wpa_ft_prepare_auth_request(struct wpa_sm *sm, in wpa_ft_prepare_auth_request() argument
572 static inline int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len, in wpa_ft_add_mdie() argument
579 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response() argument
585 static inline int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed() argument
590 static inline void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed() argument
595 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp() argument
604 wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id, in wpa_pasn_ft_derive_pmk_r1() argument
616 void wpa_tdls_ap_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
617 void wpa_tdls_assoc_resp_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
618 int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr);
619 void wpa_tdls_remove(struct wpa_sm *sm, const u8 *addr);
620 int wpa_tdls_teardown_link(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
621 int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr);
622 int wpa_tdls_init(struct wpa_sm *sm);
623 void wpa_tdls_teardown_peers(struct wpa_sm *sm);
624 void wpa_tdls_deinit(struct wpa_sm *sm);
625 void wpa_tdls_enable(struct wpa_sm *sm, int enabled);
626 void wpa_tdls_disable_unreachable_link(struct wpa_sm *sm, const u8 *addr);
627 const char * wpa_tdls_get_link_status(struct wpa_sm *sm, const u8 *addr);
628 int wpa_tdls_is_external_setup(struct wpa_sm *sm);
629 int wpa_tdls_enable_chan_switch(struct wpa_sm *sm, const u8 *addr,
632 int wpa_tdls_disable_chan_switch(struct wpa_sm *sm, const u8 *addr);
633 int wpa_tdls_process_discovery_response(struct wpa_sm *sm, const u8 *addr,
640 int wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf);
641 void wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf);
642 void wpa_sm_set_test_eapol_m2_elems(struct wpa_sm *sm, struct wpabuf *buf);
643 void wpa_sm_set_test_eapol_m4_elems(struct wpa_sm *sm, struct wpabuf *buf);
644 const u8 * wpa_sm_get_anonce(struct wpa_sm *sm);
645 unsigned int wpa_sm_get_key_mgmt(struct wpa_sm *sm);
647 struct wpabuf * fils_build_auth(struct wpa_sm *sm, int dh_group, const u8 *md);
648 int fils_process_auth(struct wpa_sm *sm, const u8 *bssid, const u8 *data,
650 struct wpabuf * fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek,
655 int fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len);
657 struct wpabuf * owe_build_assoc_req(struct wpa_sm *sm, u16 group);
658 int owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid,
661 void wpa_sm_set_reset_fils_completed(struct wpa_sm *sm, int set);
662 void wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id);
663 void wpa_sm_set_dpp_z(struct wpa_sm *sm, const struct wpabuf *z);
664 void wpa_pasn_sm_set_caps(struct wpa_sm *sm, unsigned int flags2);
665 struct rsn_pmksa_cache * wpa_sm_get_pmksa_cache(struct wpa_sm *sm);
667 void wpa_sm_set_cur_pmksa(struct wpa_sm *sm,
669 const u8 * wpa_sm_get_auth_addr(struct wpa_sm *sm);
670 void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm,