2017-04-06 21:45:33 +00:00
|
|
|
/* packet-ieee80211-radio.h
|
|
|
|
* Routines for pseudo 802.11 header dissection and radio packet timing calculation
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
|
|
|
* Copyright 2012 Parc Inc and Samsung Electronics
|
|
|
|
* Copyright 2015, 2016 & 2017 Cisco Inc
|
|
|
|
*
|
2018-02-12 11:23:27 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2017-04-06 21:45:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WLAN_RADIO_H__
|
|
|
|
#define __WLAN_RADIO_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
struct aggregate {
|
|
|
|
guint phy;
|
|
|
|
union ieee_802_11_phy_info phy_info;
|
|
|
|
gint8 rssi; /* sometimes only available on the last frame */
|
|
|
|
guint duration; /* total duration of data in microseconds (without preamble) */
|
|
|
|
};
|
|
|
|
|
|
|
|
struct wlan_radio {
|
|
|
|
struct aggregate *aggregate; /* if this frame is part of an aggregate, point to it, otherwise NULL */
|
|
|
|
guint prior_aggregate_data; /* length of all prior data in this aggregate
|
|
|
|
used for calculating duration of this subframe */
|
|
|
|
guint64 start_tsf;
|
|
|
|
guint64 end_tsf;
|
|
|
|
|
|
|
|
gint64 ifs; /* inter frame space in microseconds */
|
|
|
|
|
2018-10-30 06:05:38 +00:00
|
|
|
guint16 nav; /* Duration from the frame header */
|
2017-04-06 21:45:33 +00:00
|
|
|
gint8 rssi;
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
#endif /* __WLAN_RADIO_H__ */
|