38 const unsigned char receiver[6],
39 const unsigned char transmitter[6],
40 const unsigned char address3[6],
41 const unsigned char current_ap[6],
73 if (reassoc_req_len > buf_len) {
87 return reassoc_req_len;
struct libwifi_tagged_parameters tags
struct libwifi_radiotap_channel channel
#define LIBWIFI_DEFAULT_AP_CAPABS
A sane default for an AP-side capabilities information field.
#define LIBWIFI_DEFAULT_LISTEN_INTERVAL
A sane default for the listen_interval field.
void libwifi_free_reassoc_req(struct libwifi_reassoc_req *reassoc_req)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
int libwifi_create_reassoc_req(struct libwifi_reassoc_req *reassoc_req, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], const unsigned char current_ap[6], const char *ssid, uint8_t channel)
The generated reassociation request frame is made with sane defaults defined in common....
size_t libwifi_get_reassoc_req_length(struct libwifi_reassoc_req *reassoc_req)
The length of a reassociation request frame is the sum of the header length, the fixed parameters len...
size_t libwifi_dump_reassoc_req(struct libwifi_reassoc_req *reassoc_req, unsigned char *buf, size_t buf_len)
Copy a libwifi_reassoc_req into a regular unsigned char buffer.
Reassociation Request Layout ─────────────────────────────── ┌───────────────────────────────┐ │ Head...
unsigned char current_ap_address[6]
uint16_t capabilities_information
struct libwifi_tagged_parameters tags
struct libwifi_reassoc_req_fixed_parameters fixed_parameters
struct libwifi_mgmt_unordered_frame_header frame_header
unsigned int sequence_number
unsigned char * parameters
int libwifi_quick_add_tag(struct libwifi_tagged_parameters *tags, int tag_number, const unsigned char *tag_data, size_t tag_length)
Add a tagged parameter via tag number and data to a management frame.