17#include "../../core/radiotap/radiotap.h"
18#include "../../core/radiotap/radiotap_iter.h"
24#define LIBWIFI_RADIOTAP_HEADER_LEN 8
38 if (presence_bit & 1) {
51 memcpy(rtap_data + offset, &info->
signal,
sizeof(info->
signal));
52 offset +=
sizeof(info->
signal);
66 memcpy(rtap_data + offset, &info->
flags,
sizeof(info->
flags));
67 offset +=
sizeof(info->
flags);
86 memcpy(rtap_data + offset, &info->
mcs.
mcs,
sizeof(info->
mcs.
mcs));
87 offset +=
sizeof(info->
mcs.
mcs);
117 rtap_hdr.
it_len += offset;
#define LIBWIFI_MAX_RADIOTAP_LEN
const struct ieee80211_radiotap_namespace radiotap_ns
@ IEEE80211_RADIOTAP_DATA_RETRIES
@ IEEE80211_RADIOTAP_DBM_TX_POWER
@ IEEE80211_RADIOTAP_TX_FLAGS
@ IEEE80211_RADIOTAP_RTS_RETRIES
@ IEEE80211_RADIOTAP_CHANNEL
@ IEEE80211_RADIOTAP_FLAGS
@ IEEE80211_RADIOTAP_TIMESTAMP
@ IEEE80211_RADIOTAP_RATE
@ IEEE80211_RADIOTAP_DBM_ANTNOISE
@ IEEE80211_RADIOTAP_ANTENNA
@ IEEE80211_RADIOTAP_DBM_ANTSIGNAL
@ IEEE80211_RADIOTAP_RX_FLAGS
size_t libwifi_create_radiotap(struct libwifi_radiotap_info *info, char *radiotap_header)
#define LIBWIFI_RADIOTAP_HEADER_LEN
struct libwifi_radiotap_timestamp timestamp
struct libwifi_radiotap_antenna antennas[LIBWIFI_MAX_RADIOTAP_ANTENNAS]
struct libwifi_radiotap_channel channel
struct libwifi_radiotap_mcs mcs