Lines Matching refs:datalen
46 u8 type, const u8 *data, size_t datalen) in ieee802_1x_send() argument
53 len = sizeof(*xhdr) + datalen; in ieee802_1x_send()
65 xhdr->length = host_to_be16(datalen); in ieee802_1x_send()
67 if (datalen > 0 && data != NULL) in ieee802_1x_send()
68 os_memcpy(xhdr + 1, data, datalen); in ieee802_1x_send()
902 u16 datalen; in ieee802_1x_receive() local
933 datalen = be_to_host16(hdr->length); in ieee802_1x_receive()
935 hdr->version, hdr->type, datalen); in ieee802_1x_receive()
937 if (len - sizeof(*hdr) < datalen) { in ieee802_1x_receive()
943 if (len - sizeof(*hdr) > datalen) { in ieee802_1x_receive()
946 (unsigned long) len - sizeof(*hdr) - datalen); in ieee802_1x_receive()
955 if (datalen >= sizeof(struct ieee802_1x_eapol_key) && in ieee802_1x_receive()
960 sizeof(*hdr) + datalen); in ieee802_1x_receive()
1017 handle_eap(hapd, sta, (u8 *) (hdr + 1), datalen); in ieee802_1x_receive()
1961 const u8 *data, size_t datalen) in ieee802_1x_eapol_send() argument
1987 ieee802_1x_send(ctx, sta_ctx, type, data, datalen); in ieee802_1x_eapol_send()
1992 const u8 *data, size_t datalen) in ieee802_1x_aaa_send() argument
1998 ieee802_1x_encapsulate_radius(hapd, sta, data, datalen); in ieee802_1x_aaa_send()