Lines Matching refs:ft
114 struct wpa_ft_ies ft; in wpa_sm_set_ft_params() local
130 if (wpa_ft_parse_ies(ies, ies_len, &ft, sm->key_mgmt, false) < 0) in wpa_sm_set_ft_params()
133 if (ft.mdie_len < MOBILITY_DOMAIN_ID_LEN + 1) { in wpa_sm_set_ft_params()
134 wpa_ft_parse_ies_free(&ft); in wpa_sm_set_ft_params()
139 ft.mdie, MOBILITY_DOMAIN_ID_LEN); in wpa_sm_set_ft_params()
140 os_memcpy(sm->mobility_domain, ft.mdie, MOBILITY_DOMAIN_ID_LEN); in wpa_sm_set_ft_params()
141 sm->mdie_ft_capab = ft.mdie[MOBILITY_DOMAIN_ID_LEN]; in wpa_sm_set_ft_params()
145 if (ft.r0kh_id) { in wpa_sm_set_ft_params()
147 ft.r0kh_id, ft.r0kh_id_len); in wpa_sm_set_ft_params()
148 os_memcpy(sm->r0kh_id, ft.r0kh_id, ft.r0kh_id_len); in wpa_sm_set_ft_params()
149 sm->r0kh_id_len = ft.r0kh_id_len; in wpa_sm_set_ft_params()
159 if (ft.r1kh_id) { in wpa_sm_set_ft_params()
161 ft.r1kh_id, FT_R1KH_ID_LEN); in wpa_sm_set_ft_params()
162 os_memcpy(sm->r1kh_id, ft.r1kh_id, FT_R1KH_ID_LEN); in wpa_sm_set_ft_params()
167 sm->assoc_resp_ies = os_malloc(ft.mdie_len + 2 + ft.ftie_len + 2); in wpa_sm_set_ft_params()
171 os_memcpy(pos, ft.mdie - 2, ft.mdie_len + 2); in wpa_sm_set_ft_params()
172 pos += ft.mdie_len + 2; in wpa_sm_set_ft_params()
174 if (ft.ftie) { in wpa_sm_set_ft_params()
175 os_memcpy(pos, ft.ftie - 2, ft.ftie_len + 2); in wpa_sm_set_ft_params()
176 pos += ft.ftie_len + 2; in wpa_sm_set_ft_params()
184 wpa_ft_parse_ies_free(&ft); in wpa_sm_set_ft_params()