Moep Library
2.0-nc
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
radiotap.h
1
/*
2
* Copyright 2013, 2014 Maurice Leclaire <leclaire@in.tum.de>
3
* Stephan M. Guenther <moepi@moepi.net>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation.
8
*
9
* See COPYING for more details.
10
*
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with this program. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef __MOEP80211_RADIOTAP_H
21
#define __MOEP80211_RADIOTAP_H
22
23
24
#include <moep/ieee80211_radiotap.h>
25
26
27
struct
moep80211_radiotap
{
28
struct
ieee80211_radiotap_header
hdr;
29
u64 mactime;
/* Value in microseconds of the MAC's
30
* 64-bit 802.11 Time Synchronization
31
* Function timer when the first bit of
32
* the MPDU arrived at the MAC. For
33
* received frames only. */
34
u8 flags;
/* Properties of transmitted and
35
* received frames. */
36
u8 rate;
/* TX/RX data rate in 500 Kbps */
37
struct
{
38
u16 frequency;
/* Tx/Rx frequency in MHz */
39
u16 flags;
40
} channel;
41
struct
{
42
u8 hop_set;
43
u8 hop_pattern;
44
} fhss;
/* The hop set and pattern for
45
* frequency-hopping radios. */
46
s8 signal;
/* RF signal power at the antenna. This
47
* field contains a single signed 8-bit
48
* value, which indicates the RF signal
49
* power at the antenna, in decibels
50
* difference from 1mW. */
51
s8 noise;
/* RF noise power at the antenna. This
52
* field contains a single signed 8-bit
53
* value, which indicates the RF signal
54
* power at the antenna, in decibels
55
* difference from 1mW. */
56
u16 lock_quality;
/* Quality of Barker code lock. Unitless.
57
* Monotonically nondecreasing with
58
* "better" lock strength. Called
59
* "Signal Quality" in datasheets. */
60
u16 tx_attenuation;
/* Transmit power expressed as unitless
61
* distance from max power set at
62
* factory calibration. 0 is max power.
63
* Monotonically nondecreasing with
64
* lower power levels. */
65
u16 tx_attenuation_dB;
/* Transmit power expressed as decibel
66
* distance from max power set at
67
* factory calibration. 0 is max power.
68
* Monotonically nondecreasing with
69
* lower power levels. */
70
s8 tx_power;
/* Transmit power expressed as dBm
71
* (decibels from a 1 milliwatt
72
* reference). This is the absolute
73
* power level measured at the antenna
74
* port. */
75
u8 antenna;
/* Unitless indication of the Rx/Tx
76
* antenna for this packet. The first
77
* antenna is antenna 0. */
78
u8 signal_dB;
/* RF signal power at the antenna,
79
* decibel difference from an arbitrary,
80
* fixed reference. This field contains
81
* a single unsigned 8-bit value. */
82
u8 noise_dB;
/* RF noise power at the antenna,
83
* decibel difference from an arbitrary,
84
* fixed reference. This field contains
85
* a single unsigned 8-bit value. */
86
u16 rx_flags;
/* Properties of received frames. */
87
u16 tx_flags;
/* Properties of transmitted frames. */
88
u8 rts_retries;
/* Number of RTS retries a transmitted
89
* frame used. */
90
u8 data_retries;
/* Number of data retries a transmitted
91
* frame used. */
92
struct
{
93
u8 known;
/* The known field indicates which
94
* information is known */
95
u8 flags;
96
u8 mcs;
/* The mcs field indicates the MCS rate
97
* index as in IEEE_802.11n-2009 */
98
} mcs;
99
struct
{
100
u32 reference;
101
u16 flags;
102
u8 crc;
103
u8 reserved;
104
} ampdu;
/* The presence of this field indicates
105
* that the frame was received as part
106
* of an a-MPDU. */
107
struct
{
108
u16 known;
109
u8 flags;
110
u8 bandwidth;
111
u8 mcs_nss[4];
112
u8 coding;
113
u8 group_id;
114
u16 partial_aid;
115
} vht;
116
};
117
118
#endif
/* __MOEP80211_RADIOTAP_H */
moep80211_radiotap
Definition:
radiotap.h:27
ieee80211_radiotap_header
Definition:
ieee80211_radiotap.h:69
moep
radiotap.h
Generated on Tue Nov 20 2018 09:46:11 for Moep Library by
1.8.6