Wireshark  4.3.0
The Wireshark network protocol analyzer
packet-ieee80211-radio.h
1 /* packet-ieee80211-radio.h
2  * Routines for pseudo 802.11 header dissection and radio packet timing calculation
3  *
4  * Wireshark - Network traffic analyzer
5  * By Gerald Combs <gerald@wireshark.org>
6  * Copyright 1998 Gerald Combs
7  *
8  * Copyright 2012 Parc Inc and Samsung Electronics
9  * Copyright 2015, 2016 & 2017 Cisco Inc
10  *
11  * SPDX-License-Identifier: GPL-2.0-or-later
12  */
13 
14 #ifndef __WLAN_RADIO_H__
15 #define __WLAN_RADIO_H__
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif /* __cplusplus */
20 
21 struct aggregate {
22  guint phy;
23  union ieee_802_11_phy_info phy_info;
24  gint8 rssi; /* sometimes only available on the last frame */
25  guint duration; /* total duration of data in microseconds (without preamble) */
26 };
27 
28 struct wlan_radio {
29  struct aggregate *aggregate; /* if this frame is part of an aggregate, point to it, otherwise NULL */
30  guint prior_aggregate_data; /* length of all prior data in this aggregate
31  used for calculating duration of this subframe */
32  guint64 start_tsf;
33  guint64 end_tsf;
34 
35  gint64 ifs; /* inter frame space in microseconds */
36 
37  guint16 nav; /* Duration from the frame header */
38  gint8 rssi;
39 };
40 
41 #ifdef __cplusplus
42 }
43 #endif /* __cplusplus */
44 
45 #endif /* __WLAN_RADIO_H__ */
Definition: packet-ieee80211-radio.h:21
Definition: packet-ieee80211-radio.h:28
Definition: wtap.h:802