~ubuntu-branches/ubuntu/trusty/broadcom-sta/trusty

« back to all changes in this revision

Viewing changes to amd64/src/wl/sys/wlc_ethereal.h

  • Committer: Package Import Robot
  • Author(s): Cyril Lacoux
  • Date: 2011-10-25 08:21:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20111025082113-ve5e5uo77m7v7kfm
Tags: 5.100.82.111-1
* New upstream release.
* Refreshed changelog and license patches.
* Removed obsolete patch 03-linux-2.6.37.patch.
* Bumped standards version to 3.9.2 (No changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Structures and defines for the prism-style rx header that Ethereal
 
3
 * understands.
 
4
 * Broadcom 802.11abg Networking Device Driver
 
5
 *  Derived from http://airsnort.shmoo.com/orinoco-09b-packet-1.diff
 
6
 *
 
7
 * Copyright (C) 2010, Broadcom Corporation
 
8
 * All Rights Reserved.
 
9
 * 
 
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.
 
14
 *
 
15
 * $Id: wlc_ethereal.h,v 1.12 2010-01-06 02:06:56 Exp $
 
16
 */
 
17
 
 
18
#ifndef _WLC_ETHEREAL_H_
 
19
#define _WLC_ETHEREAL_H_
 
20
 
 
21
#ifndef ETH_P_80211_RAW
 
22
#define ETH_P_80211_RAW                 (ETH_P_ECONET + 1)
 
23
#endif 
 
24
 
 
25
#ifndef ARPHRD_ETHER
 
26
#define ARPHRD_ETHER                    1 
 
27
#endif 
 
28
 
 
29
#ifndef ARPHRD_IEEE80211_PRISM
 
30
#define ARPHRD_IEEE80211_PRISM          802 
 
31
#endif 
 
32
 
 
33
#define DNAMELEN                        16  
 
34
 
 
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  
 
46
 
 
47
#define P80211ITEM_OK                   0       
 
48
#define P80211ITEM_NO_VALUE             1       
 
49
 
 
50
typedef struct p80211item
 
51
{
 
52
        uint32          did;
 
53
        uint16          status;
 
54
        uint16          len;
 
55
        uint32          data;
 
56
} p80211item_t;
 
57
 
 
58
typedef struct p80211msg
 
59
{
 
60
        uint32  msgcode;
 
61
        uint32  msglen;
 
62
        uint8           devname[DNAMELEN];
 
63
        p80211item_t    hosttime;
 
64
        p80211item_t    mactime;
 
65
        p80211item_t    channel;
 
66
        p80211item_t    rssi;
 
67
        p80211item_t    sq;
 
68
        p80211item_t    signal;
 
69
        p80211item_t    noise;
 
70
        p80211item_t    rate;
 
71
        p80211item_t    istx;
 
72
        p80211item_t    frmlen;
 
73
} p80211msg_t;
 
74
 
 
75
#define WLANCAP_MAGIC_COOKIE_V1 0x80211001  
 
76
 
 
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       
 
87
 
 
88
#define WLANCAP_ENCODING_UNKNOWN        0       
 
89
#define WLANCAP_ENCODING_CCK            1       
 
90
#define WLANCAP_ENCODING_PBCC           2       
 
91
#define WLANCAP_ENCODING_OFDM           3       
 
92
 
 
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       
 
97
 
 
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       
 
103
 
 
104
typedef struct wlan_header_v1 {
 
105
        uint32  version;
 
106
        uint32  length;
 
107
        uint32  mactime_h;
 
108
        uint32  mactime_l;
 
109
        uint32  hosttime_h;
 
110
        uint32  hosttime_l;
 
111
        uint32  phytype;
 
112
        uint32  channel;
 
113
        uint32  datarate;
 
114
        uint32  antenna;
 
115
        uint32  priority;
 
116
        uint32  ssi_type;
 
117
        int32   ssi_signal;
 
118
        int32   ssi_noise;
 
119
        uint32  preamble;
 
120
        uint32  encoding;
 
121
} wlan_header_v1_t;
 
122
 
 
123
#endif