Home | History | Annotate | Download | only in wpa_supplicant

Lines Matching refs:hdr

366 	const struct wpa_ie_hdr *hdr;
391 hdr = (const struct wpa_ie_hdr *) wpa_ie;
393 if (hdr->elem_id != GENERIC_INFO_ELEM ||
394 hdr->len != wpa_ie_len - 2 ||
395 os_memcmp(hdr->oui, WPA_OUI_TYPE, WPA_SELECTOR_LEN) != 0 ||
396 WPA_GET_LE16(hdr->version) != WPA_VERSION) {
402 pos = (const u8 *) (hdr + 1);
403 left = wpa_ie_len - sizeof(*hdr);
476 const struct rsn_ie_hdr *hdr;
506 hdr = (const struct rsn_ie_hdr *) rsn_ie;
508 if (hdr->elem_id != RSN_INFO_ELEM ||
509 hdr->len != rsn_ie_len - 2 ||
510 WPA_GET_LE16(hdr->version) != RSN_VERSION) {
516 pos = (const u8 *) (hdr + 1);
517 left = rsn_ie_len - sizeof(*hdr);
657 struct wpa_ie_hdr *hdr;
659 if (wpa_ie_len < sizeof(*hdr) + WPA_SELECTOR_LEN +
663 hdr = (struct wpa_ie_hdr *) wpa_ie;
664 hdr->elem_id = GENERIC_INFO_ELEM;
665 os_memcpy(hdr->oui, WPA_OUI_TYPE, WPA_SELECTOR_LEN);
666 WPA_PUT_LE16(hdr->version, WPA_VERSION);
667 pos = (u8 *) (hdr + 1);
718 hdr->len = (pos - wpa_ie) - 2;
733 struct rsn_ie_hdr *hdr;
736 if (rsn_ie_len < sizeof(*hdr) + RSN_SELECTOR_LEN +
741 hdr = (struct rsn_ie_hdr *) rsn_ie;
742 hdr->elem_id = RSN_INFO_ELEM;
743 WPA_PUT_LE16(hdr->version, RSN_VERSION);
744 pos = (u8 *) (hdr + 1);
824 hdr->len = (pos - rsn_ie) - 2;
1048 struct rsn_ie_hdr *hdr;
1088 hdr = (struct rsn_ie_hdr *) peerkey->rsnie_i;
1089 hdr->elem_id = RSN_INFO_ELEM;
1090 WPA_PUT_LE16(hdr->version, RSN_VERSION);
1091 pos = (u8 *) (hdr + 1);
1112 hdr->len = (pos - peerkey->rsnie_i) - 2;
2258 struct rsn_ie_hdr *hdr;
2331 hdr = (struct rsn_ie_hdr *) peerkey->rsnie_p;
2332 hdr->elem_id = RSN_INFO_ELEM;
2333 WPA_PUT_LE16(hdr->version, RSN_VERSION);
2334 pos = (u8 *) (hdr + 1);
2348 hdr->len = (pos - peerkey->rsnie_p) - 2;
3390 struct ieee802_1x_hdr *hdr;
3397 if (len < sizeof(*hdr) + sizeof(*key)) {
3401 (unsigned long) sizeof(*hdr) + sizeof(*key));
3410 hdr = (struct ieee802_1x_hdr *) tmp;
3411 key = (struct wpa_eapol_key *) (hdr + 1);
3412 plen = be_to_host16(hdr->length);
3413 data_len = plen + sizeof(*hdr);
3415 hdr->version, hdr->type, (unsigned long) plen);
3417 if (hdr->version < EAPOL_VERSION) {
3420 if (hdr->type != IEEE802_1X_TYPE_EAPOL_KEY) {
3422 "not a Key frame", hdr->type);
3426 if (plen > len - sizeof(*hdr) || plen < sizeof(*key)) {
3544 extra_len = data_len - sizeof(*hdr) - sizeof(*key);