16#ifndef LIBWIFI_GEN_BEACON_H
17#define LIBWIFI_GEN_BEACON_H
19#include "../../core/frame/management/beacon.h"
62 const unsigned char receiver[6],
63 const unsigned char transmitter[6],
64 const unsigned char address3[6],
struct libwifi_radiotap_channel channel
int libwifi_create_beacon(struct libwifi_beacon *beacon, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], const char *ssid, uint8_t channel)
Generate a populated libwifi beacon.
size_t libwifi_dump_beacon(struct libwifi_beacon *beacon, unsigned char *buf, size_t buf_len)
Dump a struct libwifi_beacon into a raw format for packet injection.
int libwifi_set_beacon_channel(struct libwifi_beacon *beacon, uint8_t channel)
Set the channel of a struct libwifi_beacon.
int libwifi_set_beacon_ssid(struct libwifi_beacon *beacon, const char *ssid)
Set the SSID of a struct libwifi_beacon.
void libwifi_free_beacon(struct libwifi_beacon *beacon)
Free any memory claimed by a struct libwifi_beacon back to the system.
size_t libwifi_get_beacon_length(struct libwifi_beacon *beacon)
Calculate the length of a given struct libwifi_beacon.