Lines Matching refs:hdr
249 const struct rsn_ie_hdr *hdr;
279 hdr = (const struct rsn_ie_hdr *) rsn_ie;
281 if (hdr->elem_id != WLAN_EID_RSN ||
282 hdr->len != rsn_ie_len - 2 ||
283 WPA_GET_LE16(hdr->version) != RSN_VERSION) {
289 pos = (const u8 *) (hdr + 1);
290 left = rsn_ie_len - sizeof(*hdr);
439 const struct wpa_ie_hdr *hdr;
465 hdr = (const struct wpa_ie_hdr *) wpa_ie;
467 if (hdr->elem_id != WLAN_EID_VENDOR_SPECIFIC ||
468 hdr->len != wpa_ie_len - 2 ||
469 RSN_SELECTOR_GET(hdr->oui) != WPA_OUI_TYPE ||
470 WPA_GET_LE16(hdr->version) != WPA_VERSION) {
476 pos = (const u8 *) (hdr + 1);
477 left = wpa_ie_len - sizeof(*hdr);