libwifi 0.0.3
An 802.11 Frame Parsing and Generation library in C
radiotap.h File Reference
#include "../../core/misc/radiotap.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Functions

int libwifi_parse_radiotap_info (struct libwifi_radiotap_info *info, const unsigned char *frame, size_t frame_len)
 Parse the radiotap information out of a raw frame into a libwifi_radiotap_info. More...
 
int8_t libwifi_parse_radiotap_rssi (const unsigned char *frame)
 Retrieve the signal strength from a raw frame via radiotap header. More...
 

Function Documentation

◆ libwifi_parse_radiotap_info()

int libwifi_parse_radiotap_info ( struct libwifi_radiotap_info info,
const unsigned char *  frame,
size_t  frame_len 
)

Parse the radiotap information out of a raw frame into a libwifi_radiotap_info.

Parameters
infoA libwifi_radiotap_info
frameA raw 802.11 frame
frame_lenLength of the given 802.11 frame
Returns
Negative errno on error, 0 on success

Parse the radiotap information out of a raw frame into a libwifi_radiotap_info.

Definition at line 27 of file radiotap.c.

◆ libwifi_parse_radiotap_rssi()

int8_t libwifi_parse_radiotap_rssi ( const unsigned char *  frame)

Retrieve the signal strength from a raw frame via radiotap header.

Parameters
frameA raw 802.11 frame
Returns
signal strength in dBm

Retrieve the signal strength from a raw frame via radiotap header.

Definition at line 115 of file radiotap.c.