Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions | Variables
80211hdr.h File Reference
#include "ttype.h"

Go to the source code of this file.

Data Structures

struct  IEEE_ADDR
 
struct  tagWLAN_80211HDR_A2
 
struct  tagWLAN_80211HDR_A3
 
struct  tagWLAN_80211HDR_A4
 
union  tagUWLAN_80211HDR
 

Macros

#define BIT0   0x00000001
 
#define BIT1   0x00000002
 
#define BIT2   0x00000004
 
#define BIT3   0x00000008
 
#define BIT4   0x00000010
 
#define BIT5   0x00000020
 
#define BIT6   0x00000040
 
#define BIT7   0x00000080
 
#define BIT8   0x00000100
 
#define BIT9   0x00000200
 
#define BIT10   0x00000400
 
#define BIT11   0x00000800
 
#define BIT12   0x00001000
 
#define BIT13   0x00002000
 
#define BIT14   0x00004000
 
#define BIT15   0x00008000
 
#define BIT16   0x00010000
 
#define BIT17   0x00020000
 
#define BIT18   0x00040000
 
#define BIT19   0x00080000
 
#define BIT20   0x00100000
 
#define BIT21   0x00200000
 
#define BIT22   0x00400000
 
#define BIT23   0x00800000
 
#define BIT24   0x01000000
 
#define BIT25   0x02000000
 
#define BIT26   0x04000000
 
#define BIT27   0x08000000
 
#define BIT28   0x10000000
 
#define BIT29   0x20000000
 
#define BIT30   0x40000000
 
#define BIT31   0x80000000
 
#define WLAN_ADDR_LEN   6
 
#define WLAN_CRC_LEN   4
 
#define WLAN_CRC32_LEN   4
 
#define WLAN_FCS_LEN   4
 
#define WLAN_BSSID_LEN   6
 
#define WLAN_BSS_TS_LEN   8
 
#define WLAN_HDR_ADDR2_LEN   16
 
#define WLAN_HDR_ADDR3_LEN   24
 
#define WLAN_HDR_ADDR4_LEN   30
 
#define WLAN_IEHDR_LEN   2
 
#define WLAN_SSID_MAXLEN   32
 
#define WLAN_RATES_MAXLEN   16
 
#define WLAN_RATES_MAXLEN_11B   4
 
#define WLAN_RSN_MAXLEN   32
 
#define WLAN_DATA_MAXLEN   2312
 
#define WLAN_A3FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN)
 
#define WLAN_BEACON_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_ATIM_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 0)
 
#define WLAN_NULLDATA_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 0)
 
#define WLAN_DISASSOC_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 2)
 
#define WLAN_ASSOCREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_ASSOCRESP_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_REASSOCREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_REASSOCRESP_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_PROBEREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_PROBERESP_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_AUTHEN_FR_MAXLEN   WLAN_A3FR_MAXLEN
 
#define WLAN_DEAUTHEN_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 2)
 
#define WLAN_WEP_NKEYS   4
 
#define WLAN_WEP40_KEYLEN   5
 
#define WLAN_WEP104_KEYLEN   13
 
#define WLAN_WEP232_KEYLEN   29
 
#define WLAN_WEPMAX_KEYLEN   32
 
#define WLAN_CHALLENGE_IE_MAXLEN   255
 
#define WLAN_CHALLENGE_IE_LEN   130
 
#define WLAN_CHALLENGE_LEN   128
 
#define WLAN_WEP_IV_LEN   4
 
#define WLAN_WEP_ICV_LEN   4
 
#define WLAN_FRAGS_MAX   16
 
#define WLAN_TYPE_MGR   0x00
 
#define WLAN_TYPE_CTL   0x01
 
#define WLAN_TYPE_DATA   0x02
 
#define WLAN_FTYPE_MGMT   0x00
 
#define WLAN_FTYPE_CTL   0x01
 
#define WLAN_FTYPE_DATA   0x02
 
#define WLAN_FSTYPE_ASSOCREQ   0x00
 
#define WLAN_FSTYPE_ASSOCRESP   0x01
 
#define WLAN_FSTYPE_REASSOCREQ   0x02
 
#define WLAN_FSTYPE_REASSOCRESP   0x03
 
#define WLAN_FSTYPE_PROBEREQ   0x04
 
#define WLAN_FSTYPE_PROBERESP   0x05
 
#define WLAN_FSTYPE_BEACON   0x08
 
#define WLAN_FSTYPE_ATIM   0x09
 
#define WLAN_FSTYPE_DISASSOC   0x0a
 
#define WLAN_FSTYPE_AUTHEN   0x0b
 
#define WLAN_FSTYPE_DEAUTHEN   0x0c
 
#define WLAN_FSTYPE_ACTION   0x0d
 
#define WLAN_FSTYPE_PSPOLL   0x0a
 
#define WLAN_FSTYPE_RTS   0x0b
 
#define WLAN_FSTYPE_CTS   0x0c
 
#define WLAN_FSTYPE_ACK   0x0d
 
#define WLAN_FSTYPE_CFEND   0x0e
 
#define WLAN_FSTYPE_CFENDCFACK   0x0f
 
#define WLAN_FSTYPE_DATAONLY   0x00
 
#define WLAN_FSTYPE_DATA_CFACK   0x01
 
#define WLAN_FSTYPE_DATA_CFPOLL   0x02
 
#define WLAN_FSTYPE_DATA_CFACK_CFPOLL   0x03
 
#define WLAN_FSTYPE_NULL   0x04
 
#define WLAN_FSTYPE_CFACK   0x05
 
#define WLAN_FSTYPE_CFPOLL   0x06
 
#define WLAN_FSTYPE_CFACK_CFPOLL   0x07
 
#define WLAN_GET_FC_PRVER(n)   (((unsigned short)(n)) & (BIT0 | BIT1))
 
#define WLAN_GET_FC_FTYPE(n)   ((((unsigned short)(n)) & (BIT2 | BIT3)) >> 2)
 
#define WLAN_GET_FC_FSTYPE(n)   ((((unsigned short)(n)) & (BIT4|BIT5|BIT6|BIT7)) >> 4)
 
#define WLAN_GET_FC_TODS(n)   ((((unsigned short)(n)) & (BIT8)) >> 8)
 
#define WLAN_GET_FC_FROMDS(n)   ((((unsigned short)(n)) & (BIT9)) >> 9)
 
#define WLAN_GET_FC_MOREFRAG(n)   ((((unsigned short)(n)) & (BIT10)) >> 10)
 
#define WLAN_GET_FC_RETRY(n)   ((((unsigned short)(n)) & (BIT11)) >> 11)
 
#define WLAN_GET_FC_PWRMGT(n)   ((((unsigned short)(n)) & (BIT12)) >> 12)
 
#define WLAN_GET_FC_MOREDATA(n)   ((((unsigned short)(n)) & (BIT13)) >> 13)
 
#define WLAN_GET_FC_ISWEP(n)   ((((unsigned short)(n)) & (BIT14)) >> 14)
 
#define WLAN_GET_FC_ORDER(n)   ((((unsigned short)(n)) & (BIT15)) >> 15)
 
#define WLAN_GET_SEQ_FRGNUM(n)   (((unsigned short)(n)) & (BIT0|BIT1|BIT2|BIT3))
 
#define WLAN_GET_SEQ_SEQNUM(n)   ((((unsigned short)(n)) & (~(BIT0|BIT1|BIT2|BIT3))) >> 4)
 
#define WLAN_GET_CAP_INFO_ESS(n)   ((n) & BIT0)
 
#define WLAN_GET_CAP_INFO_IBSS(n)   (((n) & BIT1) >> 1)
 
#define WLAN_GET_CAP_INFO_CFPOLLABLE(n)   (((n) & BIT2) >> 2)
 
#define WLAN_GET_CAP_INFO_CFPOLLREQ(n)   (((n) & BIT3) >> 3)
 
#define WLAN_GET_CAP_INFO_PRIVACY(n)   (((n) & BIT4) >> 4)
 
#define WLAN_GET_CAP_INFO_SHORTPREAMBLE(n)   (((n) & BIT5) >> 5)
 
#define WLAN_GET_CAP_INFO_PBCC(n)   (((n) & BIT6) >> 6)
 
#define WLAN_GET_CAP_INFO_AGILITY(n)   (((n) & BIT7) >> 7)
 
#define WLAN_GET_CAP_INFO_SPECTRUMMNG(n)   (((n) & BIT8) >> 10)
 
#define WLAN_GET_CAP_INFO_SHORTSLOTTIME(n)   (((n) & BIT10) >> 10)
 
#define WLAN_GET_CAP_INFO_DSSSOFDM(n)   (((n) & BIT13) >> 13)
 
#define WLAN_GET_CAP_INFO_GRPACK(n)   (((n) & BIT14) >> 14)
 
#define WLAN_SET_CAP_INFO_ESS(n)   (n)
 
#define WLAN_SET_CAP_INFO_IBSS(n)   ((n) << 1)
 
#define WLAN_SET_CAP_INFO_CFPOLLABLE(n)   ((n) << 2)
 
#define WLAN_SET_CAP_INFO_CFPOLLREQ(n)   ((n) << 3)
 
#define WLAN_SET_CAP_INFO_PRIVACY(n)   ((n) << 4)
 
#define WLAN_SET_CAP_INFO_SHORTPREAMBLE(n)   ((n) << 5)
 
#define WLAN_SET_CAP_INFO_SPECTRUMMNG(n)   ((n) << 8)
 
#define WLAN_SET_CAP_INFO_PBCC(n)   ((n) << 6)
 
#define WLAN_SET_CAP_INFO_AGILITY(n)   ((n) << 7)
 
#define WLAN_SET_CAP_INFO_SHORTSLOTTIME(n)   ((n) << 10)
 
#define WLAN_SET_CAP_INFO_DSSSOFDM(n)   ((n) << 13)
 
#define WLAN_SET_CAP_INFO_GRPACK(n)   ((n) << 14)
 
#define WLAN_SET_FC_PRVER(n)   ((unsigned short)(n))
 
#define WLAN_SET_FC_FTYPE(n)   (((unsigned short)(n)) << 2)
 
#define WLAN_SET_FC_FSTYPE(n)   (((unsigned short)(n)) << 4)
 
#define WLAN_SET_FC_TODS(n)   (((unsigned short)(n)) << 8)
 
#define WLAN_SET_FC_FROMDS(n)   (((unsigned short)(n)) << 9)
 
#define WLAN_SET_FC_MOREFRAG(n)   (((unsigned short)(n)) << 10)
 
#define WLAN_SET_FC_RETRY(n)   (((unsigned short)(n)) << 11)
 
#define WLAN_SET_FC_PWRMGT(n)   (((unsigned short)(n)) << 12)
 
#define WLAN_SET_FC_MOREDATA(n)   (((unsigned short)(n)) << 13)
 
#define WLAN_SET_FC_ISWEP(n)   (((unsigned short)(n)) << 14)
 
#define WLAN_SET_FC_ORDER(n)   (((unsigned short)(n)) << 15)
 
#define WLAN_SET_SEQ_FRGNUM(n)   ((unsigned short)(n))
 
#define WLAN_SET_SEQ_SEQNUM(n)   (((unsigned short)(n)) << 4)
 
#define WLAN_GET_ERP_NONERP_PRESENT(n)   ((n) & BIT0)
 
#define WLAN_GET_ERP_USE_PROTECTION(n)   (((n) & BIT1) >> 1)
 
#define WLAN_GET_ERP_BARKER_MODE(n)   (((n) & BIT2) >> 2)
 
#define WLAN_SET_ERP_NONERP_PRESENT(n)   (n)
 
#define WLAN_SET_ERP_USE_PROTECTION(n)   ((n) << 1)
 
#define WLAN_SET_ERP_BARKER_MODE(n)   ((n) << 2)
 
#define WLAN_MGMT_IS_BASICRATE(b)   ((b) & BIT7)
 
#define WLAN_MGMT_GET_RATE(b)   ((b) & ~BIT7)
 
#define WLAN_MGMT_IS_MULTICAST_TIM(b)   ((b) & BIT0)
 
#define WLAN_MGMT_GET_TIM_OFFSET(b)   (((b) & ~BIT0) >> 1)
 
#define WLAN_HDR_A3_DATA_PTR(p)   (((unsigned char *)(p)) + WLAN_HDR_ADDR3_LEN)
 
#define WLAN_HDR_A4_DATA_PTR(p)   (((unsigned char *)(p)) + WLAN_HDR_ADDR4_LEN)
 
#define IEEE_ADDR_UNIVERSAL   0x02
 
#define IEEE_ADDR_GROUP   0x01
 

Typedefs

typedef struct IEEE_ADDRPIEEE_ADDR
 
typedef union tagUWLAN_80211HDR UWLAN_80211HDR
 
typedef union tagUWLAN_80211HDRPUWLAN_80211HDR
 

Functions

struct tagWLAN_80211HDR_A2 __attribute__ ((__packed__)) WLAN_80211HDR_A2
 

Variables

unsigned short wFrameCtl
 
unsigned short wDurationID
 
unsigned char abyAddr1 [WLAN_ADDR_LEN]
 
unsigned char abyAddr2 [WLAN_ADDR_LEN]
 
struct tagWLAN_80211HDR_A2PWLAN_80211HDR_A2
 
unsigned char abyAddr3 [WLAN_ADDR_LEN]
 
unsigned short wSeqCtl
 
struct tagWLAN_80211HDR_A3PWLAN_80211HDR_A3
 
unsigned char abyAddr4 [WLAN_ADDR_LEN]
 
struct tagWLAN_80211HDR_A4PWLAN_80211HDR_A4
 

Macro Definition Documentation

#define BIT0   0x00000001

Definition at line 38 of file 80211hdr.h.

#define BIT1   0x00000002

Definition at line 39 of file 80211hdr.h.

#define BIT10   0x00000400

Definition at line 48 of file 80211hdr.h.

#define BIT11   0x00000800

Definition at line 49 of file 80211hdr.h.

#define BIT12   0x00001000

Definition at line 50 of file 80211hdr.h.

#define BIT13   0x00002000

Definition at line 51 of file 80211hdr.h.

#define BIT14   0x00004000

Definition at line 52 of file 80211hdr.h.

#define BIT15   0x00008000

Definition at line 53 of file 80211hdr.h.

#define BIT16   0x00010000

Definition at line 54 of file 80211hdr.h.

#define BIT17   0x00020000

Definition at line 55 of file 80211hdr.h.

#define BIT18   0x00040000

Definition at line 56 of file 80211hdr.h.

#define BIT19   0x00080000

Definition at line 57 of file 80211hdr.h.

#define BIT2   0x00000004

Definition at line 40 of file 80211hdr.h.

#define BIT20   0x00100000

Definition at line 58 of file 80211hdr.h.

#define BIT21   0x00200000

Definition at line 59 of file 80211hdr.h.

#define BIT22   0x00400000

Definition at line 60 of file 80211hdr.h.

#define BIT23   0x00800000

Definition at line 61 of file 80211hdr.h.

#define BIT24   0x01000000

Definition at line 62 of file 80211hdr.h.

#define BIT25   0x02000000

Definition at line 63 of file 80211hdr.h.

#define BIT26   0x04000000

Definition at line 64 of file 80211hdr.h.

#define BIT27   0x08000000

Definition at line 65 of file 80211hdr.h.

#define BIT28   0x10000000

Definition at line 66 of file 80211hdr.h.

#define BIT29   0x20000000

Definition at line 67 of file 80211hdr.h.

#define BIT3   0x00000008

Definition at line 41 of file 80211hdr.h.

#define BIT30   0x40000000

Definition at line 68 of file 80211hdr.h.

#define BIT31   0x80000000

Definition at line 69 of file 80211hdr.h.

#define BIT4   0x00000010

Definition at line 42 of file 80211hdr.h.

#define BIT5   0x00000020

Definition at line 43 of file 80211hdr.h.

#define BIT6   0x00000040

Definition at line 44 of file 80211hdr.h.

#define BIT7   0x00000080

Definition at line 45 of file 80211hdr.h.

#define BIT8   0x00000100

Definition at line 46 of file 80211hdr.h.

#define BIT9   0x00000200

Definition at line 47 of file 80211hdr.h.

#define IEEE_ADDR_GROUP   0x01

Definition at line 288 of file 80211hdr.h.

#define IEEE_ADDR_UNIVERSAL   0x02

Definition at line 287 of file 80211hdr.h.

#define WLAN_A3FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN)

Definition at line 87 of file 80211hdr.h.

#define WLAN_ADDR_LEN   6

Definition at line 72 of file 80211hdr.h.

#define WLAN_ASSOCREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 94 of file 80211hdr.h.

#define WLAN_ASSOCRESP_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 95 of file 80211hdr.h.

#define WLAN_ATIM_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 0)

Definition at line 91 of file 80211hdr.h.

#define WLAN_AUTHEN_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 100 of file 80211hdr.h.

#define WLAN_BEACON_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 90 of file 80211hdr.h.

#define WLAN_BSS_TS_LEN   8

Definition at line 77 of file 80211hdr.h.

#define WLAN_BSSID_LEN   6

Definition at line 76 of file 80211hdr.h.

#define WLAN_CHALLENGE_IE_LEN   130

Definition at line 110 of file 80211hdr.h.

#define WLAN_CHALLENGE_IE_MAXLEN   255

Definition at line 109 of file 80211hdr.h.

#define WLAN_CHALLENGE_LEN   128

Definition at line 111 of file 80211hdr.h.

#define WLAN_CRC32_LEN   4

Definition at line 74 of file 80211hdr.h.

#define WLAN_CRC_LEN   4

Definition at line 73 of file 80211hdr.h.

#define WLAN_DATA_MAXLEN   2312

Definition at line 86 of file 80211hdr.h.

#define WLAN_DEAUTHEN_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 2)

Definition at line 101 of file 80211hdr.h.

#define WLAN_DISASSOC_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 2)

Definition at line 93 of file 80211hdr.h.

#define WLAN_FCS_LEN   4

Definition at line 75 of file 80211hdr.h.

#define WLAN_FRAGS_MAX   16

Definition at line 114 of file 80211hdr.h.

#define WLAN_FSTYPE_ACK   0x0d

Definition at line 144 of file 80211hdr.h.

#define WLAN_FSTYPE_ACTION   0x0d

Definition at line 138 of file 80211hdr.h.

#define WLAN_FSTYPE_ASSOCREQ   0x00

Definition at line 127 of file 80211hdr.h.

#define WLAN_FSTYPE_ASSOCRESP   0x01

Definition at line 128 of file 80211hdr.h.

#define WLAN_FSTYPE_ATIM   0x09

Definition at line 134 of file 80211hdr.h.

#define WLAN_FSTYPE_AUTHEN   0x0b

Definition at line 136 of file 80211hdr.h.

#define WLAN_FSTYPE_BEACON   0x08

Definition at line 133 of file 80211hdr.h.

#define WLAN_FSTYPE_CFACK   0x05

Definition at line 154 of file 80211hdr.h.

#define WLAN_FSTYPE_CFACK_CFPOLL   0x07

Definition at line 156 of file 80211hdr.h.

#define WLAN_FSTYPE_CFEND   0x0e

Definition at line 145 of file 80211hdr.h.

#define WLAN_FSTYPE_CFENDCFACK   0x0f

Definition at line 146 of file 80211hdr.h.

#define WLAN_FSTYPE_CFPOLL   0x06

Definition at line 155 of file 80211hdr.h.

#define WLAN_FSTYPE_CTS   0x0c

Definition at line 143 of file 80211hdr.h.

#define WLAN_FSTYPE_DATA_CFACK   0x01

Definition at line 150 of file 80211hdr.h.

#define WLAN_FSTYPE_DATA_CFACK_CFPOLL   0x03

Definition at line 152 of file 80211hdr.h.

#define WLAN_FSTYPE_DATA_CFPOLL   0x02

Definition at line 151 of file 80211hdr.h.

#define WLAN_FSTYPE_DATAONLY   0x00

Definition at line 149 of file 80211hdr.h.

#define WLAN_FSTYPE_DEAUTHEN   0x0c

Definition at line 137 of file 80211hdr.h.

#define WLAN_FSTYPE_DISASSOC   0x0a

Definition at line 135 of file 80211hdr.h.

#define WLAN_FSTYPE_NULL   0x04

Definition at line 153 of file 80211hdr.h.

#define WLAN_FSTYPE_PROBEREQ   0x04

Definition at line 131 of file 80211hdr.h.

#define WLAN_FSTYPE_PROBERESP   0x05

Definition at line 132 of file 80211hdr.h.

#define WLAN_FSTYPE_PSPOLL   0x0a

Definition at line 141 of file 80211hdr.h.

#define WLAN_FSTYPE_REASSOCREQ   0x02

Definition at line 129 of file 80211hdr.h.

#define WLAN_FSTYPE_REASSOCRESP   0x03

Definition at line 130 of file 80211hdr.h.

#define WLAN_FSTYPE_RTS   0x0b

Definition at line 142 of file 80211hdr.h.

#define WLAN_FTYPE_CTL   0x01

Definition at line 122 of file 80211hdr.h.

#define WLAN_FTYPE_DATA   0x02

Definition at line 123 of file 80211hdr.h.

#define WLAN_FTYPE_MGMT   0x00

Definition at line 121 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_AGILITY (   n)    (((n) & BIT7) >> 7)

Definition at line 223 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_CFPOLLABLE (   n)    (((n) & BIT2) >> 2)

Definition at line 218 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_CFPOLLREQ (   n)    (((n) & BIT3) >> 3)

Definition at line 219 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_DSSSOFDM (   n)    (((n) & BIT13) >> 13)

Definition at line 226 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_ESS (   n)    ((n) & BIT0)

Definition at line 216 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_GRPACK (   n)    (((n) & BIT14) >> 14)

Definition at line 227 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_IBSS (   n)    (((n) & BIT1) >> 1)

Definition at line 217 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_PBCC (   n)    (((n) & BIT6) >> 6)

Definition at line 222 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_PRIVACY (   n)    (((n) & BIT4) >> 4)

Definition at line 220 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_SHORTPREAMBLE (   n)    (((n) & BIT5) >> 5)

Definition at line 221 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_SHORTSLOTTIME (   n)    (((n) & BIT10) >> 10)

Definition at line 225 of file 80211hdr.h.

#define WLAN_GET_CAP_INFO_SPECTRUMMNG (   n)    (((n) & BIT8) >> 10)

Definition at line 224 of file 80211hdr.h.

#define WLAN_GET_ERP_BARKER_MODE (   n)    (((n) & BIT2) >> 2)

Definition at line 266 of file 80211hdr.h.

#define WLAN_GET_ERP_NONERP_PRESENT (   n)    ((n) & BIT0)

Definition at line 264 of file 80211hdr.h.

#define WLAN_GET_ERP_USE_PROTECTION (   n)    (((n) & BIT1) >> 1)

Definition at line 265 of file 80211hdr.h.

#define WLAN_GET_FC_FROMDS (   n)    ((((unsigned short)(n)) & (BIT9)) >> 9)

Definition at line 201 of file 80211hdr.h.

#define WLAN_GET_FC_FSTYPE (   n)    ((((unsigned short)(n)) & (BIT4|BIT5|BIT6|BIT7)) >> 4)

Definition at line 199 of file 80211hdr.h.

#define WLAN_GET_FC_FTYPE (   n)    ((((unsigned short)(n)) & (BIT2 | BIT3)) >> 2)

Definition at line 198 of file 80211hdr.h.

#define WLAN_GET_FC_ISWEP (   n)    ((((unsigned short)(n)) & (BIT14)) >> 14)

Definition at line 206 of file 80211hdr.h.

#define WLAN_GET_FC_MOREDATA (   n)    ((((unsigned short)(n)) & (BIT13)) >> 13)

Definition at line 205 of file 80211hdr.h.

#define WLAN_GET_FC_MOREFRAG (   n)    ((((unsigned short)(n)) & (BIT10)) >> 10)

Definition at line 202 of file 80211hdr.h.

#define WLAN_GET_FC_ORDER (   n)    ((((unsigned short)(n)) & (BIT15)) >> 15)

Definition at line 207 of file 80211hdr.h.

#define WLAN_GET_FC_PRVER (   n)    (((unsigned short)(n)) & (BIT0 | BIT1))

Definition at line 197 of file 80211hdr.h.

#define WLAN_GET_FC_PWRMGT (   n)    ((((unsigned short)(n)) & (BIT12)) >> 12)

Definition at line 204 of file 80211hdr.h.

#define WLAN_GET_FC_RETRY (   n)    ((((unsigned short)(n)) & (BIT11)) >> 11)

Definition at line 203 of file 80211hdr.h.

#define WLAN_GET_FC_TODS (   n)    ((((unsigned short)(n)) & (BIT8)) >> 8)

Definition at line 200 of file 80211hdr.h.

#define WLAN_GET_SEQ_FRGNUM (   n)    (((unsigned short)(n)) & (BIT0|BIT1|BIT2|BIT3))

Definition at line 211 of file 80211hdr.h.

#define WLAN_GET_SEQ_SEQNUM (   n)    ((((unsigned short)(n)) & (~(BIT0|BIT1|BIT2|BIT3))) >> 4)

Definition at line 212 of file 80211hdr.h.

#define WLAN_HDR_A3_DATA_PTR (   p)    (((unsigned char *)(p)) + WLAN_HDR_ADDR3_LEN)

Definition at line 283 of file 80211hdr.h.

#define WLAN_HDR_A4_DATA_PTR (   p)    (((unsigned char *)(p)) + WLAN_HDR_ADDR4_LEN)

Definition at line 284 of file 80211hdr.h.

#define WLAN_HDR_ADDR2_LEN   16

Definition at line 78 of file 80211hdr.h.

#define WLAN_HDR_ADDR3_LEN   24

Definition at line 79 of file 80211hdr.h.

#define WLAN_HDR_ADDR4_LEN   30

Definition at line 80 of file 80211hdr.h.

#define WLAN_IEHDR_LEN   2

Definition at line 81 of file 80211hdr.h.

#define WLAN_MGMT_GET_RATE (   b)    ((b) & ~BIT7)

Definition at line 276 of file 80211hdr.h.

#define WLAN_MGMT_GET_TIM_OFFSET (   b)    (((b) & ~BIT0) >> 1)

Definition at line 280 of file 80211hdr.h.

#define WLAN_MGMT_IS_BASICRATE (   b)    ((b) & BIT7)

Definition at line 275 of file 80211hdr.h.

#define WLAN_MGMT_IS_MULTICAST_TIM (   b)    ((b) & BIT0)

Definition at line 279 of file 80211hdr.h.

#define WLAN_NULLDATA_FR_MAXLEN   (WLAN_HDR_ADDR3_LEN + 0)

Definition at line 92 of file 80211hdr.h.

#define WLAN_PROBEREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 98 of file 80211hdr.h.

#define WLAN_PROBERESP_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 99 of file 80211hdr.h.

#define WLAN_RATES_MAXLEN   16

Definition at line 83 of file 80211hdr.h.

#define WLAN_RATES_MAXLEN_11B   4

Definition at line 84 of file 80211hdr.h.

#define WLAN_REASSOCREQ_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 96 of file 80211hdr.h.

#define WLAN_REASSOCRESP_FR_MAXLEN   WLAN_A3FR_MAXLEN

Definition at line 97 of file 80211hdr.h.

#define WLAN_RSN_MAXLEN   32

Definition at line 85 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_AGILITY (   n)    ((n) << 7)

Definition at line 241 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_CFPOLLABLE (   n)    ((n) << 2)

Definition at line 235 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_CFPOLLREQ (   n)    ((n) << 3)

Definition at line 236 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_DSSSOFDM (   n)    ((n) << 13)

Definition at line 243 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_ESS (   n)    (n)

Definition at line 233 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_GRPACK (   n)    ((n) << 14)

Definition at line 244 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_IBSS (   n)    ((n) << 1)

Definition at line 234 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_PBCC (   n)    ((n) << 6)

Definition at line 240 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_PRIVACY (   n)    ((n) << 4)

Definition at line 237 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_SHORTPREAMBLE (   n)    ((n) << 5)

Definition at line 238 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_SHORTSLOTTIME (   n)    ((n) << 10)

Definition at line 242 of file 80211hdr.h.

#define WLAN_SET_CAP_INFO_SPECTRUMMNG (   n)    ((n) << 8)

Definition at line 239 of file 80211hdr.h.

#define WLAN_SET_ERP_BARKER_MODE (   n)    ((n) << 2)

Definition at line 270 of file 80211hdr.h.

#define WLAN_SET_ERP_NONERP_PRESENT (   n)    (n)

Definition at line 268 of file 80211hdr.h.

#define WLAN_SET_ERP_USE_PROTECTION (   n)    ((n) << 1)

Definition at line 269 of file 80211hdr.h.

#define WLAN_SET_FC_FROMDS (   n)    (((unsigned short)(n)) << 9)

Definition at line 251 of file 80211hdr.h.

#define WLAN_SET_FC_FSTYPE (   n)    (((unsigned short)(n)) << 4)

Definition at line 249 of file 80211hdr.h.

#define WLAN_SET_FC_FTYPE (   n)    (((unsigned short)(n)) << 2)

Definition at line 248 of file 80211hdr.h.

#define WLAN_SET_FC_ISWEP (   n)    (((unsigned short)(n)) << 14)

Definition at line 256 of file 80211hdr.h.

#define WLAN_SET_FC_MOREDATA (   n)    (((unsigned short)(n)) << 13)

Definition at line 255 of file 80211hdr.h.

#define WLAN_SET_FC_MOREFRAG (   n)    (((unsigned short)(n)) << 10)

Definition at line 252 of file 80211hdr.h.

#define WLAN_SET_FC_ORDER (   n)    (((unsigned short)(n)) << 15)

Definition at line 257 of file 80211hdr.h.

#define WLAN_SET_FC_PRVER (   n)    ((unsigned short)(n))

Definition at line 247 of file 80211hdr.h.

#define WLAN_SET_FC_PWRMGT (   n)    (((unsigned short)(n)) << 12)

Definition at line 254 of file 80211hdr.h.

#define WLAN_SET_FC_RETRY (   n)    (((unsigned short)(n)) << 11)

Definition at line 253 of file 80211hdr.h.

#define WLAN_SET_FC_TODS (   n)    (((unsigned short)(n)) << 8)

Definition at line 250 of file 80211hdr.h.

#define WLAN_SET_SEQ_FRGNUM (   n)    ((unsigned short)(n))

Definition at line 259 of file 80211hdr.h.

#define WLAN_SET_SEQ_SEQNUM (   n)    (((unsigned short)(n)) << 4)

Definition at line 260 of file 80211hdr.h.

#define WLAN_SSID_MAXLEN   32

Definition at line 82 of file 80211hdr.h.

#define WLAN_TYPE_CTL   0x01

Definition at line 118 of file 80211hdr.h.

#define WLAN_TYPE_DATA   0x02

Definition at line 119 of file 80211hdr.h.

#define WLAN_TYPE_MGR   0x00

Definition at line 117 of file 80211hdr.h.

#define WLAN_WEP104_KEYLEN   13

Definition at line 106 of file 80211hdr.h.

#define WLAN_WEP232_KEYLEN   29

Definition at line 107 of file 80211hdr.h.

#define WLAN_WEP40_KEYLEN   5

Definition at line 105 of file 80211hdr.h.

#define WLAN_WEP_ICV_LEN   4

Definition at line 113 of file 80211hdr.h.

#define WLAN_WEP_IV_LEN   4

Definition at line 112 of file 80211hdr.h.

#define WLAN_WEP_NKEYS   4

Definition at line 104 of file 80211hdr.h.

#define WLAN_WEPMAX_KEYLEN   32

Definition at line 108 of file 80211hdr.h.

Typedef Documentation

Function Documentation

struct tagWLAN_80211HDR_A2 __attribute__ ( (__packed__)  )
read

Definition at line 85 of file mpc512x_dma.c.

Variable Documentation

BYTE abyAddr1

Definition at line 308 of file 80211hdr.h.

BYTE abyAddr2

Definition at line 309 of file 80211hdr.h.

BYTE abyAddr3

Definition at line 322 of file 80211hdr.h.

unsigned char abyAddr4[WLAN_ADDR_LEN]

Definition at line 337 of file 80211hdr.h.

struct tagWLAN_80211HDR_A2 * PWLAN_80211HDR_A2

Definition at line 304 of file 80211hdr.h.

struct tagWLAN_80211HDR_A3 * PWLAN_80211HDR_A3

Definition at line 316 of file 80211hdr.h.

struct tagWLAN_80211HDR_A4 * PWLAN_80211HDR_A4

Definition at line 329 of file 80211hdr.h.

WORD wDurationID

Definition at line 307 of file 80211hdr.h.

WORD wFrameCtl

Definition at line 306 of file 80211hdr.h.

WORD wSeqCtl

Definition at line 323 of file 80211hdr.h.