Home | History | Annotate | Download | only in rsn_supp

Lines Matching refs:ie

2  * wpa_supplicant - WPA/RSN IE and KDE processing
72 /* No WPA IE - fail silently */
77 wpa_printf(MSG_DEBUG, "%s: ie len too short %lu",
88 wpa_printf(MSG_DEBUG, "%s: malformed ie or unknown version",
101 wpa_printf(MSG_DEBUG, "%s: ie length mismatch, %u too much",
112 wpa_printf(MSG_DEBUG, "%s: ie count botch (pairwise), "
122 wpa_printf(MSG_DEBUG, "%s: ie too short (for key mgmt)",
133 wpa_printf(MSG_DEBUG, "%s: ie count botch (key mgmt), "
143 wpa_printf(MSG_DEBUG, "%s: ie too short (for capabilities)",
155 wpa_printf(MSG_DEBUG, "%s: ie has %u trailing bytes - ignored",
164 * wpa_parse_wpa_ie - Parse WPA/RSN IE
165 * @wpa_ie: Pointer to WPA or RSN IE
166 * @wpa_ie_len: Length of the WPA/RSN IE
170 * Parse the contents of WPA or RSN IE and write the parsed data into data.
267 wpa_printf(MSG_DEBUG, "RSN: Too short IE buffer (%lu bytes)",
376 * wpa_gen_wpa_ie - Generate WPA/RSN IE based on current security policy
378 * @wpa_ie: Pointer to memory area for the generated WPA/RSN IE
379 * @wpa_ie_len: Maximum length of the generated WPA/RSN IE
380 * Returns: Length of the generated WPA/RSN IE or -1 on failure
400 * @pos: Pointer to the IE header
402 * @ie: Pointer to parsed IE data
406 struct wpa_eapol_ie_parse *ie)
415 ie->wpa_ie = pos;
416 ie->wpa_ie_len = pos[1] + 2;
423 ie->pmkid = pos + 2 + RSN_SELECTOR_LEN;
429 ie->gtk = pos + 2 + RSN_SELECTOR_LEN;
430 ie->gtk_len = pos[1] - RSN_SELECTOR_LEN;
436 ie->mac_addr = pos + 2 + RSN_SELECTOR_LEN;
437 ie->mac_addr_len = pos[1] - RSN_SELECTOR_LEN;
444 ie->smk = pos + 2 + RSN_SELECTOR_LEN;
445 ie->smk_len = pos[1] - RSN_SELECTOR_LEN;
451 ie->nonce = pos + 2 + RSN_SELECTOR_LEN;
452 ie->nonce_len = pos[1] - RSN_SELECTOR_LEN;
458 ie->lifetime = pos + 2 + RSN_SELECTOR_LEN;
459 ie->lifetime_len = pos[1] - RSN_SELECTOR_LEN;
465 ie->error = pos + 2 + RSN_SELECTOR_LEN;
466 ie->error_len = pos[1] - RSN_SELECTOR_LEN;
474 ie->igtk = pos + 2 + RSN_SELECTOR_LEN;
475 ie->igtk_len = pos[1] - RSN_SELECTOR_LEN;
488 * @ie: Pointer to parsed IE data
492 struct wpa_eapol_ie_parse *ie)
497 os_memset(ie, 0, sizeof(*ie));
506 "underflow (ie=%d len=%d pos=%d)",
514 ie->rsn_ie = pos;
515 ie->rsn_ie_len = pos[1] + 2;
518 ie->mdie = pos;
519 ie->mdie_len = pos[1] + 2;
522 ret = wpa_parse_generic(pos, end, ie);
531 "Key Data IE", pos, 2 + pos[1]);