Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
brcmu_wifi.h File Reference
#include <linux/if_ether.h>
#include <linux/ieee80211.h>

Go to the source code of this file.

Data Structures

struct  pmkid
 
struct  pmkid_list
 
struct  pmkid_cand
 
struct  pmkid_cand_list
 

Macros

#define CH_UPPER_SB   0x01
 
#define CH_LOWER_SB   0x02
 
#define CH_EWA_VALID   0x04
 
#define CH_20MHZ_APART   4
 
#define CH_10MHZ_APART   2
 
#define CH_5MHZ_APART   1 /* 2G band channels are 5 Mhz apart */
 
#define CH_MAX_2G_CHANNEL   14 /* Max channel in 2G band */
 
#define BRCM_MAX_2G_CHANNEL   CH_MAX_2G_CHANNEL /* legacy define */
 
#define BAND_2G_INDEX   0 /* wlc->bandstate[x] index */
 
#define BAND_5G_INDEX   1 /* wlc->bandstate[x] index */
 
#define MAXCHANNEL   224
 
#define WL_CHANSPEC_CHAN_MASK   0x00ff
 
#define WL_CHANSPEC_CHAN_SHIFT   0
 
#define WL_CHANSPEC_CTL_SB_MASK   0x0300
 
#define WL_CHANSPEC_CTL_SB_SHIFT   8
 
#define WL_CHANSPEC_CTL_SB_LOWER   0x0100
 
#define WL_CHANSPEC_CTL_SB_UPPER   0x0200
 
#define WL_CHANSPEC_CTL_SB_NONE   0x0300
 
#define WL_CHANSPEC_BW_MASK   0x0C00
 
#define WL_CHANSPEC_BW_SHIFT   10
 
#define WL_CHANSPEC_BW_10   0x0400
 
#define WL_CHANSPEC_BW_20   0x0800
 
#define WL_CHANSPEC_BW_40   0x0C00
 
#define WL_CHANSPEC_BAND_MASK   0xf000
 
#define WL_CHANSPEC_BAND_SHIFT   12
 
#define WL_CHANSPEC_BAND_5G   0x1000
 
#define WL_CHANSPEC_BAND_2G   0x2000
 
#define INVCHANSPEC   255
 
#define CHSPEC_CHANNEL(chspec)   ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK))
 
#define CHSPEC_BAND(chspec)   ((chspec) & WL_CHANSPEC_BAND_MASK)
 
#define CHSPEC_CTL_SB(chspec)   ((chspec) & WL_CHANSPEC_CTL_SB_MASK)
 
#define CHSPEC_BW(chspec)   ((chspec) & WL_CHANSPEC_BW_MASK)
 
#define CHSPEC_IS10(chspec)   (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_10)
 
#define CHSPEC_IS20(chspec)   (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_20)
 
#define CHSPEC_IS40(chspec)   (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_40)
 
#define CHSPEC_IS5G(chspec)   (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_5G)
 
#define CHSPEC_IS2G(chspec)   (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_2G)
 
#define CHSPEC_SB_NONE(chspec)   (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_NONE)
 
#define CHSPEC_SB_UPPER(chspec)   (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_UPPER)
 
#define CHSPEC_SB_LOWER(chspec)   (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_LOWER)
 
#define CHSPEC_CTL_CHAN(chspec)
 
#define CHSPEC2BAND(chspec)   (CHSPEC_IS5G(chspec) ? BRCM_BAND_5G : BRCM_BAND_2G)
 
#define CHANSPEC_STR_LEN   8
 
#define BRCM_MAXRATE   108 /* in 500kbps units */
 
#define BRCM_RATE_1M   2 /* in 500kbps units */
 
#define BRCM_RATE_2M   4 /* in 500kbps units */
 
#define BRCM_RATE_5M5   11 /* in 500kbps units */
 
#define BRCM_RATE_11M   22 /* in 500kbps units */
 
#define BRCM_RATE_6M   12 /* in 500kbps units */
 
#define BRCM_RATE_9M   18 /* in 500kbps units */
 
#define BRCM_RATE_12M   24 /* in 500kbps units */
 
#define BRCM_RATE_18M   36 /* in 500kbps units */
 
#define BRCM_RATE_24M   48 /* in 500kbps units */
 
#define BRCM_RATE_36M   72 /* in 500kbps units */
 
#define BRCM_RATE_48M   96 /* in 500kbps units */
 
#define BRCM_RATE_54M   108 /* in 500kbps units */
 
#define BRCM_2G_25MHZ_OFFSET   5 /* 2.4GHz band channel offset */
 
#define MCSSET_LEN   16
 
#define CRYPTO_ALGO_OFF   0
 
#define CRYPTO_ALGO_WEP1   1
 
#define CRYPTO_ALGO_TKIP   2
 
#define CRYPTO_ALGO_WEP128   3
 
#define CRYPTO_ALGO_AES_CCM   4
 
#define CRYPTO_ALGO_AES_RESERVED1   5
 
#define CRYPTO_ALGO_AES_RESERVED2   6
 
#define CRYPTO_ALGO_NALG   7
 
#define WEP_ENABLED   0x0001
 
#define TKIP_ENABLED   0x0002
 
#define AES_ENABLED   0x0004
 
#define WSEC_SWFLAG   0x0008
 
#define SES_OW_ENABLED   0x0040
 
#define WPA_AUTH_DISABLED   0x0000 /* Legacy (i.e., non-WPA) */
 
#define WPA_AUTH_NONE   0x0001 /* none (IBSS) */
 
#define WPA_AUTH_UNSPECIFIED   0x0002 /* over 802.1x */
 
#define WPA_AUTH_PSK   0x0004 /* Pre-shared key */
 
#define WPA_AUTH_RESERVED1   0x0008
 
#define WPA_AUTH_RESERVED2   0x0010
 
#define WPA2_AUTH_RESERVED1   0x0020
 
#define WPA2_AUTH_UNSPECIFIED   0x0040 /* over 802.1x */
 
#define WPA2_AUTH_PSK   0x0080 /* Pre-shared key */
 
#define WPA2_AUTH_RESERVED3   0x0200
 
#define WPA2_AUTH_RESERVED4   0x0400
 
#define WPA2_AUTH_RESERVED5   0x0800
 
#define MAXPMKID   16
 
#define DOT11_DEFAULT_RTS_LEN   2347
 
#define DOT11_DEFAULT_FRAG_LEN   2346
 
#define DOT11_ICV_AES_LEN   8
 
#define DOT11_QOS_LEN   2
 
#define DOT11_IV_MAX_LEN   8
 
#define DOT11_A4_HDR_LEN   30
 
#define HT_CAP_RX_STBC_NO   0x0
 
#define HT_CAP_RX_STBC_ONE_STREAM   0x1
 

Macro Definition Documentation

#define AES_ENABLED   0x0004

Definition at line 180 of file brcmu_wifi.h.

#define BAND_2G_INDEX   0 /* wlc->bandstate[x] index */

Definition at line 39 of file brcmu_wifi.h.

#define BAND_5G_INDEX   1 /* wlc->bandstate[x] index */

Definition at line 40 of file brcmu_wifi.h.

#define BRCM_2G_25MHZ_OFFSET   5 /* 2.4GHz band channel offset */

Definition at line 157 of file brcmu_wifi.h.

#define BRCM_MAX_2G_CHANNEL   CH_MAX_2G_CHANNEL /* legacy define */

Definition at line 36 of file brcmu_wifi.h.

#define BRCM_MAXRATE   108 /* in 500kbps units */

Definition at line 143 of file brcmu_wifi.h.

#define BRCM_RATE_11M   22 /* in 500kbps units */

Definition at line 147 of file brcmu_wifi.h.

#define BRCM_RATE_12M   24 /* in 500kbps units */

Definition at line 150 of file brcmu_wifi.h.

#define BRCM_RATE_18M   36 /* in 500kbps units */

Definition at line 151 of file brcmu_wifi.h.

#define BRCM_RATE_1M   2 /* in 500kbps units */

Definition at line 144 of file brcmu_wifi.h.

#define BRCM_RATE_24M   48 /* in 500kbps units */

Definition at line 152 of file brcmu_wifi.h.

#define BRCM_RATE_2M   4 /* in 500kbps units */

Definition at line 145 of file brcmu_wifi.h.

#define BRCM_RATE_36M   72 /* in 500kbps units */

Definition at line 153 of file brcmu_wifi.h.

#define BRCM_RATE_48M   96 /* in 500kbps units */

Definition at line 154 of file brcmu_wifi.h.

#define BRCM_RATE_54M   108 /* in 500kbps units */

Definition at line 155 of file brcmu_wifi.h.

#define BRCM_RATE_5M5   11 /* in 500kbps units */

Definition at line 146 of file brcmu_wifi.h.

#define BRCM_RATE_6M   12 /* in 500kbps units */

Definition at line 148 of file brcmu_wifi.h.

#define BRCM_RATE_9M   18 /* in 500kbps units */

Definition at line 149 of file brcmu_wifi.h.

#define CH_10MHZ_APART   2

Definition at line 33 of file brcmu_wifi.h.

#define CH_20MHZ_APART   4

Definition at line 32 of file brcmu_wifi.h.

#define CH_5MHZ_APART   1 /* 2G band channels are 5 Mhz apart */

Definition at line 34 of file brcmu_wifi.h.

#define CH_EWA_VALID   0x04

Definition at line 31 of file brcmu_wifi.h.

#define CH_LOWER_SB   0x02

Definition at line 30 of file brcmu_wifi.h.

#define CH_MAX_2G_CHANNEL   14 /* Max channel in 2G band */

Definition at line 35 of file brcmu_wifi.h.

#define CH_UPPER_SB   0x01

Definition at line 29 of file brcmu_wifi.h.

#define CHANSPEC_STR_LEN   8

Definition at line 109 of file brcmu_wifi.h.

#define CHSPEC2BAND (   chspec)    (CHSPEC_IS5G(chspec) ? BRCM_BAND_5G : BRCM_BAND_2G)

Definition at line 107 of file brcmu_wifi.h.

#define CHSPEC_BAND (   chspec)    ((chspec) & WL_CHANSPEC_BAND_MASK)

Definition at line 71 of file brcmu_wifi.h.

#define CHSPEC_BW (   chspec)    ((chspec) & WL_CHANSPEC_BW_MASK)

Definition at line 74 of file brcmu_wifi.h.

#define CHSPEC_CHANNEL (   chspec)    ((u8)((chspec) & WL_CHANSPEC_CHAN_MASK))

Definition at line 70 of file brcmu_wifi.h.

#define CHSPEC_CTL_CHAN (   chspec)
Value:
((CHSPEC_SB_LOWER(chspec)) ? \
(lower_20_sb(((chspec) & WL_CHANSPEC_CHAN_MASK))) : \
(upper_20_sb(((chspec) & WL_CHANSPEC_CHAN_MASK))))

Definition at line 102 of file brcmu_wifi.h.

#define CHSPEC_CTL_SB (   chspec)    ((chspec) & WL_CHANSPEC_CTL_SB_MASK)

Definition at line 73 of file brcmu_wifi.h.

#define CHSPEC_IS10 (   chspec)    (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_10)

Definition at line 76 of file brcmu_wifi.h.

#define CHSPEC_IS20 (   chspec)    (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_20)

Definition at line 79 of file brcmu_wifi.h.

#define CHSPEC_IS2G (   chspec)    (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_2G)

Definition at line 90 of file brcmu_wifi.h.

#define CHSPEC_IS40 (   chspec)    (((chspec) & WL_CHANSPEC_BW_MASK) == WL_CHANSPEC_BW_40)

Definition at line 83 of file brcmu_wifi.h.

#define CHSPEC_IS5G (   chspec)    (((chspec) & WL_CHANSPEC_BAND_MASK) == WL_CHANSPEC_BAND_5G)

Definition at line 87 of file brcmu_wifi.h.

#define CHSPEC_SB_LOWER (   chspec)    (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_LOWER)

Definition at line 99 of file brcmu_wifi.h.

#define CHSPEC_SB_NONE (   chspec)    (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_NONE)

Definition at line 93 of file brcmu_wifi.h.

#define CHSPEC_SB_UPPER (   chspec)    (((chspec) & WL_CHANSPEC_CTL_SB_MASK) == WL_CHANSPEC_CTL_SB_UPPER)

Definition at line 96 of file brcmu_wifi.h.

#define CRYPTO_ALGO_AES_CCM   4

Definition at line 171 of file brcmu_wifi.h.

#define CRYPTO_ALGO_AES_RESERVED1   5

Definition at line 172 of file brcmu_wifi.h.

#define CRYPTO_ALGO_AES_RESERVED2   6

Definition at line 173 of file brcmu_wifi.h.

#define CRYPTO_ALGO_NALG   7

Definition at line 174 of file brcmu_wifi.h.

#define CRYPTO_ALGO_OFF   0

Definition at line 167 of file brcmu_wifi.h.

#define CRYPTO_ALGO_TKIP   2

Definition at line 169 of file brcmu_wifi.h.

#define CRYPTO_ALGO_WEP1   1

Definition at line 168 of file brcmu_wifi.h.

#define CRYPTO_ALGO_WEP128   3

Definition at line 170 of file brcmu_wifi.h.

#define DOT11_A4_HDR_LEN   30

Definition at line 209 of file brcmu_wifi.h.

#define DOT11_DEFAULT_FRAG_LEN   2346

Definition at line 204 of file brcmu_wifi.h.

#define DOT11_DEFAULT_RTS_LEN   2347

Definition at line 203 of file brcmu_wifi.h.

#define DOT11_ICV_AES_LEN   8

Definition at line 206 of file brcmu_wifi.h.

#define DOT11_IV_MAX_LEN   8

Definition at line 208 of file brcmu_wifi.h.

#define DOT11_QOS_LEN   2

Definition at line 207 of file brcmu_wifi.h.

#define HT_CAP_RX_STBC_NO   0x0

Definition at line 211 of file brcmu_wifi.h.

#define HT_CAP_RX_STBC_ONE_STREAM   0x1

Definition at line 212 of file brcmu_wifi.h.

#define INVCHANSPEC   255

Definition at line 68 of file brcmu_wifi.h.

#define MAXCHANNEL   224

Definition at line 47 of file brcmu_wifi.h.

#define MAXPMKID   16

Definition at line 201 of file brcmu_wifi.h.

#define MCSSET_LEN   16

Definition at line 159 of file brcmu_wifi.h.

#define SES_OW_ENABLED   0x0040

Definition at line 183 of file brcmu_wifi.h.

#define TKIP_ENABLED   0x0002

Definition at line 179 of file brcmu_wifi.h.

#define WEP_ENABLED   0x0001

Definition at line 178 of file brcmu_wifi.h.

#define WL_CHANSPEC_BAND_2G   0x2000

Definition at line 67 of file brcmu_wifi.h.

#define WL_CHANSPEC_BAND_5G   0x1000

Definition at line 66 of file brcmu_wifi.h.

#define WL_CHANSPEC_BAND_MASK   0xf000

Definition at line 64 of file brcmu_wifi.h.

#define WL_CHANSPEC_BAND_SHIFT   12

Definition at line 65 of file brcmu_wifi.h.

#define WL_CHANSPEC_BW_10   0x0400

Definition at line 60 of file brcmu_wifi.h.

#define WL_CHANSPEC_BW_20   0x0800

Definition at line 61 of file brcmu_wifi.h.

#define WL_CHANSPEC_BW_40   0x0C00

Definition at line 62 of file brcmu_wifi.h.

#define WL_CHANSPEC_BW_MASK   0x0C00

Definition at line 58 of file brcmu_wifi.h.

#define WL_CHANSPEC_BW_SHIFT   10

Definition at line 59 of file brcmu_wifi.h.

#define WL_CHANSPEC_CHAN_MASK   0x00ff

Definition at line 49 of file brcmu_wifi.h.

#define WL_CHANSPEC_CHAN_SHIFT   0

Definition at line 50 of file brcmu_wifi.h.

#define WL_CHANSPEC_CTL_SB_LOWER   0x0100

Definition at line 54 of file brcmu_wifi.h.

#define WL_CHANSPEC_CTL_SB_MASK   0x0300

Definition at line 52 of file brcmu_wifi.h.

#define WL_CHANSPEC_CTL_SB_NONE   0x0300

Definition at line 56 of file brcmu_wifi.h.

#define WL_CHANSPEC_CTL_SB_SHIFT   8

Definition at line 53 of file brcmu_wifi.h.

#define WL_CHANSPEC_CTL_SB_UPPER   0x0200

Definition at line 55 of file brcmu_wifi.h.

#define WPA2_AUTH_PSK   0x0080 /* Pre-shared key */

Definition at line 195 of file brcmu_wifi.h.

#define WPA2_AUTH_RESERVED1   0x0020

Definition at line 193 of file brcmu_wifi.h.

#define WPA2_AUTH_RESERVED3   0x0200

Definition at line 196 of file brcmu_wifi.h.

#define WPA2_AUTH_RESERVED4   0x0400

Definition at line 197 of file brcmu_wifi.h.

#define WPA2_AUTH_RESERVED5   0x0800

Definition at line 198 of file brcmu_wifi.h.

#define WPA2_AUTH_UNSPECIFIED   0x0040 /* over 802.1x */

Definition at line 194 of file brcmu_wifi.h.

#define WPA_AUTH_DISABLED   0x0000 /* Legacy (i.e., non-WPA) */

Definition at line 186 of file brcmu_wifi.h.

#define WPA_AUTH_NONE   0x0001 /* none (IBSS) */

Definition at line 187 of file brcmu_wifi.h.

#define WPA_AUTH_PSK   0x0004 /* Pre-shared key */

Definition at line 189 of file brcmu_wifi.h.

#define WPA_AUTH_RESERVED1   0x0008

Definition at line 190 of file brcmu_wifi.h.

#define WPA_AUTH_RESERVED2   0x0010

Definition at line 191 of file brcmu_wifi.h.

#define WPA_AUTH_UNSPECIFIED   0x0002 /* over 802.1x */

Definition at line 188 of file brcmu_wifi.h.

#define WSEC_SWFLAG   0x0008

Definition at line 181 of file brcmu_wifi.h.