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

Go to the source code of this file.

Data Structures

struct  p80211_hdr_a3
 
struct  p80211_hdr_a4
 
union  p80211_hdr
 

Macros

#define WLAN_CRC_LEN   4
 
#define WLAN_BSSID_LEN   6
 
#define WLAN_HDR_A3_LEN   24
 
#define WLAN_HDR_A4_LEN   30
 
#define WLAN_SSID_MAXLEN   32
 
#define WLAN_DATA_MAXLEN   2312
 
#define WLAN_WEP_IV_LEN   4
 
#define WLAN_WEP_ICV_LEN   4
 
#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_BLOCKACKREQ   0x8
 
#define WLAN_FSTYPE_BLOCKACK   0x9
 
#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_FTYPE(n)   ((((u16)(n)) & (BIT(2) | BIT(3))) >> 2)
 
#define WLAN_GET_FC_FSTYPE(n)   ((((u16)(n)) & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) >> 4)
 
#define WLAN_GET_FC_TODS(n)   ((((u16)(n)) & (BIT(8))) >> 8)
 
#define WLAN_GET_FC_FROMDS(n)   ((((u16)(n)) & (BIT(9))) >> 9)
 
#define WLAN_GET_FC_ISWEP(n)   ((((u16)(n)) & (BIT(14))) >> 14)
 
#define WLAN_SET_FC_FTYPE(n)   (((u16)(n)) << 2)
 
#define WLAN_SET_FC_FSTYPE(n)   (((u16)(n)) << 4)
 
#define WLAN_SET_FC_TODS(n)   (((u16)(n)) << 8)
 
#define WLAN_SET_FC_FROMDS(n)   (((u16)(n)) << 9)
 
#define WLAN_SET_FC_ISWEP(n)   (((u16)(n)) << 14)
 
#define DOT11_RATE5_ISBASIC_GET(r)   (((u8)(r)) & BIT(7))
 
#define WLAN_CTL_FRAMELEN(fstype)
 
#define WLAN_FCS_LEN   4
 

Variables

struct p80211_hdr_a3 __packed
 

Macro Definition Documentation

#define DOT11_RATE5_ISBASIC_GET (   r)    (((u8)(r)) & BIT(7))

Definition at line 146 of file p80211hdr.h.

#define WLAN_BSSID_LEN   6

Definition at line 67 of file p80211hdr.h.

#define WLAN_CRC_LEN   4

Definition at line 66 of file p80211hdr.h.

#define WLAN_CTL_FRAMELEN (   fstype)
Value:
(\
(fstype) == WLAN_FSTYPE_BLOCKACKREQ ? 24 : \
(fstype) == WLAN_FSTYPE_BLOCKACK ? 152 : \
(fstype) == WLAN_FSTYPE_PSPOLL ? 20 : \
(fstype) == WLAN_FSTYPE_RTS ? 20 : \
(fstype) == WLAN_FSTYPE_CTS ? 14 : \
(fstype) == WLAN_FSTYPE_ACK ? 14 : \
(fstype) == WLAN_FSTYPE_CFEND ? 20 : \
(fstype) == WLAN_FSTYPE_CFENDCFACK ? 20 : 4)

Definition at line 176 of file p80211hdr.h.

#define WLAN_DATA_MAXLEN   2312

Definition at line 71 of file p80211hdr.h.

#define WLAN_FCS_LEN   4

Definition at line 186 of file p80211hdr.h.

#define WLAN_FSTYPE_ACK   0x0d

Definition at line 101 of file p80211hdr.h.

#define WLAN_FSTYPE_ASSOCREQ   0x00

Definition at line 83 of file p80211hdr.h.

#define WLAN_FSTYPE_ASSOCRESP   0x01

Definition at line 84 of file p80211hdr.h.

#define WLAN_FSTYPE_ATIM   0x09

Definition at line 90 of file p80211hdr.h.

#define WLAN_FSTYPE_AUTHEN   0x0b

Definition at line 92 of file p80211hdr.h.

#define WLAN_FSTYPE_BEACON   0x08

Definition at line 89 of file p80211hdr.h.

#define WLAN_FSTYPE_BLOCKACK   0x9

Definition at line 97 of file p80211hdr.h.

#define WLAN_FSTYPE_BLOCKACKREQ   0x8

Definition at line 96 of file p80211hdr.h.

#define WLAN_FSTYPE_CFACK   0x05

Definition at line 111 of file p80211hdr.h.

#define WLAN_FSTYPE_CFACK_CFPOLL   0x07

Definition at line 113 of file p80211hdr.h.

#define WLAN_FSTYPE_CFEND   0x0e

Definition at line 102 of file p80211hdr.h.

#define WLAN_FSTYPE_CFENDCFACK   0x0f

Definition at line 103 of file p80211hdr.h.

#define WLAN_FSTYPE_CFPOLL   0x06

Definition at line 112 of file p80211hdr.h.

#define WLAN_FSTYPE_CTS   0x0c

Definition at line 100 of file p80211hdr.h.

#define WLAN_FSTYPE_DATA_CFACK   0x01

Definition at line 107 of file p80211hdr.h.

#define WLAN_FSTYPE_DATA_CFACK_CFPOLL   0x03

Definition at line 109 of file p80211hdr.h.

#define WLAN_FSTYPE_DATA_CFPOLL   0x02

Definition at line 108 of file p80211hdr.h.

#define WLAN_FSTYPE_DATAONLY   0x00

Definition at line 106 of file p80211hdr.h.

#define WLAN_FSTYPE_DEAUTHEN   0x0c

Definition at line 93 of file p80211hdr.h.

#define WLAN_FSTYPE_DISASSOC   0x0a

Definition at line 91 of file p80211hdr.h.

#define WLAN_FSTYPE_NULL   0x04

Definition at line 110 of file p80211hdr.h.

#define WLAN_FSTYPE_PROBEREQ   0x04

Definition at line 87 of file p80211hdr.h.

#define WLAN_FSTYPE_PROBERESP   0x05

Definition at line 88 of file p80211hdr.h.

#define WLAN_FSTYPE_PSPOLL   0x0a

Definition at line 98 of file p80211hdr.h.

#define WLAN_FSTYPE_REASSOCREQ   0x02

Definition at line 85 of file p80211hdr.h.

#define WLAN_FSTYPE_REASSOCRESP   0x03

Definition at line 86 of file p80211hdr.h.

#define WLAN_FSTYPE_RTS   0x0b

Definition at line 99 of file p80211hdr.h.

#define WLAN_FTYPE_CTL   0x01

Definition at line 78 of file p80211hdr.h.

#define WLAN_FTYPE_DATA   0x02

Definition at line 79 of file p80211hdr.h.

#define WLAN_FTYPE_MGMT   0x00

Definition at line 77 of file p80211hdr.h.

#define WLAN_GET_FC_FROMDS (   n)    ((((u16)(n)) & (BIT(9))) >> 9)

Definition at line 137 of file p80211hdr.h.

#define WLAN_GET_FC_FSTYPE (   n)    ((((u16)(n)) & (BIT(4)|BIT(5)|BIT(6)|BIT(7))) >> 4)

Definition at line 135 of file p80211hdr.h.

#define WLAN_GET_FC_FTYPE (   n)    ((((u16)(n)) & (BIT(2) | BIT(3))) >> 2)

Definition at line 134 of file p80211hdr.h.

#define WLAN_GET_FC_ISWEP (   n)    ((((u16)(n)) & (BIT(14))) >> 14)

Definition at line 138 of file p80211hdr.h.

#define WLAN_GET_FC_TODS (   n)    ((((u16)(n)) & (BIT(8))) >> 8)

Definition at line 136 of file p80211hdr.h.

#define WLAN_HDR_A3_LEN   24

Definition at line 68 of file p80211hdr.h.

#define WLAN_HDR_A4_LEN   30

Definition at line 69 of file p80211hdr.h.

#define WLAN_SET_FC_FROMDS (   n)    (((u16)(n)) << 9)

Definition at line 143 of file p80211hdr.h.

#define WLAN_SET_FC_FSTYPE (   n)    (((u16)(n)) << 4)

Definition at line 141 of file p80211hdr.h.

#define WLAN_SET_FC_FTYPE (   n)    (((u16)(n)) << 2)

Definition at line 140 of file p80211hdr.h.

#define WLAN_SET_FC_ISWEP (   n)    (((u16)(n)) << 14)

Definition at line 144 of file p80211hdr.h.

#define WLAN_SET_FC_TODS (   n)    (((u16)(n)) << 8)

Definition at line 142 of file p80211hdr.h.

#define WLAN_SSID_MAXLEN   32

Definition at line 70 of file p80211hdr.h.

#define WLAN_WEP_ICV_LEN   4

Definition at line 73 of file p80211hdr.h.

#define WLAN_WEP_IV_LEN   4

Definition at line 72 of file p80211hdr.h.

Variable Documentation