16#ifndef LIBWIFI_GEN_DISASSOC_H
17#define LIBWIFI_GEN_DISASSOC_H
21#include "../../core/frame/management/disassociation.h"
45 const unsigned char receiver[6],
46 const unsigned char transmitter[6],
47 const unsigned char address3[6],
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)
Generate a populated libwifi disassoc.
size_t libwifi_get_disassoc_length(struct libwifi_disassoc *disassoc)
Calculate the length of a given libwifi_disassoc.
size_t libwifi_dump_disassoc(struct libwifi_disassoc *disassoc, unsigned char *buf, size_t buf_len)
Dump a libwifi_disassoc into a raw format for packet injection.
void libwifi_free_disassoc(struct libwifi_disassoc *disassoc)
Free any memory claimed by a libwifi_disassoc back to the system.