Lines Matching refs:elems
53 struct ieee802_11_elems elems; in hostapd_notify_assoc_fils_finish() local
65 sta->fils_pending_assoc_req_len, &elems, in hostapd_notify_assoc_fils_finish()
67 !elems.fils_session) { in hostapd_notify_assoc_fils_finish()
74 elems.fils_session, in hostapd_notify_assoc_fils_finish()
148 struct ieee802_11_elems elems; in hostapd_update_sta_links_status() local
158 if (ieee802_11_parse_elems(resp_ies, resp_ies_len, &elems, 0) == in hostapd_update_sta_links_status()
165 mlebuf = ieee802_11_defrag(elems.basic_mle, elems.basic_mle_len, true); in hostapd_update_sta_links_status()
259 struct ieee802_11_elems elems; in hostapd_notif_assoc() local
302 if (ieee802_11_parse_elems(req_ies, req_ies_len, &elems, 0) == in hostapd_notif_assoc()
308 if (elems.wps_ie) { in hostapd_notif_assoc()
309 ie = elems.wps_ie - 2; in hostapd_notif_assoc()
310 ielen = elems.wps_ie_len + 2; in hostapd_notif_assoc()
312 } else if (elems.rsn_ie) { in hostapd_notif_assoc()
313 ie = elems.rsn_ie - 2; in hostapd_notif_assoc()
314 ielen = elems.rsn_ie_len + 2; in hostapd_notif_assoc()
316 } else if (elems.wpa_ie) { in hostapd_notif_assoc()
317 ie = elems.wpa_ie - 2; in hostapd_notif_assoc()
318 ielen = elems.wpa_ie_len + 2; in hostapd_notif_assoc()
321 } else if (elems.osen) { in hostapd_notif_assoc()
322 ie = elems.osen - 2; in hostapd_notif_assoc()
323 ielen = elems.osen_len + 2; in hostapd_notif_assoc()
374 if (!elems.basic_mle || in hostapd_notif_assoc()
375 hostapd_process_ml_assoc_req(hapd, &elems, sta) != in hostapd_notif_assoc()
416 if (elems.p2p) { in hostapd_notif_assoc()
426 if (elems.ht_capabilities && in hostapd_notif_assoc()
431 elems.ht_capabilities; in hostapd_notif_assoc()
439 check_ext_capab(hapd, sta, elems.ext_capab, elems.ext_capab_len); in hostapd_notif_assoc()
443 if (elems.hs20 && elems.hs20_len > 4) { in hostapd_notif_assoc()
444 sta->hs20_ie = wpabuf_alloc_copy(elems.hs20 + 4, in hostapd_notif_assoc()
445 elems.hs20_len - 4); in hostapd_notif_assoc()
450 if (elems.roaming_cons_sel) in hostapd_notif_assoc()
452 elems.roaming_cons_sel + 4, in hostapd_notif_assoc()
453 elems.roaming_cons_sel_len - 4); in hostapd_notif_assoc()
461 sta->mb_ies = mb_ies_by_info(&elems.mb_ies); in hostapd_notif_assoc()
466 mbo_ap_check_sta_assoc(hapd, sta, &elems); in hostapd_notif_assoc()
468 ap_copy_sta_supp_op_classes(sta, elems.supp_op_classes, in hostapd_notif_assoc()
469 elems.supp_op_classes_len); in hostapd_notif_assoc()
516 wpa_auth_set_rsn_selection(sta->wpa_sm, elems.rsn_selection, in hostapd_notif_assoc()
517 elems.rsn_selection_len); in hostapd_notif_assoc()
530 elems.rsnxe ? elems.rsnxe - 2 : NULL, in hostapd_notif_assoc()
531 elems.rsnxe ? elems.rsnxe_len + 2 : 0, in hostapd_notif_assoc()
532 elems.mdie, elems.mdie_len, in hostapd_notif_assoc()
533 elems.owe_dh, elems.owe_dh_len, NULL); in hostapd_notif_assoc()
622 ieee802_11_rsnx_capab_len(elems.rsnxe, elems.rsnxe_len, in hostapd_notif_assoc()
662 if (elems.osen == NULL) { in hostapd_notif_assoc()
680 elems.osen - 2, elems.osen_len + 2) < 0) in hostapd_notif_assoc()
690 elems.mbo && sta->cell_capa && !(sta->flags & WLAN_STA_MFP) && in hostapd_notif_assoc()
701 !elems.rsnxe); in hostapd_notif_assoc()
776 elems.fils_session, in hostapd_notif_assoc()
787 elems.owe_dh) { in hostapd_notif_assoc()
792 elems.owe_dh, elems.owe_dh_len, in hostapd_notif_assoc()
818 elems.owe_dh) { in hostapd_notif_assoc()
829 if (dpp_pfs_process(sta->dpp_pfs, elems.owe_dh, in hostapd_notif_assoc()
830 elems.owe_dh_len) < 0) { in hostapd_notif_assoc()
843 if (elems.rrm_enabled && in hostapd_notif_assoc()
844 elems.rrm_enabled_len >= sizeof(sta->rrm_enabled_capa)) in hostapd_notif_assoc()
845 os_memcpy(sta->rrm_enabled_capa, elems.rrm_enabled, in hostapd_notif_assoc()
2298 struct ieee802_11_elems elems; in hostapd_notif_update_dh_ie() local
2313 if (ieee802_11_parse_elems(ie, ie_len, &elems, 1) == ParseFailed) { in hostapd_notif_update_dh_ie()
2319 status = owe_validate_request(hapd, peer, elems.rsn_ie, in hostapd_notif_update_dh_ie()
2320 elems.rsn_ie_len, in hostapd_notif_update_dh_ie()
2321 elems.owe_dh, elems.owe_dh_len); in hostapd_notif_update_dh_ie()
2359 status = owe_process_rsn_ie(hapd, sta, elems.rsn_ie, in hostapd_notif_update_dh_ie()
2360 elems.rsn_ie_len, elems.owe_dh, in hostapd_notif_update_dh_ie()
2361 elems.owe_dh_len, link_addr); in hostapd_notif_update_dh_ie()