2
* Structures and defines for the prism-style rx header that Ethereal
4
* Broadcom 802.11abg Networking Device Driver
5
* Derived from http://airsnort.shmoo.com/orinoco-09b-packet-1.diff
7
* Copyright (C) 2010, Broadcom Corporation
10
* This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
11
* the contents of this file may not be disclosed to third parties, copied
12
* or duplicated in any form, in whole or in part, without the prior
13
* written permission of Broadcom Corporation.
15
* $Id: wlc_ethereal.h,v 1.12 2010-01-06 02:06:56 Exp $
18
#ifndef _WLC_ETHEREAL_H_
19
#define _WLC_ETHEREAL_H_
21
#ifndef ETH_P_80211_RAW
22
#define ETH_P_80211_RAW (ETH_P_ECONET + 1)
26
#define ARPHRD_ETHER 1
29
#ifndef ARPHRD_IEEE80211_PRISM
30
#define ARPHRD_IEEE80211_PRISM 802
35
#define WL_MON_FRAME 0x0041
36
#define WL_MON_FRAME_HOSTTIME 0x1041
37
#define WL_MON_FRAME_MACTIME 0x2041
38
#define WL_MON_FRAME_CHANNEL 0x3041
39
#define WL_MON_FRAME_RSSI 0x4041
40
#define WL_MON_FRAME_SQ 0x5041
41
#define WL_MON_FRAME_SIGNAL 0x6041
42
#define WL_MON_FRAME_NOISE 0x7041
43
#define WL_MON_FRAME_RATE 0x8041
44
#define WL_MON_FRAME_ISTX 0x9041
45
#define WL_MON_FRAME_FRMLEN 0xA041
47
#define P80211ITEM_OK 0
48
#define P80211ITEM_NO_VALUE 1
50
typedef struct p80211item
58
typedef struct p80211msg
62
uint8 devname[DNAMELEN];
63
p80211item_t hosttime;
75
#define WLANCAP_MAGIC_COOKIE_V1 0x80211001
77
#define WLANCAP_PHY_UNKOWN 0
78
#define WLANCAP_PHY_FHSS_97 1
79
#define WLANCAP_PHY_DSSS_97 2
80
#define WLANCAP_PHY_IR 3
81
#define WLANCAP_PHY_DSSS_11B 4
82
#define WLANCAP_PHY_PBCC_11B 5
83
#define WLANCAP_PHY_OFDM_11G 6
84
#define WLANCAP_PHY_PBCC_11G 7
85
#define WLANCAP_PHY_OFDM_11A 8
86
#define WLANCAP_PHY_OFDM_11N 9
88
#define WLANCAP_ENCODING_UNKNOWN 0
89
#define WLANCAP_ENCODING_CCK 1
90
#define WLANCAP_ENCODING_PBCC 2
91
#define WLANCAP_ENCODING_OFDM 3
93
#define WLANCAP_SSI_TYPE_NONE 0
94
#define WLANCAP_SSI_TYPE_NORM 1
95
#define WLANCAP_SSI_TYPE_DBM 2
96
#define WLANCAP_SSI_TYPE_RAW 3
98
#define WLANCAP_PREAMBLE_UNKNOWN 0
99
#define WLANCAP_PREAMBLE_SHORT 1
100
#define WLANCAP_PREAMBLE_LONG 2
101
#define WLANCAP_PREAMBLE_MIMO_MM 3
102
#define WLANCAP_PREAMBLE_MIMO_GF 4
104
typedef struct wlan_header_v1 {