17#include "../../core/misc/byteswap.h"
37 const unsigned char receiver[6],
38 const unsigned char transmitter[6],
39 const unsigned char address3[6],
62 if (disassoc_len > buf_len) {
struct libwifi_tagged_parameters tags
int libwifi_create_disassoc(struct libwifi_disassoc *disassoc, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint16_t reason_code)
The generated disassociation frame contains only the supplied receiver, transmitter and reason_code b...
size_t libwifi_get_disassoc_length(struct libwifi_disassoc *disassoc)
The length of a disassoc frame is the sum of the header length, the fixed parameters length,...
size_t libwifi_dump_disassoc(struct libwifi_disassoc *disassoc, unsigned char *buf, size_t buf_len)
Copy a libwifi_disassoc into a regular unsigned char buffer.
void libwifi_free_disassoc(struct libwifi_disassoc *disassoc)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
struct libwifi_disassoc_fixed_parameters fixed_parameters
struct libwifi_tagged_parameters tags
struct libwifi_mgmt_unordered_frame_header frame_header
unsigned int sequence_number
unsigned char * parameters