Lines Matching refs:parse
2289 struct ieee802_11_elems parse;
2310 if (ieee802_11_parse_elems((u8 *) ies, ies_len, &parse, 1) ==
2312 wpa_printf(MSG_DEBUG, "FT: Failed to parse request IEs");
2318 if (parse.wmm_tspec) {
2321 if (parse.wmm_tspec_len + 2 < (int) sizeof(*tspec)) {
2323 "(%d)", (int) parse.wmm_tspec_len);
2336 os_memcpy(tspec, parse.wmm_tspec - 2, sizeof(*tspec));
2340 if (parse.wmm_tspec && sm->wpa_auth->conf.ap_mlme) {
2360 if (parse.wmm_tspec && !sm->wpa_auth->conf.ap_mlme) {
2425 struct wpa_ft_ies parse;
2575 if (wpa_ft_parse_ies(req_ies, req_ies_len, &parse, use_sha384) == 0
2576 && parse.ric) {
2577 pos = wpa_ft_process_ric(sm, pos, end, parse.ric,
2578 parse.ric_len);
2746 struct wpa_ft_ies *parse)
2753 key_mgmt = parse->key_mgmt & sm->wpa_auth->conf.wpa_key_mgmt;
2756 MACSTR, parse->key_mgmt, MAC2STR(sm->addr));
2773 ciphers = parse->pairwise_cipher & sm->wpa_auth->conf.rsn_pairwise;
2777 parse->pairwise_cipher, MAC2STR(sm->addr));
2869 struct wpa_ft_ies parse;
2889 if (wpa_ft_parse_ies(ies, ies_len, &parse, -1)) {
2890 wpa_printf(MSG_DEBUG, "FT: Failed to parse FT IEs");
2893 use_sha384 = wpa_key_mgmt_sha384(parse.key_mgmt);
2896 mdie = (struct rsn_mdie *) parse.mdie;
2897 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) ||
2908 ftie = (struct rsn_ftie_sha384 *) parse.ftie;
2909 if (!ftie || parse.ftie_len < sizeof(*ftie)) {
2918 ftie = (struct rsn_ftie *) parse.ftie;
2919 if (!ftie || parse.ftie_len < sizeof(*ftie)) {
2927 if (parse.r0kh_id == NULL) {
2933 parse.r0kh_id, parse.r0kh_id_len);
2934 os_memcpy(sm->r0kh_id, parse.r0kh_id, parse.r0kh_id_len);
2935 sm->r0kh_id_len = parse.r0kh_id_len;
2937 if (parse.rsn_pmkid == NULL) {
2942 if (wpa_ft_set_key_mgmt(sm, &parse) < 0)
2946 parse.rsn_pmkid, WPA_PMK_NAME_LEN);
2947 if (wpa_derive_pmk_r1_name(parse.rsn_pmkid,
2970 parse.r0kh_id, parse.r0kh_id_len,
2971 parse.rsn_pmkid,
2981 if (wpa_ft_pull_pmk_r1(sm, ies, ies_len, parse.rsn_pmkid) < 0) {
3043 ret = wpa_write_rsn_ie(conf, pos, end - pos, parse.rsn_pmkid);
3053 ret = wpa_write_ftie(conf, use_sha384, parse.r0kh_id, parse.r0kh_id_len,
3116 struct wpa_ft_ies parse;
3134 if (wpa_ft_parse_ies(ies, ies_len, &parse, use_sha384) < 0) {
3135 wpa_printf(MSG_DEBUG, "FT: Failed to parse FT IEs");
3139 if (parse.rsn == NULL) {
3144 if (parse.rsn_pmkid == NULL) {
3149 if (os_memcmp_const(parse.rsn_pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN)
3156 mdie = (struct rsn_mdie *) parse.mdie;
3157 if (mdie == NULL || parse.mdie_len < sizeof(*mdie) ||
3168 ftie = (struct rsn_ftie_sha384 *) parse.ftie;
3169 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) {
3181 ftie = (struct rsn_ftie *) parse.ftie;
3182 if (ftie == NULL || parse.ftie_len < sizeof(*ftie)) {
3212 if (parse.r0kh_id == NULL) {
3217 if (parse.r0kh_id_len != sm->r0kh_id_len ||
3218 os_memcmp_const(parse.r0kh_id, sm->r0kh_id, parse.r0kh_id_len) != 0)
3223 parse.r0kh_id, parse.r0kh_id_len);
3229 if (parse.r1kh_id == NULL) {
3234 if (os_memcmp_const(parse.r1kh_id, sm->wpa_auth->conf.r1_key_holder,
3239 parse.r1kh_id, FT_R1KH_ID_LEN);
3245 if (parse.rsn_pmkid == NULL ||
3246 os_memcmp_const(parse.rsn_pmkid, sm->pmk_r1_name, WPA_PMK_NAME_LEN))
3249 "RSNIE (pmkid=%d)", !!parse.rsn_pmkid);
3254 if (parse.ric)
3255 count += ieee802_11_ie_count(parse.ric, parse.ric_len);
3271 parse.mdie - 2, parse.mdie_len + 2,
3272 parse.ftie - 2, parse.ftie_len + 2,
3273 parse.rsn - 2, parse.rsn_len + 2,
3274 parse.ric, parse.ric_len,
3288 parse.mdie - 2, parse.mdie_len + 2);
3290 parse.ftie - 2, parse.ftie_len + 2);
3292 parse.rsn - 2, parse.rsn_len + 2);
3314 if (ocv_verify_tx_params(parse.oci, parse.oci_len, &ci,
3862 wpa_printf(MSG_DEBUG, "FT: Cannot parse vlan");