Lines Matching refs:wpa_sm

396 	wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH);  in auth_shared_key()
968 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in sae_accept_sta()
1928 if (!sta->wpa_sm) in handle_auth_fils()
1929 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, in handle_auth_fils()
1931 if (!sta->wpa_sm) { in handle_auth_fils()
1938 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in handle_auth_fils()
1982 if (pmksa && wpa_auth_sta_key_mgmt(sta->wpa_sm) != pmksa->akmp) { in handle_auth_fils()
1985 wpa_auth_sta_key_mgmt(sta->wpa_sm), pmksa->akmp); in handle_auth_fils()
2024 if (fils_pmkid_erp(wpa_auth_sta_key_mgmt(sta->wpa_sm), in handle_auth_fils()
2138 if (wpa_key_mgmt_ft(wpa_auth_sta_key_mgmt(sta->wpa_sm))) { in prepare_auth_resp_fils()
2142 res = wpa_auth_write_fte(hapd->wpa_auth, sta->wpa_sm, in prepare_auth_resp_fils()
2175 if (fils_rmsk_to_pmk(wpa_auth_sta_key_mgmt(sta->wpa_sm), in prepare_auth_resp_fils()
2211 wpa_auth_add_fils_pmk_pmkid(sta->wpa_sm, pmk, pmk_len, in prepare_auth_resp_fils()
2219 wpa_auth_sta_key_mgmt(sta->wpa_sm), in prepare_auth_resp_fils()
2238 if (fils_auth_pmk_to_ptk(sta->wpa_sm, pmk, pmk_len, in prepare_auth_resp_fils()
2285 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in handle_auth_fils_finish()
3235 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in handle_auth()
3262 if (sta->wpa_sm == NULL) in handle_auth()
3263 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in handle_auth()
3265 if (sta->wpa_sm == NULL) { in handle_auth()
3271 wpa_ft_process_auth(sta->wpa_sm, in handle_auth()
3284 if (sta->wpa_sm == NULL) in handle_auth()
3285 sta->wpa_sm = in handle_auth()
3288 if (sta->wpa_sm == NULL) { in handle_auth()
3622 if (wpa_auth_sta_get_pmksa(sta->wpa_sm)) { in owe_process_assoc_req()
3821 if (!sta->wpa_sm) in owe_process_rsn_ie()
3822 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, sta->addr, in owe_process_rsn_ie()
3824 if (!sta->wpa_sm) { in owe_process_rsn_ie()
3832 wpa_auth_set_ml_info(sta->wpa_sm, in owe_process_rsn_ie()
3837 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in owe_process_rsn_ie()
3846 owe_buf = wpa_auth_write_assoc_resp_owe(sta->wpa_sm, ie, sizeof(ie), in owe_process_rsn_ie()
4097 bool init = !sta->wpa_sm; in __check_assoc_ies()
4103 if (!sta->wpa_sm) { in __check_assoc_ies()
4108 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in __check_assoc_ies()
4112 if (!sta->wpa_sm) { in __check_assoc_ies()
4124 wpa_auth_set_ml_info(sta->wpa_sm, in __check_assoc_ies()
4130 wpa_auth_set_auth_alg(sta->wpa_sm, sta->auth_alg); in __check_assoc_ies()
4131 res = wpa_validate_wpa_ie(hapd->wpa_auth, sta->wpa_sm, in __check_assoc_ies()
4140 assoc_sta ? assoc_sta->wpa_sm : NULL); in __check_assoc_ies()
4145 if (wpa_auth_uses_mfp(sta->wpa_sm)) in __check_assoc_ies()
4160 resp = wpa_ft_validate_reassoc(sta->wpa_sm, ies, in __check_assoc_ies()
4170 if (wpa_auth_uses_sae(sta->wpa_sm) && sta->sae && in __check_assoc_ies()
4172 wpa_auth_add_sae_pmkid(sta->wpa_sm, sta->sae->pmkid); in __check_assoc_ies()
4174 if (wpa_auth_uses_sae(sta->wpa_sm) && in __check_assoc_ies()
4177 sa = wpa_auth_sta_get_pmksa(sta->wpa_sm); in __check_assoc_ies()
4186 } else if (wpa_auth_uses_sae(sta->wpa_sm) && in __check_assoc_ies()
4189 wpa_auth_uses_ft_sae(sta->wpa_sm))) { in __check_assoc_ies()
4210 wpa_auth_sta_key_mgmt(sta->wpa_sm) == WPA_KEY_MGMT_OWE && in __check_assoc_ies()
4226 hapd->conf->dpp_netaccesskey && sta->wpa_sm && in __check_assoc_ies()
4227 wpa_auth_sta_key_mgmt(sta->wpa_sm) == WPA_KEY_MGMT_DPP && in __check_assoc_ies()
4247 wpa_auth_set_dpp_z(sta->wpa_sm, sta->dpp_pfs ? in __check_assoc_ies()
4253 wpa_auth_get_pairwise(sta->wpa_sm) == WPA_CIPHER_TKIP) { in __check_assoc_ies()
4263 sta->wpa_sm, in __check_assoc_ies()
4279 if (sta->wpa_sm == NULL) in __check_assoc_ies()
4280 sta->wpa_sm = wpa_auth_sta_init(hapd->wpa_auth, in __check_assoc_ies()
4282 if (sta->wpa_sm == NULL) { in __check_assoc_ies()
4287 if (wpa_validate_osen(hapd->wpa_auth, sta->wpa_sm, in __check_assoc_ies()
4292 wpa_auth_sta_no_wpa(sta->wpa_sm); in __check_assoc_ies()
4306 if (release >= 2 && !wpa_auth_uses_mfp(sta->wpa_sm) && in __check_assoc_ies()
4347 if (wpa_auth_uses_ocv(sta->wpa_sm) && in __check_assoc_ies()
4362 if (get_sta_tx_parameters(sta->wpa_sm, in __check_assoc_ies()
4370 if (wpa_auth_uses_ocv(sta->wpa_sm) == 2 && in __check_assoc_ies()
4375 wpa_auth_set_ocv(sta->wpa_sm, 0); in __check_assoc_ies()
4589 wpa_auth_sta_deinit(sta->wpa_sm); in ieee80211_ml_process_link()
4590 sta->wpa_sm = origin_sta->wpa_sm; in ieee80211_ml_process_link()
4765 wpa_auth_sta_ft_tk_already_set(sta->wpa_sm), in add_associated_sta()
4766 wpa_auth_sta_fils_tk_already_set(sta->wpa_sm)); in add_associated_sta()
4771 (!wpa_auth_sta_ft_tk_already_set(sta->wpa_sm) && in add_associated_sta()
4772 !wpa_auth_sta_fils_tk_already_set(sta->wpa_sm)))) { in add_associated_sta()
4774 wpa_auth_sm_event(sta->wpa_sm, WPA_DRV_STA_REMOVED); in add_associated_sta()
4919 p = wpa_sm_write_assoc_resp_ies(sta->wpa_sm, p, in send_assoc_resp()
4936 p = wpa_auth_write_assoc_resp_fils(sta->wpa_sm, p, in send_assoc_resp()
4944 p = wpa_auth_write_assoc_resp_owe(sta->wpa_sm, p, in send_assoc_resp()
5033 wpa_auth_sta_key_mgmt(sta->wpa_sm) == WPA_KEY_MGMT_OWE && in send_assoc_resp()
5034 !wpa_auth_sta_get_pmksa(sta->wpa_sm)) { in send_assoc_resp()
5057 wpa_auth_sta_key_mgmt(sta->wpa_sm) == WPA_KEY_MGMT_DPP) { in send_assoc_resp()
5151 send_len = fils_encrypt_assoc(sta->wpa_sm, buf, send_len, in send_assoc_resp()
5181 return wpa_auth_write_assoc_resp_owe(sta->wpa_sm, owe_buf, in owe_assoc_req_process()
5186 if (wpa_auth_sta_get_pmksa(sta->wpa_sm)) { in owe_assoc_req_process()
5188 owe_buf = wpa_auth_write_assoc_resp_owe(sta->wpa_sm, owe_buf, in owe_assoc_req_process()
5204 owe_buf = wpa_auth_write_assoc_resp_owe(sta->wpa_sm, owe_buf, in owe_assoc_req_process()
5480 wpa_auth_sm_event(sta->wpa_sm, WPA_AUTH); in handle_assoc()
5565 res = fils_decrypt_assoc(sta->wpa_sm, sta->fils_session, mgmt, in handle_assoc()
5777 wpa_auth_sm_event(sta->wpa_sm, WPA_DEAUTH); in hostapd_deauth_sta()
5800 wpa_auth_sm_event(sta->wpa_sm, WPA_DISASSOC); in hostapd_disassoc_sta()
5831 wpa_auth_sm_event(sta->wpa_sm, WPA_DEAUTH); in hostapd_disassoc_sta()
6045 wpa_ft_action_rx(sta->wpa_sm, (u8 *) &mgmt->u.action, in handle_action()
6665 wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC_FT); in handle_assoc_cb()
6667 wpa_auth_sm_event(sta->wpa_sm, WPA_ASSOC); in handle_assoc_cb()
6675 fils_set_tk(sta->wpa_sm) < 0) { in handle_assoc_cb()