Lines Matching refs:sm
117 void wpa_sm_deinit(struct wpa_sm *sm);
118 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
119 void wpa_sm_notify_disassoc(struct wpa_sm *sm);
120 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
122 void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
123 void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
124 void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
125 void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
126 void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
127 void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
129 void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
130 int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
131 int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
133 int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
134 int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
135 int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen);
137 int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
140 int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
142 int wpa_sm_pmf_enabled(struct wpa_sm *sm);
144 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise);
149 void wpa_sm_aborted_cached(struct wpa_sm *sm);
150 int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
152 int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data);
153 int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len);
154 struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_head(struct wpa_sm *sm);
156 wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm,
158 void wpa_sm_drop_sa(struct wpa_sm *sm);
159 int wpa_sm_has_ptk(struct wpa_sm *sm);
161 void wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr);
163 void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
165 int wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf);
167 void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter);
168 void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm,
179 static inline void wpa_sm_deinit(struct wpa_sm *sm) in wpa_sm_deinit() argument
183 static inline void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) in wpa_sm_notify_assoc() argument
187 static inline void wpa_sm_notify_disassoc(struct wpa_sm *sm) in wpa_sm_notify_disassoc() argument
191 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, in wpa_sm_set_pmk() argument
197 static inline void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) in wpa_sm_set_pmk_from_pmksa() argument
201 static inline void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) in wpa_sm_set_fast_reauth() argument
205 static inline void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) in wpa_sm_set_scard_ctx() argument
209 static inline void wpa_sm_set_config(struct wpa_sm *sm, in wpa_sm_set_config() argument
214 static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) in wpa_sm_set_own_addr() argument
218 static inline void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, in wpa_sm_set_ifname() argument
223 static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) in wpa_sm_set_eapol() argument
227 static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_assoc_wpa_ie() argument
233 static inline int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, in wpa_sm_set_assoc_wpa_ie_default() argument
240 static inline int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_wpa_ie() argument
246 static inline int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_ap_rsn_ie() argument
252 static inline int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) in wpa_sm_get_mib() argument
257 static inline int wpa_sm_set_param(struct wpa_sm *sm, in wpa_sm_set_param() argument
264 static inline int wpa_sm_get_status(struct wpa_sm *sm, char *buf, in wpa_sm_get_status() argument
270 static inline int wpa_sm_pmf_enabled(struct wpa_sm *sm) in wpa_sm_pmf_enabled() argument
275 static inline void wpa_sm_key_request(struct wpa_sm *sm, int error, in wpa_sm_key_request() argument
286 static inline void wpa_sm_aborted_cached(struct wpa_sm *sm) in wpa_sm_aborted_cached() argument
290 static inline int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, in wpa_sm_rx_eapol() argument
296 static inline int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, in wpa_sm_parse_own_wpa_ie() argument
302 static inline int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, in wpa_sm_pmksa_cache_list() argument
308 static inline void wpa_sm_drop_sa(struct wpa_sm *sm) in wpa_sm_drop_sa() argument
312 static inline int wpa_sm_has_ptk(struct wpa_sm *sm) in wpa_sm_has_ptk() argument
317 static inline void wpa_sm_update_replay_ctr(struct wpa_sm *sm, in wpa_sm_update_replay_ctr() argument
322 static inline void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, in wpa_sm_pmksa_cache_flush() argument
327 static inline void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, in wpa_sm_set_rx_replay_ctr() argument
332 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
341 int wpa_sm_stkstart(struct wpa_sm *sm, const u8 *peer);
342 int wpa_sm_rx_eapol_peerkey(struct wpa_sm *sm, const u8 *src_addr,
345 static inline int wpa_sm_stkstart(struct wpa_sm *sm, const u8 *peer) in wpa_sm_stkstart() argument
350 static inline int wpa_sm_rx_eapol_peerkey(struct wpa_sm *sm, const u8 *src_addr, in wpa_sm_rx_eapol_peerkey() argument
359 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len);
360 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie);
361 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
364 int wpa_ft_is_completed(struct wpa_sm *sm);
365 void wpa_reset_ft_completed(struct wpa_sm *sm);
366 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies,
368 int wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap,
374 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params() argument
379 static inline int wpa_ft_prepare_auth_request(struct wpa_sm *sm, in wpa_ft_prepare_auth_request() argument
386 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_process_response() argument
392 static inline int wpa_ft_is_completed(struct wpa_sm *sm) in wpa_ft_is_completed() argument
397 static inline void wpa_reset_ft_completed(struct wpa_sm *sm) in wpa_reset_ft_completed() argument
402 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp() argument
412 void wpa_tdls_ap_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
413 void wpa_tdls_assoc_resp_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
414 int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr);
415 void wpa_tdls_remove(struct wpa_sm *sm, const u8 *addr);
416 int wpa_tdls_teardown_link(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
417 int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr);
418 int wpa_tdls_init(struct wpa_sm *sm);
419 void wpa_tdls_teardown_peers(struct wpa_sm *sm);
420 void wpa_tdls_deinit(struct wpa_sm *sm);
421 void wpa_tdls_enable(struct wpa_sm *sm, int enabled);
422 void wpa_tdls_disable_unreachable_link(struct wpa_sm *sm, const u8 *addr);
423 const char * wpa_tdls_get_link_status(struct wpa_sm *sm, const u8 *addr);
424 int wpa_tdls_is_external_setup(struct wpa_sm *sm);
425 int wpa_tdls_enable_chan_switch(struct wpa_sm *sm, const u8 *addr,
428 int wpa_tdls_disable_chan_switch(struct wpa_sm *sm, const u8 *addr);
434 int wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf);
435 void wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf);
437 struct wpabuf * fils_build_auth(struct wpa_sm *sm);
438 int fils_process_auth(struct wpa_sm *sm, const u8 *data, size_t len);
439 struct wpabuf * fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek,
444 int fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len);
445 int wpa_fils_is_completed(struct wpa_sm *sm);