sta->rsnxe_len = elems.rsnxe_len;
}
+ if (elems.owe_dh && elems.owe_dh_len >= 2) {
+ sta->owe_group = WPA_GET_LE16(elems.owe_dh);
+ wpa_printf(MSG_DEBUG, "OWE using group %u", sta->owe_group);
+ }
+
sta->assocreq_capab_info = le_to_host16(mgmt->u.assoc_req.capab_info);
sta->assocreq_listen_int =
le_to_host16(mgmt->u.assoc_req.listen_interval);
struct wlantest_bss *bss;
struct wlantest_sta *sta;
u16 capab, status, aid;
+ struct ieee802_11_elems elems;
const u8 *ies;
size_t ies_len;
struct wpa_ft_ies parse;
}
}
+ if (ieee802_11_parse_elems(ies, ies_len, &elems, 0) == ParseFailed) {
+ add_note(wt, MSG_INFO,
+ "Failed to parse IEs in AssocResp from " MACSTR,
+ MAC2STR(mgmt->sa));
+ }
+
if (status == WLAN_STATUS_ASSOC_REJECTED_TEMPORARILY) {
- struct ieee802_11_elems elems;
- if (ieee802_11_parse_elems(ies, ies_len, &elems, 0) ==
- ParseFailed) {
- add_note(wt, MSG_INFO, "Failed to parse IEs in "
- "AssocResp from " MACSTR,
- MAC2STR(mgmt->sa));
- } else if (elems.timeout_int == NULL ||
- elems.timeout_int[0] !=
- WLAN_TIMEOUT_ASSOC_COMEBACK) {
+ if (!elems.timeout_int ||
+ elems.timeout_int[0] != WLAN_TIMEOUT_ASSOC_COMEBACK) {
add_note(wt, MSG_INFO, "No valid Timeout Interval IE "
"with Assoc Comeback time in AssocResp "
"(status=30) from " MACSTR,
if (parse.r1kh_id)
os_memcpy(bss->r1kh_id, parse.r1kh_id, FT_R1KH_ID_LEN);
}
+
+ if (elems.owe_dh && elems.owe_dh_len >= 2) {
+ sta->owe_group = WPA_GET_LE16(elems.owe_dh);
+ wpa_printf(MSG_DEBUG, "OWE using group %u", sta->owe_group);
+ }
}
sta->rsnxe_len = elems.rsnxe_len;
}
+ if (elems.owe_dh && elems.owe_dh_len >= 2) {
+ sta->owe_group = WPA_GET_LE16(elems.owe_dh);
+ wpa_printf(MSG_DEBUG, "OWE using group %u", sta->owe_group);
+ }
+
sta->assocreq_capab_info =
le_to_host16(mgmt->u.reassoc_req.capab_info);
sta->assocreq_listen_int =
process_bigtk_subelem(wt, bss, sta, kek, kek_len,
parse.bigtk, parse.bigtk_len);
}
+
+ if (elems.owe_dh && elems.owe_dh_len >= 2) {
+ sta->owe_group = WPA_GET_LE16(elems.owe_dh);
+ wpa_printf(MSG_DEBUG, "OWE using group %u", sta->owe_group);
+ }
}