139beb93cSSam Leffler /*
239beb93cSSam Leffler * wpa_supplicant - WPA definitions
35b9c547cSRui Paulo * Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
439beb93cSSam Leffler *
5f05cddf9SRui Paulo * This software may be distributed under the terms of the BSD license.
6f05cddf9SRui Paulo * See README for more details.
739beb93cSSam Leffler */
839beb93cSSam Leffler
939beb93cSSam Leffler #ifndef WPA_H
1039beb93cSSam Leffler #define WPA_H
1139beb93cSSam Leffler
12e28a4053SRui Paulo #include "common/defs.h"
13e28a4053SRui Paulo #include "common/eapol_common.h"
14e28a4053SRui Paulo #include "common/wpa_common.h"
155b9c547cSRui Paulo #include "common/ieee802_11_defs.h"
1639beb93cSSam Leffler
1739beb93cSSam Leffler struct wpa_sm;
1839beb93cSSam Leffler struct eapol_sm;
1939beb93cSSam Leffler struct wpa_config_blob;
205b9c547cSRui Paulo struct hostapd_freq_params;
214bc52338SCy Schubert struct wpa_channel_info;
22*a90b9d01SCy Schubert struct rsn_pmksa_cache_entry;
23*a90b9d01SCy Schubert enum frame_encryption;
2439beb93cSSam Leffler
2539beb93cSSam Leffler struct wpa_sm_ctx {
2639beb93cSSam Leffler void *ctx; /* pointer to arbitrary upper level context */
27e28a4053SRui Paulo void *msg_ctx; /* upper level context for wpa_msg() calls */
2839beb93cSSam Leffler
29e28a4053SRui Paulo void (*set_state)(void *ctx, enum wpa_states state);
30e28a4053SRui Paulo enum wpa_states (*get_state)(void *ctx);
31206b73d0SCy Schubert void (*deauthenticate)(void * ctx, u16 reason_code);
32c1d255d3SCy Schubert void (*reconnect)(void *ctx);
33*a90b9d01SCy Schubert int (*set_key)(void *ctx, int link_id, enum wpa_alg alg,
3439beb93cSSam Leffler const u8 *addr, int key_idx, int set_tx,
3539beb93cSSam Leffler const u8 *seq, size_t seq_len,
36c1d255d3SCy Schubert const u8 *key, size_t key_len, enum key_flag key_flag);
3739beb93cSSam Leffler void * (*get_network_ctx)(void *ctx);
3839beb93cSSam Leffler int (*get_bssid)(void *ctx, u8 *bssid);
3939beb93cSSam Leffler int (*ether_send)(void *ctx, const u8 *dest, u16 proto, const u8 *buf,
4039beb93cSSam Leffler size_t len);
4139beb93cSSam Leffler int (*get_beacon_ie)(void *ctx);
4239beb93cSSam Leffler void (*cancel_auth_timeout)(void *ctx);
4339beb93cSSam Leffler u8 * (*alloc_eapol)(void *ctx, u8 type, const void *data, u16 data_len,
4439beb93cSSam Leffler size_t *msg_len, void **data_pos);
4585732ac8SCy Schubert int (*add_pmkid)(void *ctx, void *network_ctx, const u8 *bssid,
4685732ac8SCy Schubert const u8 *pmkid, const u8 *fils_cache_id,
47c1d255d3SCy Schubert const u8 *pmk, size_t pmk_len, u32 pmk_lifetime,
48c1d255d3SCy Schubert u8 pmk_reauth_threshold, int akmp);
4985732ac8SCy Schubert int (*remove_pmkid)(void *ctx, void *network_ctx, const u8 *bssid,
5085732ac8SCy Schubert const u8 *pmkid, const u8 *fils_cache_id);
5139beb93cSSam Leffler void (*set_config_blob)(void *ctx, struct wpa_config_blob *blob);
5239beb93cSSam Leffler const struct wpa_config_blob * (*get_config_blob)(void *ctx,
5339beb93cSSam Leffler const char *name);
5439beb93cSSam Leffler int (*mlme_setprotection)(void *ctx, const u8 *addr,
5539beb93cSSam Leffler int protection_type, int key_type);
5639beb93cSSam Leffler int (*update_ft_ies)(void *ctx, const u8 *md, const u8 *ies,
5739beb93cSSam Leffler size_t ies_len);
5839beb93cSSam Leffler int (*send_ft_action)(void *ctx, u8 action, const u8 *target_ap,
5939beb93cSSam Leffler const u8 *ies, size_t ies_len);
60e28a4053SRui Paulo int (*mark_authenticated)(void *ctx, const u8 *target_ap);
61f05cddf9SRui Paulo #ifdef CONFIG_TDLS
62f05cddf9SRui Paulo int (*tdls_get_capa)(void *ctx, int *tdls_supported,
635b9c547cSRui Paulo int *tdls_ext_setup, int *tdls_chan_switch);
64f05cddf9SRui Paulo int (*send_tdls_mgmt)(void *ctx, const u8 *dst,
65f05cddf9SRui Paulo u8 action_code, u8 dialog_token,
665b9c547cSRui Paulo u16 status_code, u32 peer_capab,
67*a90b9d01SCy Schubert int initiator, const u8 *buf, size_t len,
68*a90b9d01SCy Schubert int link_id);
69f05cddf9SRui Paulo int (*tdls_oper)(void *ctx, int oper, const u8 *peer);
705b9c547cSRui Paulo int (*tdls_peer_addset)(void *ctx, const u8 *addr, int add, u16 aid,
71f05cddf9SRui Paulo u16 capability, const u8 *supp_rates,
725b9c547cSRui Paulo size_t supp_rates_len,
735b9c547cSRui Paulo const struct ieee80211_ht_capabilities *ht_capab,
745b9c547cSRui Paulo const struct ieee80211_vht_capabilities *vht_capab,
75c1d255d3SCy Schubert const struct ieee80211_he_capabilities *he_capab,
76c1d255d3SCy Schubert size_t he_capab_len,
774b72b91aSCy Schubert const struct ieee80211_he_6ghz_band_cap *he_6ghz_capab,
785b9c547cSRui Paulo u8 qosinfo, int wmm, const u8 *ext_capab,
795b9c547cSRui Paulo size_t ext_capab_len, const u8 *supp_channels,
805b9c547cSRui Paulo size_t supp_channels_len,
815b9c547cSRui Paulo const u8 *supp_oper_classes,
82*a90b9d01SCy Schubert size_t supp_oper_classes_len,
83*a90b9d01SCy Schubert const struct ieee80211_eht_capabilities *eht_capab,
84*a90b9d01SCy Schubert size_t eht_capab_len, int mld_link_id);
855b9c547cSRui Paulo int (*tdls_enable_channel_switch)(
865b9c547cSRui Paulo void *ctx, const u8 *addr, u8 oper_class,
875b9c547cSRui Paulo const struct hostapd_freq_params *params);
885b9c547cSRui Paulo int (*tdls_disable_channel_switch)(void *ctx, const u8 *addr);
89f05cddf9SRui Paulo #endif /* CONFIG_TDLS */
905b9c547cSRui Paulo void (*set_rekey_offload)(void *ctx, const u8 *kek, size_t kek_len,
915b9c547cSRui Paulo const u8 *kck, size_t kck_len,
92f05cddf9SRui Paulo const u8 *replay_ctr);
935b9c547cSRui Paulo int (*key_mgmt_set_pmk)(void *ctx, const u8 *pmk, size_t pmk_len);
9485732ac8SCy Schubert void (*fils_hlp_rx)(void *ctx, const u8 *dst, const u8 *src,
9585732ac8SCy Schubert const u8 *pkt, size_t pkt_len);
964bc52338SCy Schubert int (*channel_info)(void *ctx, struct wpa_channel_info *ci);
97c1d255d3SCy Schubert void (*transition_disable)(void *ctx, u8 bitmap);
98*a90b9d01SCy Schubert void (*store_ptk)(void *ctx, const u8 *addr, int cipher,
99c1d255d3SCy Schubert u32 life_time, const struct wpa_ptk *ptk);
100*a90b9d01SCy Schubert #ifdef CONFIG_PASN
101*a90b9d01SCy Schubert int (*set_ltf_keyseed)(void *ctx, const u8 *own_addr,
102*a90b9d01SCy Schubert const u8 *peer_addr, size_t ltf_keyseed_len,
103*a90b9d01SCy Schubert const u8 *ltf_keyseed);
104*a90b9d01SCy Schubert #endif /* CONFIG_PASN */
105*a90b9d01SCy Schubert void (*notify_pmksa_cache_entry)(void *ctx,
106*a90b9d01SCy Schubert struct rsn_pmksa_cache_entry *entry);
107*a90b9d01SCy Schubert void (*ssid_verified)(void *ctx);
10839beb93cSSam Leffler };
10939beb93cSSam Leffler
11039beb93cSSam Leffler
11139beb93cSSam Leffler enum wpa_sm_conf_params {
11239beb93cSSam Leffler RSNA_PMK_LIFETIME /* dot11RSNAConfigPMKLifetime */,
11339beb93cSSam Leffler RSNA_PMK_REAUTH_THRESHOLD /* dot11RSNAConfigPMKReauthThreshold */,
11439beb93cSSam Leffler RSNA_SA_TIMEOUT /* dot11RSNAConfigSATimeout */,
11539beb93cSSam Leffler WPA_PARAM_PROTO,
11639beb93cSSam Leffler WPA_PARAM_PAIRWISE,
11739beb93cSSam Leffler WPA_PARAM_GROUP,
11839beb93cSSam Leffler WPA_PARAM_KEY_MGMT,
11939beb93cSSam Leffler WPA_PARAM_MGMT_GROUP,
120e28a4053SRui Paulo WPA_PARAM_RSN_ENABLED,
1214bc52338SCy Schubert WPA_PARAM_MFP,
122c1d255d3SCy Schubert WPA_PARAM_OCV,
123c1d255d3SCy Schubert WPA_PARAM_SAE_PWE,
124c1d255d3SCy Schubert WPA_PARAM_SAE_PK,
125c1d255d3SCy Schubert WPA_PARAM_DENY_PTK0_REKEY,
126c1d255d3SCy Schubert WPA_PARAM_EXT_KEY_ID,
127c1d255d3SCy Schubert WPA_PARAM_USE_EXT_KEY_ID,
128c1d255d3SCy Schubert WPA_PARAM_FT_RSNXE_USED,
129c1d255d3SCy Schubert WPA_PARAM_DPP_PFS,
130*a90b9d01SCy Schubert WPA_PARAM_WMM_ENABLED,
131c1d255d3SCy Schubert WPA_PARAM_OCI_FREQ_EAPOL,
132c1d255d3SCy Schubert WPA_PARAM_OCI_FREQ_EAPOL_G2,
133c1d255d3SCy Schubert WPA_PARAM_OCI_FREQ_FT_ASSOC,
134c1d255d3SCy Schubert WPA_PARAM_OCI_FREQ_FILS_ASSOC,
135*a90b9d01SCy Schubert WPA_PARAM_DISABLE_EAPOL_G2_TX,
136*a90b9d01SCy Schubert WPA_PARAM_ENCRYPT_EAPOL_M2,
137*a90b9d01SCy Schubert WPA_PARAM_ENCRYPT_EAPOL_M4,
138*a90b9d01SCy Schubert WPA_PARAM_FT_PREPEND_PMKID,
139*a90b9d01SCy Schubert WPA_PARAM_SSID_PROTECTION,
14039beb93cSSam Leffler };
14139beb93cSSam Leffler
14239beb93cSSam Leffler struct rsn_supp_config {
14339beb93cSSam Leffler void *network_ctx;
14439beb93cSSam Leffler int allowed_pairwise_cipher; /* bitfield of WPA_CIPHER_* */
14539beb93cSSam Leffler int proactive_key_caching;
14639beb93cSSam Leffler int eap_workaround;
14739beb93cSSam Leffler void *eap_conf_ctx;
14839beb93cSSam Leffler const u8 *ssid;
14939beb93cSSam Leffler size_t ssid_len;
15039beb93cSSam Leffler int wpa_ptk_rekey;
151c1d255d3SCy Schubert int wpa_deny_ptk0_rekey;
1525b9c547cSRui Paulo int p2p;
153780fb4a2SCy Schubert int wpa_rsc_relaxation;
154c1d255d3SCy Schubert int owe_ptk_workaround;
15585732ac8SCy Schubert const u8 *fils_cache_id;
156c1d255d3SCy Schubert int beacon_prot;
157c1d255d3SCy Schubert bool force_kdk_derivation;
15839beb93cSSam Leffler };
15939beb93cSSam Leffler
160*a90b9d01SCy Schubert struct wpa_sm_link {
161*a90b9d01SCy Schubert u8 addr[ETH_ALEN];
162*a90b9d01SCy Schubert u8 bssid[ETH_ALEN];
163*a90b9d01SCy Schubert u8 *ap_rsne, *ap_rsnxe;
164*a90b9d01SCy Schubert size_t ap_rsne_len, ap_rsnxe_len;
165*a90b9d01SCy Schubert struct wpa_gtk gtk;
166*a90b9d01SCy Schubert struct wpa_gtk gtk_wnm_sleep;
167*a90b9d01SCy Schubert struct wpa_igtk igtk;
168*a90b9d01SCy Schubert struct wpa_igtk igtk_wnm_sleep;
169*a90b9d01SCy Schubert struct wpa_bigtk bigtk;
170*a90b9d01SCy Schubert struct wpa_bigtk bigtk_wnm_sleep;
171*a90b9d01SCy Schubert };
172*a90b9d01SCy Schubert
173*a90b9d01SCy Schubert struct wpa_sm_mlo {
174*a90b9d01SCy Schubert u8 ap_mld_addr[ETH_ALEN];
175*a90b9d01SCy Schubert u8 assoc_link_id;
176*a90b9d01SCy Schubert u16 valid_links; /* bitmap of accepted links */
177*a90b9d01SCy Schubert u16 req_links; /* bitmap of requested links */
178*a90b9d01SCy Schubert struct wpa_sm_link links[MAX_NUM_MLD_LINKS];
179*a90b9d01SCy Schubert };
180*a90b9d01SCy Schubert
18139beb93cSSam Leffler #ifndef CONFIG_NO_WPA
18239beb93cSSam Leffler
18339beb93cSSam Leffler struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx);
18439beb93cSSam Leffler void wpa_sm_deinit(struct wpa_sm *sm);
18539beb93cSSam Leffler void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid);
18639beb93cSSam Leffler void wpa_sm_notify_disassoc(struct wpa_sm *sm);
1875b9c547cSRui Paulo void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
188780fb4a2SCy Schubert const u8 *pmkid, const u8 *bssid);
18939beb93cSSam Leffler void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm);
19039beb93cSSam Leffler void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth);
19139beb93cSSam Leffler void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx);
19239beb93cSSam Leffler void wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config);
193*a90b9d01SCy Schubert void wpa_sm_set_ssid(struct wpa_sm *sm, const u8 *ssid, size_t ssid_len);
19439beb93cSSam Leffler void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr);
19539beb93cSSam Leffler void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
19639beb93cSSam Leffler const char *bridge_ifname);
19739beb93cSSam Leffler void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol);
19839beb93cSSam Leffler int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
19939beb93cSSam Leffler int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie,
20039beb93cSSam Leffler size_t *wpa_ie_len);
201c1d255d3SCy Schubert int wpa_sm_set_assoc_rsnxe_default(struct wpa_sm *sm, u8 *rsnxe,
202c1d255d3SCy Schubert size_t *rsnxe_len);
203c1d255d3SCy Schubert int wpa_sm_set_assoc_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
20439beb93cSSam Leffler int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
20539beb93cSSam Leffler int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len);
206c1d255d3SCy Schubert int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie, size_t len);
20739beb93cSSam Leffler int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen);
20839beb93cSSam Leffler
20939beb93cSSam Leffler int wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param,
21039beb93cSSam Leffler unsigned int value);
21139beb93cSSam Leffler
21239beb93cSSam Leffler int wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
21339beb93cSSam Leffler int verbose);
2145b9c547cSRui Paulo int wpa_sm_pmf_enabled(struct wpa_sm *sm);
215c1d255d3SCy Schubert int wpa_sm_ext_key_id(struct wpa_sm *sm);
216c1d255d3SCy Schubert int wpa_sm_ext_key_id_active(struct wpa_sm *sm);
2174bc52338SCy Schubert int wpa_sm_ocv_enabled(struct wpa_sm *sm);
21839beb93cSSam Leffler
21939beb93cSSam Leffler void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise);
22039beb93cSSam Leffler
22139beb93cSSam Leffler int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
22239beb93cSSam Leffler struct wpa_ie_data *data);
22339beb93cSSam Leffler
22439beb93cSSam Leffler void wpa_sm_aborted_cached(struct wpa_sm *sm);
225c1d255d3SCy Schubert void wpa_sm_aborted_external_cached(struct wpa_sm *sm);
22639beb93cSSam Leffler int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
227*a90b9d01SCy Schubert const u8 *buf, size_t len, enum frame_encryption encrypted);
22839beb93cSSam Leffler int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data);
229e28a4053SRui Paulo int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len);
23085732ac8SCy Schubert struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_head(struct wpa_sm *sm);
23185732ac8SCy Schubert struct rsn_pmksa_cache_entry *
23285732ac8SCy Schubert wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm,
23385732ac8SCy Schubert struct rsn_pmksa_cache_entry * entry);
23485732ac8SCy Schubert void wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len,
23585732ac8SCy Schubert const u8 *pmkid, const u8 *bssid,
23685732ac8SCy Schubert const u8 *fils_cache_id);
237*a90b9d01SCy Schubert int wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const u8 *own_addr,
23885732ac8SCy Schubert const void *network_ctx);
239e28a4053SRui Paulo void wpa_sm_drop_sa(struct wpa_sm *sm);
240c1d255d3SCy Schubert struct rsn_pmksa_cache_entry * wpa_sm_pmksa_cache_get(struct wpa_sm *sm,
241c1d255d3SCy Schubert const u8 *aa,
242c1d255d3SCy Schubert const u8 *pmkid,
243c1d255d3SCy Schubert const void *network_ctx,
244c1d255d3SCy Schubert int akmp);
245*a90b9d01SCy Schubert void wpa_sm_pmksa_cache_remove(struct wpa_sm *sm,
246*a90b9d01SCy Schubert struct rsn_pmksa_cache_entry *entry);
247*a90b9d01SCy Schubert bool wpa_sm_has_ft_keys(struct wpa_sm *sm, const u8 *md);
248c1d255d3SCy Schubert int wpa_sm_has_ptk_installed(struct wpa_sm *sm);
24939beb93cSSam Leffler
250f05cddf9SRui Paulo void wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr);
251f05cddf9SRui Paulo
252f05cddf9SRui Paulo void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
253c1d255d3SCy Schubert void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx);
254f05cddf9SRui Paulo
2555b9c547cSRui Paulo int wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf);
2565b9c547cSRui Paulo
2575b9c547cSRui Paulo void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter);
2585b9c547cSRui Paulo void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm,
2595b9c547cSRui Paulo const u8 *ptk_kck, size_t ptk_kck_len,
2605b9c547cSRui Paulo const u8 *ptk_kek, size_t ptk_kek_len);
26185732ac8SCy Schubert int wpa_fils_is_completed(struct wpa_sm *sm);
2624b72b91aSCy Schubert void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm);
263*a90b9d01SCy Schubert int wpa_sm_set_mlo_params(struct wpa_sm *sm, const struct wpa_sm_mlo *mlo);
2645b9c547cSRui Paulo
26539beb93cSSam Leffler #else /* CONFIG_NO_WPA */
26639beb93cSSam Leffler
wpa_sm_init(struct wpa_sm_ctx * ctx)26739beb93cSSam Leffler static inline struct wpa_sm * wpa_sm_init(struct wpa_sm_ctx *ctx)
26839beb93cSSam Leffler {
26939beb93cSSam Leffler return (struct wpa_sm *) 1;
27039beb93cSSam Leffler }
27139beb93cSSam Leffler
wpa_sm_deinit(struct wpa_sm * sm)27239beb93cSSam Leffler static inline void wpa_sm_deinit(struct wpa_sm *sm)
27339beb93cSSam Leffler {
27439beb93cSSam Leffler }
27539beb93cSSam Leffler
wpa_sm_notify_assoc(struct wpa_sm * sm,const u8 * bssid)27639beb93cSSam Leffler static inline void wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid)
27739beb93cSSam Leffler {
27839beb93cSSam Leffler }
27939beb93cSSam Leffler
wpa_sm_notify_disassoc(struct wpa_sm * sm)28039beb93cSSam Leffler static inline void wpa_sm_notify_disassoc(struct wpa_sm *sm)
28139beb93cSSam Leffler {
28239beb93cSSam Leffler }
28339beb93cSSam Leffler
wpa_sm_set_pmk(struct wpa_sm * sm,const u8 * pmk,size_t pmk_len,const u8 * pmkid,const u8 * bssid)28439beb93cSSam Leffler static inline void wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk,
285780fb4a2SCy Schubert size_t pmk_len, const u8 *pmkid,
286780fb4a2SCy Schubert const u8 *bssid)
28739beb93cSSam Leffler {
28839beb93cSSam Leffler }
28939beb93cSSam Leffler
wpa_sm_set_pmk_from_pmksa(struct wpa_sm * sm)29039beb93cSSam Leffler static inline void wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm)
29139beb93cSSam Leffler {
29239beb93cSSam Leffler }
29339beb93cSSam Leffler
wpa_sm_set_fast_reauth(struct wpa_sm * sm,int fast_reauth)29439beb93cSSam Leffler static inline void wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth)
29539beb93cSSam Leffler {
29639beb93cSSam Leffler }
29739beb93cSSam Leffler
wpa_sm_set_scard_ctx(struct wpa_sm * sm,void * scard_ctx)29839beb93cSSam Leffler static inline void wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx)
29939beb93cSSam Leffler {
30039beb93cSSam Leffler }
30139beb93cSSam Leffler
wpa_sm_set_config(struct wpa_sm * sm,struct rsn_supp_config * config)30239beb93cSSam Leffler static inline void wpa_sm_set_config(struct wpa_sm *sm,
30339beb93cSSam Leffler struct rsn_supp_config *config)
30439beb93cSSam Leffler {
30539beb93cSSam Leffler }
30639beb93cSSam Leffler
wpa_sm_set_own_addr(struct wpa_sm * sm,const u8 * addr)30739beb93cSSam Leffler static inline void wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr)
30839beb93cSSam Leffler {
30939beb93cSSam Leffler }
31039beb93cSSam Leffler
wpa_sm_set_ifname(struct wpa_sm * sm,const char * ifname,const char * bridge_ifname)31139beb93cSSam Leffler static inline void wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname,
31239beb93cSSam Leffler const char *bridge_ifname)
31339beb93cSSam Leffler {
31439beb93cSSam Leffler }
31539beb93cSSam Leffler
wpa_sm_set_eapol(struct wpa_sm * sm,struct eapol_sm * eapol)31639beb93cSSam Leffler static inline void wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol)
31739beb93cSSam Leffler {
31839beb93cSSam Leffler }
31939beb93cSSam Leffler
wpa_sm_set_assoc_wpa_ie(struct wpa_sm * sm,const u8 * ie,size_t len)32039beb93cSSam Leffler static inline int wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie,
32139beb93cSSam Leffler size_t len)
32239beb93cSSam Leffler {
32339beb93cSSam Leffler return -1;
32439beb93cSSam Leffler }
32539beb93cSSam Leffler
wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm * sm,u8 * wpa_ie,size_t * wpa_ie_len)32639beb93cSSam Leffler static inline int wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm,
32739beb93cSSam Leffler u8 *wpa_ie,
32839beb93cSSam Leffler size_t *wpa_ie_len)
32939beb93cSSam Leffler {
33039beb93cSSam Leffler return -1;
33139beb93cSSam Leffler }
33239beb93cSSam Leffler
wpa_sm_set_ap_wpa_ie(struct wpa_sm * sm,const u8 * ie,size_t len)33339beb93cSSam Leffler static inline int wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie,
33439beb93cSSam Leffler size_t len)
33539beb93cSSam Leffler {
33639beb93cSSam Leffler return -1;
33739beb93cSSam Leffler }
33839beb93cSSam Leffler
wpa_sm_set_ap_rsn_ie(struct wpa_sm * sm,const u8 * ie,size_t len)33939beb93cSSam Leffler static inline int wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie,
34039beb93cSSam Leffler size_t len)
34139beb93cSSam Leffler {
34239beb93cSSam Leffler return -1;
34339beb93cSSam Leffler }
34439beb93cSSam Leffler
wpa_sm_set_ap_rsnxe(struct wpa_sm * sm,const u8 * ie,size_t len)345c1d255d3SCy Schubert static inline int wpa_sm_set_ap_rsnxe(struct wpa_sm *sm, const u8 *ie,
346c1d255d3SCy Schubert size_t len)
347c1d255d3SCy Schubert {
348c1d255d3SCy Schubert return -1;
349c1d255d3SCy Schubert }
350c1d255d3SCy Schubert
wpa_sm_get_mib(struct wpa_sm * sm,char * buf,size_t buflen)35139beb93cSSam Leffler static inline int wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen)
35239beb93cSSam Leffler {
35339beb93cSSam Leffler return 0;
35439beb93cSSam Leffler }
35539beb93cSSam Leffler
wpa_sm_set_param(struct wpa_sm * sm,enum wpa_sm_conf_params param,unsigned int value)35639beb93cSSam Leffler static inline int wpa_sm_set_param(struct wpa_sm *sm,
35739beb93cSSam Leffler enum wpa_sm_conf_params param,
35839beb93cSSam Leffler unsigned int value)
35939beb93cSSam Leffler {
36039beb93cSSam Leffler return -1;
36139beb93cSSam Leffler }
36239beb93cSSam Leffler
wpa_sm_get_status(struct wpa_sm * sm,char * buf,size_t buflen,int verbose)3635b9c547cSRui Paulo static inline int wpa_sm_get_status(struct wpa_sm *sm, char *buf,
3645b9c547cSRui Paulo size_t buflen, int verbose)
36539beb93cSSam Leffler {
36639beb93cSSam Leffler return 0;
36739beb93cSSam Leffler }
36839beb93cSSam Leffler
wpa_sm_pmf_enabled(struct wpa_sm * sm)3695b9c547cSRui Paulo static inline int wpa_sm_pmf_enabled(struct wpa_sm *sm)
37039beb93cSSam Leffler {
37139beb93cSSam Leffler return 0;
37239beb93cSSam Leffler }
37339beb93cSSam Leffler
wpa_sm_ext_key_id(struct wpa_sm * sm)374c1d255d3SCy Schubert static inline int wpa_sm_ext_key_id(struct wpa_sm *sm)
375c1d255d3SCy Schubert {
376c1d255d3SCy Schubert return 0;
377c1d255d3SCy Schubert }
378c1d255d3SCy Schubert
wpa_sm_ext_key_id_active(struct wpa_sm * sm)379c1d255d3SCy Schubert static inline int wpa_sm_ext_key_id_active(struct wpa_sm *sm)
380c1d255d3SCy Schubert {
381c1d255d3SCy Schubert return 0;
382c1d255d3SCy Schubert }
383c1d255d3SCy Schubert
wpa_sm_ocv_enabled(struct wpa_sm * sm)3844bc52338SCy Schubert static inline int wpa_sm_ocv_enabled(struct wpa_sm *sm)
3854bc52338SCy Schubert {
3864bc52338SCy Schubert return 0;
3874bc52338SCy Schubert }
3884bc52338SCy Schubert
wpa_sm_key_request(struct wpa_sm * sm,int error,int pairwise)38939beb93cSSam Leffler static inline void wpa_sm_key_request(struct wpa_sm *sm, int error,
39039beb93cSSam Leffler int pairwise)
39139beb93cSSam Leffler {
39239beb93cSSam Leffler }
39339beb93cSSam Leffler
wpa_parse_wpa_ie(const u8 * wpa_ie,size_t wpa_ie_len,struct wpa_ie_data * data)39439beb93cSSam Leffler static inline int wpa_parse_wpa_ie(const u8 *wpa_ie, size_t wpa_ie_len,
39539beb93cSSam Leffler struct wpa_ie_data *data)
39639beb93cSSam Leffler {
39739beb93cSSam Leffler return -1;
39839beb93cSSam Leffler }
39939beb93cSSam Leffler
wpa_sm_aborted_cached(struct wpa_sm * sm)40039beb93cSSam Leffler static inline void wpa_sm_aborted_cached(struct wpa_sm *sm)
40139beb93cSSam Leffler {
40239beb93cSSam Leffler }
40339beb93cSSam Leffler
wpa_sm_aborted_external_cached(struct wpa_sm * sm)404c1d255d3SCy Schubert static inline void wpa_sm_aborted_external_cached(struct wpa_sm *sm)
405c1d255d3SCy Schubert {
406c1d255d3SCy Schubert }
407c1d255d3SCy Schubert
wpa_sm_rx_eapol(struct wpa_sm * sm,const u8 * src_addr,const u8 * buf,size_t len,enum frame_encryption encrypted)40839beb93cSSam Leffler static inline int wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr,
409*a90b9d01SCy Schubert const u8 *buf, size_t len,
410*a90b9d01SCy Schubert enum frame_encryption encrypted)
41139beb93cSSam Leffler {
41239beb93cSSam Leffler return -1;
41339beb93cSSam Leffler }
41439beb93cSSam Leffler
wpa_sm_parse_own_wpa_ie(struct wpa_sm * sm,struct wpa_ie_data * data)41539beb93cSSam Leffler static inline int wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm,
41639beb93cSSam Leffler struct wpa_ie_data *data)
41739beb93cSSam Leffler {
41839beb93cSSam Leffler return -1;
41939beb93cSSam Leffler }
42039beb93cSSam Leffler
wpa_sm_pmksa_cache_list(struct wpa_sm * sm,char * buf,size_t len)421e28a4053SRui Paulo static inline int wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf,
422e28a4053SRui Paulo size_t len)
423e28a4053SRui Paulo {
424e28a4053SRui Paulo return -1;
425e28a4053SRui Paulo }
426e28a4053SRui Paulo
wpa_sm_drop_sa(struct wpa_sm * sm)427e28a4053SRui Paulo static inline void wpa_sm_drop_sa(struct wpa_sm *sm)
428e28a4053SRui Paulo {
429e28a4053SRui Paulo }
430e28a4053SRui Paulo
431c1d255d3SCy Schubert static inline struct rsn_pmksa_cache_entry *
wpa_sm_pmksa_cache_get(struct wpa_sm * sm,const u8 * aa,const u8 * pmkid,const void * network_ctx,int akmp)432c1d255d3SCy Schubert wpa_sm_pmksa_cache_get(struct wpa_sm *sm, const u8 *aa, const u8 *pmkid,
433c1d255d3SCy Schubert const void *network_ctx, int akmp)
434c1d255d3SCy Schubert {
435c1d255d3SCy Schubert return NULL;
436c1d255d3SCy Schubert }
437c1d255d3SCy Schubert
wpa_sm_has_ptk(struct wpa_sm * sm)438e28a4053SRui Paulo static inline int wpa_sm_has_ptk(struct wpa_sm *sm)
439e28a4053SRui Paulo {
440e28a4053SRui Paulo return 0;
441e28a4053SRui Paulo }
442e28a4053SRui Paulo
wpa_sm_update_replay_ctr(struct wpa_sm * sm,const u8 * replay_ctr)443f05cddf9SRui Paulo static inline void wpa_sm_update_replay_ctr(struct wpa_sm *sm,
444f05cddf9SRui Paulo const u8 *replay_ctr)
445f05cddf9SRui Paulo {
446f05cddf9SRui Paulo }
447f05cddf9SRui Paulo
wpa_sm_external_pmksa_cache_flush(struct wpa_sm * sm,void * network_ctx)448c1d255d3SCy Schubert static inline void wpa_sm_external_pmksa_cache_flush(struct wpa_sm *sm,
449c1d255d3SCy Schubert void *network_ctx)
450c1d255d3SCy Schubert {
451c1d255d3SCy Schubert }
452c1d255d3SCy Schubert
wpa_sm_pmksa_cache_flush(struct wpa_sm * sm,void * network_ctx)453f05cddf9SRui Paulo static inline void wpa_sm_pmksa_cache_flush(struct wpa_sm *sm,
454f05cddf9SRui Paulo void *network_ctx)
455f05cddf9SRui Paulo {
456f05cddf9SRui Paulo }
457f05cddf9SRui Paulo
wpa_sm_set_rx_replay_ctr(struct wpa_sm * sm,const u8 * rx_replay_counter)4585b9c547cSRui Paulo static inline void wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm,
4595b9c547cSRui Paulo const u8 *rx_replay_counter)
4605b9c547cSRui Paulo {
4615b9c547cSRui Paulo }
4625b9c547cSRui Paulo
wpa_sm_set_ptk_kck_kek(struct wpa_sm * sm,const u8 * ptk_kck,size_t ptk_kck_len,const u8 * ptk_kek,size_t ptk_kek_len)4635b9c547cSRui Paulo static inline void wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck,
464780fb4a2SCy Schubert size_t ptk_kck_len,
465780fb4a2SCy Schubert const u8 *ptk_kek, size_t ptk_kek_len)
4665b9c547cSRui Paulo {
4675b9c547cSRui Paulo }
4685b9c547cSRui Paulo
wpa_fils_is_completed(struct wpa_sm * sm)46985732ac8SCy Schubert static inline int wpa_fils_is_completed(struct wpa_sm *sm)
4705b9c547cSRui Paulo {
4715b9c547cSRui Paulo return 0;
4725b9c547cSRui Paulo }
47385732ac8SCy Schubert
wpa_sm_pmksa_cache_reconfig(struct wpa_sm * sm)4744b72b91aSCy Schubert static inline void wpa_sm_pmksa_cache_reconfig(struct wpa_sm *sm)
4754b72b91aSCy Schubert {
4764b72b91aSCy Schubert }
4774b72b91aSCy Schubert
wpa_sm_set_mlo_params(struct wpa_sm * sm,const struct wpa_sm_mlo * mlo)478*a90b9d01SCy Schubert static inline int wpa_sm_set_mlo_params(struct wpa_sm *sm,
479*a90b9d01SCy Schubert const struct wpa_sm_mlo *mlo)
480*a90b9d01SCy Schubert {
481*a90b9d01SCy Schubert return 0;
482*a90b9d01SCy Schubert }
483*a90b9d01SCy Schubert
48485732ac8SCy Schubert #endif /* CONFIG_NO_WPA */
48539beb93cSSam Leffler
48639beb93cSSam Leffler #ifdef CONFIG_IEEE80211R
48739beb93cSSam Leffler
488e28a4053SRui Paulo int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len);
489e28a4053SRui Paulo int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie);
49085732ac8SCy Schubert int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len,
49185732ac8SCy Schubert const u8 *mdie);
49285732ac8SCy Schubert const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm);
49339beb93cSSam Leffler int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
494e28a4053SRui Paulo int ft_action, const u8 *target_ap,
495e28a4053SRui Paulo const u8 *ric_ies, size_t ric_ies_len);
49639beb93cSSam Leffler int wpa_ft_is_completed(struct wpa_sm *sm);
4975b9c547cSRui Paulo void wpa_reset_ft_completed(struct wpa_sm *sm);
49839beb93cSSam Leffler int wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies,
49939beb93cSSam Leffler size_t ies_len, const u8 *src_addr);
500e28a4053SRui Paulo int wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap,
501*a90b9d01SCy Schubert const u8 *mdie, bool force);
50239beb93cSSam Leffler
503c1d255d3SCy Schubert #ifdef CONFIG_PASN
504c1d255d3SCy Schubert
505c1d255d3SCy Schubert int wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id,
506c1d255d3SCy Schubert u8 *pmk_r1, size_t *pmk_r1_len, u8 *pmk_r1_name);
507c1d255d3SCy Schubert
508c1d255d3SCy Schubert #endif /* CONFIG_PASN */
509c1d255d3SCy Schubert
51039beb93cSSam Leffler #else /* CONFIG_IEEE80211R */
51139beb93cSSam Leffler
51239beb93cSSam Leffler static inline int
wpa_sm_set_ft_params(struct wpa_sm * sm,const u8 * ies,size_t ies_len)513e28a4053SRui Paulo wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len)
51439beb93cSSam Leffler {
51539beb93cSSam Leffler return 0;
51639beb93cSSam Leffler }
51739beb93cSSam Leffler
wpa_ft_prepare_auth_request(struct wpa_sm * sm,const u8 * mdie)518e28a4053SRui Paulo static inline int wpa_ft_prepare_auth_request(struct wpa_sm *sm,
519e28a4053SRui Paulo const u8 *mdie)
52039beb93cSSam Leffler {
52139beb93cSSam Leffler return 0;
52239beb93cSSam Leffler }
52339beb93cSSam Leffler
wpa_ft_add_mdie(struct wpa_sm * sm,u8 * ies,size_t ies_len,const u8 * mdie)52485732ac8SCy Schubert static inline int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *ies, size_t ies_len,
52585732ac8SCy Schubert const u8 *mdie)
52685732ac8SCy Schubert {
52785732ac8SCy Schubert return 0;
52885732ac8SCy Schubert }
52985732ac8SCy Schubert
53039beb93cSSam Leffler static inline int
wpa_ft_process_response(struct wpa_sm * sm,const u8 * ies,size_t ies_len,int ft_action,const u8 * target_ap)53139beb93cSSam Leffler wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
53239beb93cSSam Leffler int ft_action, const u8 *target_ap)
53339beb93cSSam Leffler {
53439beb93cSSam Leffler return 0;
53539beb93cSSam Leffler }
53639beb93cSSam Leffler
wpa_ft_is_completed(struct wpa_sm * sm)53739beb93cSSam Leffler static inline int wpa_ft_is_completed(struct wpa_sm *sm)
53839beb93cSSam Leffler {
53939beb93cSSam Leffler return 0;
54039beb93cSSam Leffler }
54139beb93cSSam Leffler
wpa_reset_ft_completed(struct wpa_sm * sm)5425b9c547cSRui Paulo static inline void wpa_reset_ft_completed(struct wpa_sm *sm)
5435b9c547cSRui Paulo {
5445b9c547cSRui Paulo }
5455b9c547cSRui Paulo
54639beb93cSSam Leffler static inline int
wpa_ft_validate_reassoc_resp(struct wpa_sm * sm,const u8 * ies,size_t ies_len,const u8 * src_addr)54739beb93cSSam Leffler wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len,
54839beb93cSSam Leffler const u8 *src_addr)
54939beb93cSSam Leffler {
55039beb93cSSam Leffler return -1;
55139beb93cSSam Leffler }
55239beb93cSSam Leffler
553c1d255d3SCy Schubert #ifdef CONFIG_PASN
554c1d255d3SCy Schubert
555*a90b9d01SCy Schubert static inline int
wpa_pasn_ft_derive_pmk_r1(struct wpa_sm * sm,int akmp,const u8 * r1kh_id,u8 * pmk_r1,size_t * pmk_r1_len,u8 * pmk_r1_name)556*a90b9d01SCy Schubert wpa_pasn_ft_derive_pmk_r1(struct wpa_sm *sm, int akmp, const u8 *r1kh_id,
557c1d255d3SCy Schubert u8 *pmk_r1, size_t *pmk_r1_len, u8 *pmk_r1_name)
558c1d255d3SCy Schubert {
559c1d255d3SCy Schubert return -1;
560c1d255d3SCy Schubert }
561c1d255d3SCy Schubert
562c1d255d3SCy Schubert #endif /* CONFIG_PASN */
563c1d255d3SCy Schubert
56439beb93cSSam Leffler #endif /* CONFIG_IEEE80211R */
56539beb93cSSam Leffler
566f05cddf9SRui Paulo
567f05cddf9SRui Paulo /* tdls.c */
568f05cddf9SRui Paulo void wpa_tdls_ap_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
569f05cddf9SRui Paulo void wpa_tdls_assoc_resp_ies(struct wpa_sm *sm, const u8 *ies, size_t len);
570f05cddf9SRui Paulo int wpa_tdls_start(struct wpa_sm *sm, const u8 *addr);
5715b9c547cSRui Paulo void wpa_tdls_remove(struct wpa_sm *sm, const u8 *addr);
572f05cddf9SRui Paulo int wpa_tdls_teardown_link(struct wpa_sm *sm, const u8 *addr, u16 reason_code);
573f05cddf9SRui Paulo int wpa_tdls_send_discovery_request(struct wpa_sm *sm, const u8 *addr);
574f05cddf9SRui Paulo int wpa_tdls_init(struct wpa_sm *sm);
5755b9c547cSRui Paulo void wpa_tdls_teardown_peers(struct wpa_sm *sm);
576f05cddf9SRui Paulo void wpa_tdls_deinit(struct wpa_sm *sm);
577f05cddf9SRui Paulo void wpa_tdls_enable(struct wpa_sm *sm, int enabled);
5785b9c547cSRui Paulo void wpa_tdls_disable_unreachable_link(struct wpa_sm *sm, const u8 *addr);
5795b9c547cSRui Paulo const char * wpa_tdls_get_link_status(struct wpa_sm *sm, const u8 *addr);
580f05cddf9SRui Paulo int wpa_tdls_is_external_setup(struct wpa_sm *sm);
5815b9c547cSRui Paulo int wpa_tdls_enable_chan_switch(struct wpa_sm *sm, const u8 *addr,
5825b9c547cSRui Paulo u8 oper_class,
5835b9c547cSRui Paulo struct hostapd_freq_params *freq_params);
5845b9c547cSRui Paulo int wpa_tdls_disable_chan_switch(struct wpa_sm *sm, const u8 *addr);
585*a90b9d01SCy Schubert int wpa_tdls_process_discovery_response(struct wpa_sm *sm, const u8 *addr,
586*a90b9d01SCy Schubert const u8 *buf, size_t len);
587780fb4a2SCy Schubert #ifdef CONFIG_TDLS_TESTING
588780fb4a2SCy Schubert extern unsigned int tdls_testing;
589780fb4a2SCy Schubert #endif /* CONFIG_TDLS_TESTING */
590780fb4a2SCy Schubert
591f05cddf9SRui Paulo
592f05cddf9SRui Paulo int wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf);
593780fb4a2SCy Schubert void wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf);
594*a90b9d01SCy Schubert void wpa_sm_set_test_eapol_m2_elems(struct wpa_sm *sm, struct wpabuf *buf);
595*a90b9d01SCy Schubert void wpa_sm_set_test_eapol_m4_elems(struct wpa_sm *sm, struct wpabuf *buf);
59685732ac8SCy Schubert const u8 * wpa_sm_get_anonce(struct wpa_sm *sm);
59785732ac8SCy Schubert unsigned int wpa_sm_get_key_mgmt(struct wpa_sm *sm);
59885732ac8SCy Schubert
59985732ac8SCy Schubert struct wpabuf * fils_build_auth(struct wpa_sm *sm, int dh_group, const u8 *md);
60085732ac8SCy Schubert int fils_process_auth(struct wpa_sm *sm, const u8 *bssid, const u8 *data,
60185732ac8SCy Schubert size_t len);
60285732ac8SCy Schubert struct wpabuf * fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek,
60385732ac8SCy Schubert size_t *kek_len, const u8 **snonce,
60485732ac8SCy Schubert const u8 **anonce,
60585732ac8SCy Schubert const struct wpabuf **hlp,
60685732ac8SCy Schubert unsigned int num_hlp);
60785732ac8SCy Schubert int fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len);
60885732ac8SCy Schubert
60985732ac8SCy Schubert struct wpabuf * owe_build_assoc_req(struct wpa_sm *sm, u16 group);
61085732ac8SCy Schubert int owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid,
61185732ac8SCy Schubert const u8 *resp_ies, size_t resp_ies_len);
61285732ac8SCy Schubert
61385732ac8SCy Schubert void wpa_sm_set_reset_fils_completed(struct wpa_sm *sm, int set);
61485732ac8SCy Schubert void wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id);
6154bc52338SCy Schubert void wpa_sm_set_dpp_z(struct wpa_sm *sm, const struct wpabuf *z);
616*a90b9d01SCy Schubert void wpa_pasn_sm_set_caps(struct wpa_sm *sm, unsigned int flags2);
617*a90b9d01SCy Schubert struct rsn_pmksa_cache * wpa_sm_get_pmksa_cache(struct wpa_sm *sm);
618*a90b9d01SCy Schubert
619*a90b9d01SCy Schubert void wpa_sm_set_cur_pmksa(struct wpa_sm *sm,
620*a90b9d01SCy Schubert struct rsn_pmksa_cache_entry *entry);
621*a90b9d01SCy Schubert const u8 * wpa_sm_get_auth_addr(struct wpa_sm *sm);
622*a90b9d01SCy Schubert void wpa_sm_set_driver_bss_selection(struct wpa_sm *sm,
623*a90b9d01SCy Schubert bool driver_bss_selection);
624f05cddf9SRui Paulo
62539beb93cSSam Leffler #endif /* WPA_H */
626