Lines Matching full:u8
34 const u8 *addr, int key_idx, int set_tx,
35 const u8 *seq, size_t seq_len,
36 const u8 *key, size_t key_len, enum key_flag key_flag);
38 int (*get_bssid)(void *ctx, u8 *bssid);
39 int (*ether_send)(void *ctx, const u8 *dest, u16 proto, const u8 *buf,
43 u8 * (*alloc_eapol)(void *ctx, u8 type, const void *data, u16 data_len,
45 int (*add_pmkid)(void *ctx, void *network_ctx, const u8 *bssid,
46 const u8 *pmkid, const u8 *fils_cache_id,
47 const u8 *pmk, size_t pmk_len, u32 pmk_lifetime,
48 u8 pmk_reauth_threshold, int akmp);
49 int (*remove_pmkid)(void *ctx, void *network_ctx, const u8 *bssid,
50 const u8 *pmkid, const u8 *fils_cache_id);
54 int (*mlme_setprotection)(void *ctx, const u8 *addr,
56 int (*update_ft_ies)(void *ctx, const u8 *md, const u8 *ies,
58 int (*send_ft_action)(void *ctx, u8 action, const u8 *target_ap,
59 const u8 *ies, size_t ies_len);
60 int (*mark_authenticated)(void *ctx, const u8 *target_ap);
64 int (*send_tdls_mgmt)(void *ctx, const u8 *dst,
65 u8 action_code, u8 dialog_token,
67 int initiator, const u8 *buf, size_t len,
69 int (*tdls_oper)(void *ctx, int oper, const u8 *peer);
70 int (*tdls_peer_addset)(void *ctx, const u8 *addr, int add, u16 aid,
71 u16 capability, const u8 *supp_rates,
78 u8 qosinfo, int wmm, const u8 *ext_capab,
79 size_t ext_capab_len, const u8 *supp_channels,
81 const u8 *supp_oper_classes,
86 void *ctx, const u8 *addr, u8 oper_class,
88 int (*tdls_disable_channel_switch)(void *ctx, const u8 *addr);
90 void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len,
91 const u8 *kck, size_t kck_len,
92 const u8 *replay_ctr);
93 int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len);
94 void (*fils_hlp_rx)(void *ctx, const u8 *dst, const u8 *src,
95 const u8 *pkt, size_t pkt_len);
97 void (*transition_disable)(void *ctx, u8 bitmap);
98 void (*store_ptk)(void *ctx, const u8 *addr, int cipher,
101 int (*set_ltf_keyseed)(void *ctx, const u8 *own_addr,
102 const u8 *peer_addr, size_t ltf_keyseed_len,
103 const u8 *ltf_keyseed);
148 const u8 *ssid;
155 const u8 *fils_cache_id;
161 u8 addr[ETH_ALEN];
162 u8 bssid[ETH_ALEN];
163 u8 *ap_rsne, *ap_rsnxe;
174 u8 ap_mld_addr[ETH_ALEN];
175 u8 assoc_link_id;
185 void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
187 void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
188 const u8 *pmkid, const u8 *bssid);
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);
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);
221 int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
226 int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
227 const u8 *buf, size_t len, enum frame_encryption encrypted);
234 void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
235 const u8 *pmkid, const u8 *bssid,
236 const u8 *fils_cache_id);
237 int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const u8 *own_addr,
241 const u8 *aa,
242 const u8 *pmkid,
247 bool wpa_sm_has_ft_keys(struct wpa_sm *sm, const u8 *md);
250 void wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr);
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);
259 const u8 *ptk_kck, size_t ptk_kck_len,
260 const u8 *ptk_kek, size_t ptk_kek_len);
276 static inline void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) in wpa_sm_notify_assoc()
284 static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, in wpa_sm_set_pmk()
285 size_t pmk_len, const u8 *pmkid, in wpa_sm_set_pmk()
286 const u8 *bssid) in wpa_sm_set_pmk()
307 static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) in wpa_sm_set_own_addr()
320 static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, in wpa_sm_set_assoc_wpa_ie()
327 u8 *wpa_ie, 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()
394 static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len, in wpa_parse_wpa_ie()
408 static inline int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, in wpa_sm_rx_eapol()
409 const u8 *buf, size_t len, in wpa_sm_rx_eapol()
432 wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid, in wpa_sm_pmksa_cache_get()
444 const u8 *replay_ctr) in wpa_sm_update_replay_ctr()
459 const u8 *rx_replay_counter) 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()
465 const u8 *ptk_kek, size_t ptk_kek_len) in wpa_sm_set_ptk_kck_kek()
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,
491 const u8 *mdie);
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,
494 int ft_action, const u8 *target_ap,
495 const u8 *ric_ies, size_t ric_ies_len);
498 int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies,
499 size_t ies_len, const u8 *src_addr);
500 int wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap,
501 const u8 *mdie, bool force);
505 int wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id,
506 u8 *pmk_r1, size_t *pmk_r1_len, u8 *pmk_r1_name);
513 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) in wpa_sm_set_ft_params()
519 const u8 *mdie) 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()
525 const u8 *mdie) 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()
532 int ft_action, const u8 *target_ap) in wpa_ft_process_response()
547 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, in wpa_ft_validate_reassoc_resp()
548 const u8 *src_addr) 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()
557 u8 *pmk_r1, size_t *pmk_r1_len, u8 *pmk_r1_name) 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);
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);
581 int wpa_tdls_enable_chan_switch(struct wpa_sm *sm, const u8 *addr,
582 u8 oper_class,
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,
586 const u8 *buf, size_t len);
592 int wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf);
596 const u8 * wpa_sm_get_anonce(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,
603 size_t *kek_len, const u8 **snonce,
604 const u8 **anonce,
607 int fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len);
610 int owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid,
611 const u8 *resp_ies, size_t resp_ies_len);
614 void wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id);
621 const u8 * wpa_sm_get_auth_addr(struct wpa_sm *sm);