17#include "../../core/frame/tag.h"
18#include "../../core/frame/tag_iterator.h"
19#include "../../core/misc/byteswap.h"
20#include "../../core/misc/epoch.h"
21#include "../../core/misc/types.h"
54 const unsigned char *chan = (
const unsigned char *) &
channel;
65 const unsigned char receiver[6],
66 const unsigned char transmitter[6],
67 const unsigned char address3[6],
93 if (reassoc_resp_len > buf_len) {
108 return reassoc_resp_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.
size_t libwifi_get_reassoc_resp_length(struct libwifi_reassoc_resp *reassoc_resp)
The length of a reassociation response frame is the sum of the header length, the fixed parameters le...
size_t libwifi_dump_reassoc_resp(struct libwifi_reassoc_resp *reassoc_resp, unsigned char *buf, size_t buf_len)
Copy a libwifi_reassoc_resp into a regular unsigned char buffer.
void libwifi_free_reassoc_resp(struct libwifi_reassoc_resp *reassoc_resp)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
int libwifi_set_reassoc_resp_channel(struct libwifi_reassoc_resp *reassoc_resp, uint8_t channel)
Simple helper to set the reassociation response DS tag by removing it and then adding it back with th...
int libwifi_create_reassoc_resp(struct libwifi_reassoc_resp *reassoc_resp, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t channel)
The generated reassoc_resp frame is made with sane defaults defined in common.h.
uint16_t capabilities_information
struct libwifi_tagged_parameters tags
struct libwifi_reassoc_resp_fixed_parameters fixed_parameters
struct libwifi_mgmt_unordered_frame_header frame_header
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.
int libwifi_remove_tag(struct libwifi_tagged_parameters *tags, int tag_number)
Remove a tagged parameter from a list of frame tagged parameters.