HomeSort by: relevance | last modified time | path
    Searched refs:wpa_sm (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/external/bsd/wpa/dist/src/rsn_supp/
preauth.h 16 void pmksa_candidate_free(struct wpa_sm *sm);
17 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
19 void rsn_preauth_deinit(struct wpa_sm *sm);
20 int rsn_preauth_scan_results(struct wpa_sm *sm);
21 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
23 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
25 void rsn_preauth_candidate_process(struct wpa_sm *sm);
26 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
28 int rsn_preauth_in_progress(struct wpa_sm *sm);
32 static inline void pmksa_candidate_free(struct wpa_sm *sm
    [all...]
wpa_ie.h 12 struct wpa_sm;
14 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len);
15 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len);
16 u16 rsn_supp_capab(struct wpa_sm *sm);
wpa.h 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)
    [all...]
wpa_i.h 23 * struct wpa_sm - Internal WPA state machine data
25 struct wpa_sm { struct
235 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state)
241 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm)
247 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code)
253 static inline int wpa_sm_set_key(struct wpa_sm *sm, int link_id,
264 static inline void wpa_sm_reconnect(struct wpa_sm *sm)
270 static inline void * wpa_sm_get_network_ctx(struct wpa_sm *sm)
276 static inline int wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid)
282 static inline int wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest
    [all...]
pmksa_cache.h 74 void *ctx, struct wpa_sm *sm);
91 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm);
92 void pmksa_cache_clear_current(struct wpa_sm *sm);
93 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
preauth.c 37 void pmksa_candidate_free(struct wpa_sm *sm)
65 struct wpa_sm *sm = ctx;
88 struct wpa_sm *sm = ctx;
132 struct wpa_sm *sm = eloop_ctx;
144 struct wpa_sm *sm = ctx;
181 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
284 void rsn_preauth_deinit(struct wpa_sm *sm)
311 void rsn_preauth_candidate_process(struct wpa_sm *sm)
378 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
458 int rsn_preauth_scan_results(struct wpa_sm *sm
    [all...]
tdls.c 86 static void wpa_tdls_peer_free(struct wpa_sm *sm, struct wpa_tdls_peer *peer);
87 static void wpa_tdls_disable_peer_link(struct wpa_sm *sm,
89 static int wpa_tdls_send_teardown(struct wpa_sm *sm, const u8 *addr,
169 static const u8 * wpa_tdls_get_link_bssid(struct wpa_sm *sm, int link_id)
177 static int wpa_tdls_get_privacy(struct wpa_sm *sm)
195 static int wpa_tdls_del_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer)
208 static int wpa_tdls_set_key(struct wpa_sm *sm, struct wpa_tdls_peer *peer)
259 static int wpa_tdls_send_tpk_msg(struct wpa_sm *sm, const u8 *dst,
271 static int wpa_tdls_tpk_send(struct wpa_sm *sm, const u8 *dest, u8 action_code,
340 static int wpa_tdls_do_teardown(struct wpa_sm *sm, struct wpa_tdls_peer *peer
    [all...]
wpa.c 91 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk,
220 void wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise)
293 static void wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm)
311 static int wpa_supplicant_get_pmk(struct wpa_sm *sm,
525 int wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst,
683 static int wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr,
740 static int wpa_handle_ext_key_id(struct wpa_sm *sm,
798 static size_t wpa_mlo_link_kde_len(struct wpa_sm *sm)
812 static u8 * wpa_mlo_link_kde(struct wpa_sm *sm, u8 *pos)
832 static bool is_valid_ap_mld_mac_kde(struct wpa_sm *sm, const u8 *mac_kde
    [all...]
wpa_ft.c 29 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid);
31 static void wpa_ft_pasn_store_r1kh(struct wpa_sm *sm, const u8 *bssid)
37 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr,
112 int wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len)
206 static u8 * wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len,
492 static int wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid)
530 int wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie)
553 int wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len,
578 const u8 * wpa_sm_get_ft_md(struct wpa_sm *sm)
584 int wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len
    [all...]
wpa_ie.c 108 u16 rsn_supp_capab(struct wpa_sm *sm)
132 struct wpa_sm *sm)
343 int wpa_gen_wpa_ie(struct wpa_sm *sm, u8 *wpa_ie, size_t wpa_ie_len)
366 int wpa_gen_rsnxe(struct wpa_sm *sm, u8 *rsnxe, size_t rsnxe_len)
pmksa_cache.c 25 struct wpa_sm *sm; /* TODO: get rid of this reference(?) */
609 struct rsn_pmksa_cache_entry * pmksa_cache_get_current(struct wpa_sm *sm)
621 void pmksa_cache_clear_current(struct wpa_sm *sm)
643 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid,
806 void *ctx, struct wpa_sm *sm)
864 void *ctx, struct wpa_sm *sm)
884 pmksa_cache_get_current(struct wpa_sm *sm)
921 void pmksa_cache_clear_current(struct wpa_sm *sm)
926 int pmksa_cache_set_current(struct wpa_sm *sm, const u8 *pmkid, const u8 *bssid,
  /src/external/bsd/wpa/dist/src/ap/
ap_mlme.c 189 if (sta->wpa_sm)
190 wpa_remove_ptk(sta->wpa_sm);
drv_callbacks.c 73 p = hostapd_eid_assoc_fils_session(sta->wpa_sm, p,
88 wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FILS);
507 if (sta->wpa_sm == NULL)
508 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth,
511 if (sta->wpa_sm == NULL) {
520 wpa_auth_set_ml_info(sta->wpa_sm,
525 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm,
596 if (wpa_auth_uses_mfp(sta->wpa_sm))
603 status = wpa_ft_validate_reassoc(sta->wpa_sm, req_ies,
669 if (sta->wpa_sm == NULL
    [all...]
ieee802_11.c 396 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH);
968 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH);
1928 if (!sta->wpa_sm)
1929 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr,
1931 if (!sta->wpa_sm) {
1938 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm,
1982 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) {
1985 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp);
2024 if (fils_pmkid_erp(wpa_auth_sta_key_mgmt(sta->wpa_sm),
2138 if (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm))) {
    [all...]
tkip_countermeasures.c 82 wpa_auth_sta_local_mic_failure_report(sta->wpa_sm);
wnm_ap.c 112 wpa_auth_uses_ocv(sta->wpa_sm)) {
174 if (!wpa_auth_uses_mfp(sta->wpa_sm) ||
179 gtk_elem_len = wpa_wnmsleep_gtk_subelem(sta->wpa_sm, pos);
183 res = wpa_wnmsleep_igtk_subelem(sta->wpa_sm, pos);
193 res = wpa_wnmsleep_bigtk_subelem(sta->wpa_sm, pos);
242 wpa_set_wnmsleep(sta->wpa_sm, 1);
254 wpa_set_wnmsleep(sta->wpa_sm, 0);
257 if (!wpa_auth_uses_mfp(sta->wpa_sm) ||
259 wpa_wnmsleep_rekey_gtk(sta->wpa_sm);
338 sta && wpa_auth_uses_ocv(sta->wpa_sm)) {
    [all...]
ieee802_1x.c 79 if (wpa_auth_pairwise_set(sta->wpa_sm))
444 ver = wpa_auth_sta_wpa_version(sta->wpa_sm);
445 val = wpa_auth_get_pairwise(sta->wpa_sm);
468 val = wpa_auth_sta_key_mgmt(sta->wpa_sm);
573 sta->wpa_sm &&
574 (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm)) ||
586 if ((hapd->conf->wpa || hapd->conf->osen) && sta->wpa_sm &&
1057 if (sta->wpa_sm) {
1059 if (wpa_auth_sta_get_pmksa(sta->wpa_sm))
1104 return !wpa_auth_pairwise_set(sta->wpa_sm);
    [all...]
sta_info.c 219 lsta->wpa_sm = NULL;
344 wpa_auth_sta_deinit(sta->wpa_sm);
352 wpa_release_link_auth_ref(sta->wpa_sm, hapd->mld_link_id);
354 wpa_auth_sta_deinit(sta->wpa_sm);
365 * sta->wpa_sm->group needs to be released before so that
945 wpa_auth_sta_deinit(sta->wpa_sm);
949 wpa_auth_sta_deinit(sta->wpa_sm);
952 sta->wpa_sm = NULL;
1325 if (wpa_auth_sta_set_vlan(sta->wpa_sm, sta->vlan_id) < 0)
1450 pmk = wpa_auth_get_pmk(sta->wpa_sm, &pmk_len)
    [all...]
wpa_auth_glue.c 366 if (sta && wpa_auth_uses_sae(sta->wpa_sm)) {
383 sa = wpa_auth_sta_get_pmksa(sta->wpa_sm);
594 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
1067 if (sta == NULL || sta->wpa_sm == NULL)
1115 if (sta->wpa_sm) {
1117 return sta->wpa_sm;
1120 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, NULL);
1121 if (sta->wpa_sm == NULL) {
1127 return sta->wpa_sm;
    [all...]
ieee802_11_shared.c 80 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) {
175 if (wpa_auth_uses_ocv(sta->wpa_sm)) {
277 if (sta && wpa_auth_uses_ocv(sta->wpa_sm)) {
300 if (get_sta_tx_parameters(sta->wpa_sm,
ieee802_11_auth.c 608 if (!sta || !sta->wpa_sm) {
620 wpa_auth_sta_radius_psk_resp(sta->wpa_sm, success);
sta_info.h 192 struct wpa_state_machine *wpa_sm; member in struct:sta_info
  /src/external/bsd/wpa/dist/wpa_supplicant/
ibss_rsn.h 35 struct wpa_sm *supp;
mesh_rsn.c 155 if (sta->wpa_sm && cb(sta->wpa_sm, cb_ctx))
393 if (!sta->wpa_sm)
394 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth,
396 if (!sta->wpa_sm) {
406 wpa_auth_pmksa_set_to_sm(pmksa, sta->wpa_sm, hapd->wpa_auth,
  /src/external/bsd/wpa/dist/hostapd/
ctrl_iface.c 1432 pmk = wpa_auth_get_pmk(sta->wpa_sm, &pmk_len);
2288 if (!sta || !sta->wpa_sm)
2302 return wpa_auth_resend_m1(sta->wpa_sm,
2318 if (!sta || !sta->wpa_sm)
2332 return wpa_auth_resend_m3(sta->wpa_sm,
2348 if (!sta || !sta->wpa_sm)
2364 return wpa_auth_resend_group_m1(sta->wpa_sm,
2378 if (!sta || !sta->wpa_sm)
2381 return wpa_auth_rekey_ptk(hapd->wpa_auth, sta->wpa_sm);
2410 if (!sta || !sta->wpa_sm) {
    [all...]

Completed in 47 milliseconds

1 2