37 const unsigned char receiver[6],
38 const unsigned char transmitter[6],
39 const unsigned char address3[6],
73 if (assoc_req_len > buf_len) {
struct libwifi_radiotap_channel channel
size_t libwifi_dump_assoc_req(struct libwifi_assoc_req *assoc_req, unsigned char *buf, size_t buf_len)
Copy a libwifi_assoc_req into a regular unsigned char buffer.
void libwifi_free_assoc_req(struct libwifi_assoc_req *assoc_req)
Because the tagged parameters memory is managed inside of the library, the library must be the one to...
size_t libwifi_get_assoc_req_length(struct libwifi_assoc_req *assoc_req)
The length of an association request frame is the sum of the header length, the fixed parameters leng...
int libwifi_create_assoc_req(struct libwifi_assoc_req *assoc_req, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], const char *ssid, uint8_t channel)
The generated association request frame is made with sane defaults defined in common....
#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.
uint16_t capabilities_information
struct libwifi_tagged_parameters tags
struct libwifi_mgmt_unordered_frame_header frame_header
struct libwifi_assoc_req_fixed_parameters fixed_parameters
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.