Lines Matching refs:parse
378 struct wpa_ft_ies parse;
410 if (wpa_ft_parse_ies(ies, ies_len, &parse) < 0) {
411 wpa_printf(MSG_DEBUG, "FT: Failed to parse IEs");
415 mdie = (struct rsn_mdie *) parse.mdie;
416 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) ||
423 ftie = (struct rsn_ftie *) parse.ftie;
424 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) {
438 if (parse.r0kh_id == NULL) {
443 if (parse.r0kh_id_len != sm->r0kh_id_len ||
444 os_memcmp(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) {
448 parse.r0kh_id, parse.r0kh_id_len);
454 if (parse.r1kh_id == NULL) {
459 if (parse.rsn_pmkid == NULL ||
460 os_memcmp(parse.rsn_pmkid, sm->pmk_r0_name, WPA_PMK_NAME_LEN)) {
466 os_memcpy(sm->r1kh_id, parse.r1kh_id, FT_R1KH_ID_LEN);
489 parse.mdie ? parse.mdie - 2 : NULL);
659 struct wpa_ft_ies parse;
674 if (wpa_ft_parse_ies(ies, ies_len, &parse) < 0) {
675 wpa_printf(MSG_DEBUG, "FT: Failed to parse IEs");
679 mdie = (struct rsn_mdie *) parse.mdie;
680 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) ||
687 ftie = (struct rsn_ftie *) parse.ftie;
688 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) {
711 if (parse.r0kh_id == NULL) {
716 if (parse.r0kh_id_len != sm->r0kh_id_len ||
717 os_memcmp(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0) {
721 parse.r0kh_id, parse.r0kh_id_len);
727 if (parse.r1kh_id == NULL) {
732 if (os_memcmp(parse.r1kh_id, sm->r1kh_id, FT_R1KH_ID_LEN) != 0) {
738 if (parse.rsn_pmkid == NULL ||
739 os_memcmp(parse.rsn_pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN)) {
741 "RSNIE (pmkid=%d)", !!parse.rsn_pmkid);
746 if (parse.ric)
747 count += ieee802_11_ie_count(parse.ric, parse.ric_len);
756 parse.mdie - 2, parse.mdie_len + 2,
757 parse.ftie - 2, parse.ftie_len + 2,
758 parse.rsn - 2, parse.rsn_len + 2,
759 parse.ric, parse.ric_len,
772 if (wpa_ft_process_gtk_subelem(sm, parse.gtk, parse.gtk_len) < 0)
776 if (wpa_ft_process_igtk_subelem(sm, parse.igtk, parse.igtk_len) < 0)
788 if (parse.ric) {
790 parse.ric, parse.ric_len);
791 /* TODO: parse response and inform driver about results */