16#ifndef LIBWIFI_GEN_ACTION_H
17#define LIBWIFI_GEN_ACTION_H
19#include "../../core/frame/management/action.h"
32 const unsigned char *data,
53 const unsigned char receiver[6],
54 const unsigned char transmitter[6],
55 const unsigned char address3[6],
58 const unsigned char receiver[6],
59 const unsigned char transmitter[6],
60 const unsigned char address3[6],
int libwifi_create_action_no_ack(struct libwifi_action *action, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t category)
void libwifi_free_action(struct libwifi_action *action)
Free data associated to a given libwifi_action.
size_t libwifi_add_action_detail(struct libwifi_action_detail *detail, const unsigned char *data, size_t data_len)
Create a detail for an action frame by supplying raw data and it's length.
size_t libwifi_dump_action(struct libwifi_action *action, unsigned char *buf, size_t buf_len)
Dump a given libwifi_action to a raw buffer.
void libwifi_free_action_detail(struct libwifi_action_detail *detail)
Free all memory in a given libwifi_action_detail.
size_t libwifi_get_action_length(struct libwifi_action *action)
Get the length of a given libwifi_action.
int libwifi_create_action(struct libwifi_action *action, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint8_t category)
Create a new action frame with a specified action and category.