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;
66 const unsigned char receiver[6],
67 const unsigned char transmitter[6],
68 const unsigned char address3[6],
96 if (assoc_resp_len > buf_len) {
110 return assoc_resp_len;
struct libwifi_tagged_parameters tags
struct libwifi_radiotap_channel channel
int libwifi_create_assoc_resp(struct libwifi_assoc_resp *assoc_resp, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t channel)
The generated association response frame is made with sane defaults defined in common....
void libwifi_free_assoc_resp(struct libwifi_assoc_resp *assoc_resp)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
size_t libwifi_dump_assoc_resp(struct libwifi_assoc_resp *assoc_resp, unsigned char *buf, size_t buf_len)
Copy a libwifi_assoc_resp into a regular unsigned char buffer.
size_t libwifi_get_assoc_resp_length(struct libwifi_assoc_resp *assoc_resp)
The length of an association response frame is the sum of the header length, the fixed parameters len...
int libwifi_set_assoc_resp_channel(struct libwifi_assoc_resp *assoc_resp, uint8_t channel)
Simple helper function to set the channel of an association response by removing and re-adding the DS...
#define LIBWIFI_DEFAULT_SUPP_RATES
A sane default for the supported rates frame field.
#define LIBWIFI_DEFAULT_AP_CAPABS
A sane default for an AP-side capabilities information field.
uint16_t capabilities_information
struct libwifi_tagged_parameters tags
struct libwifi_assoc_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.