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

Go to the source code of this file.

Data Structures

struct  wlan_ie
 
struct  wlan_ie_ssid
 
struct  wlan_ie_supp_rates
 
struct  wlan_ie_fh_parms
 
struct  wlan_ie_ds_parms
 
struct  wlan_ie_cf_parms
 
struct  wlan_ie_tim
 
struct  wlan_ie_ibss_parms
 
struct  wlan_ie_challenge
 
struct  wlan_fr_mgmt
 
struct  wlan_fr_beacon
 
struct  wlan_fr_ibssatim
 
struct  wlan_fr_disassoc
 
struct  wlan_fr_assocreq
 
struct  wlan_fr_assocresp
 
struct  wlan_fr_reassocreq
 
struct  wlan_fr_reassocresp
 
struct  wlan_fr_probereq
 
struct  wlan_fr_proberesp
 
struct  wlan_fr_authen
 
struct  wlan_fr_deauthen
 

Macros

#define WLAN_EID_SSID   0
 
#define WLAN_EID_SUPP_RATES   1
 
#define WLAN_EID_FH_PARMS   2
 
#define WLAN_EID_DS_PARMS   3
 
#define WLAN_EID_CF_PARMS   4
 
#define WLAN_EID_TIM   5
 
#define WLAN_EID_IBSS_PARMS   6
 
#define WLAN_EID_CHALLENGE   16
 
#define WLAN_MGMT_REASON_RSVD   0
 
#define WLAN_MGMT_REASON_UNSPEC   1
 
#define WLAN_MGMT_REASON_PRIOR_AUTH_INVALID   2
 
#define WLAN_MGMT_REASON_DEAUTH_LEAVING   3
 
#define WLAN_MGMT_REASON_DISASSOC_INACTIVE   4
 
#define WLAN_MGMT_REASON_DISASSOC_AP_BUSY   5
 
#define WLAN_MGMT_REASON_CLASS2_NONAUTH   6
 
#define WLAN_MGMT_REASON_CLASS3_NONASSOC   7
 
#define WLAN_MGMT_REASON_DISASSOC_STA_HASLEFT   8
 
#define WLAN_MGMT_REASON_CANT_ASSOC_NONAUTH   9
 
#define WLAN_MGMT_STATUS_SUCCESS   0
 
#define WLAN_MGMT_STATUS_UNSPEC_FAILURE   1
 
#define WLAN_MGMT_STATUS_CAPS_UNSUPPORTED   10
 
#define WLAN_MGMT_STATUS_REASSOC_NO_ASSOC   11
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_UNSPEC   12
 
#define WLAN_MGMT_STATUS_UNSUPPORTED_AUTHALG   13
 
#define WLAN_MGMT_STATUS_RX_AUTH_NOSEQ   14
 
#define WLAN_MGMT_STATUS_CHALLENGE_FAIL   15
 
#define WLAN_MGMT_STATUS_AUTH_TIMEOUT   16
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_BUSY   17
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_RATES   18
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOSHORT   19
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOPBCC   20
 
#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOAGILITY   21
 
#define WLAN_AUTH_ALG_OPENSYSTEM   0
 
#define WLAN_AUTH_ALG_SHAREDKEY   1
 
#define WLAN_BEACON_OFF_TS   0
 
#define WLAN_BEACON_OFF_BCN_int   8
 
#define WLAN_BEACON_OFF_CAPINFO   10
 
#define WLAN_BEACON_OFF_SSID   12
 
#define WLAN_DISASSOC_OFF_REASON   0
 
#define WLAN_ASSOCREQ_OFF_CAP_INFO   0
 
#define WLAN_ASSOCREQ_OFF_LISTEN_int   2
 
#define WLAN_ASSOCREQ_OFF_SSID   4
 
#define WLAN_ASSOCRESP_OFF_CAP_INFO   0
 
#define WLAN_ASSOCRESP_OFF_STATUS   2
 
#define WLAN_ASSOCRESP_OFF_AID   4
 
#define WLAN_ASSOCRESP_OFF_SUPP_RATES   6
 
#define WLAN_REASSOCREQ_OFF_CAP_INFO   0
 
#define WLAN_REASSOCREQ_OFF_LISTEN_int   2
 
#define WLAN_REASSOCREQ_OFF_CURR_AP   4
 
#define WLAN_REASSOCREQ_OFF_SSID   10
 
#define WLAN_REASSOCRESP_OFF_CAP_INFO   0
 
#define WLAN_REASSOCRESP_OFF_STATUS   2
 
#define WLAN_REASSOCRESP_OFF_AID   4
 
#define WLAN_REASSOCRESP_OFF_SUPP_RATES   6
 
#define WLAN_PROBEREQ_OFF_SSID   0
 
#define WLAN_PROBERESP_OFF_TS   0
 
#define WLAN_PROBERESP_OFF_BCN_int   8
 
#define WLAN_PROBERESP_OFF_CAP_INFO   10
 
#define WLAN_PROBERESP_OFF_SSID   12
 
#define WLAN_AUTHEN_OFF_AUTH_ALG   0
 
#define WLAN_AUTHEN_OFF_AUTH_SEQ   2
 
#define WLAN_AUTHEN_OFF_STATUS   4
 
#define WLAN_AUTHEN_OFF_CHALLENGE   6
 
#define WLAN_DEAUTHEN_OFF_REASON   0
 
#define WLAN_GET_MGMT_CAP_INFO_ESS(n)   ((n) & BIT(0))
 
#define WLAN_GET_MGMT_CAP_INFO_IBSS(n)   (((n) & BIT(1)) >> 1)
 
#define WLAN_GET_MGMT_CAP_INFO_CFPOLLABLE(n)   (((n) & BIT(2)) >> 2)
 
#define WLAN_GET_MGMT_CAP_INFO_CFPOLLREQ(n)   (((n) & BIT(3)) >> 3)
 
#define WLAN_GET_MGMT_CAP_INFO_PRIVACY(n)   (((n) & BIT(4)) >> 4)
 
#define WLAN_GET_MGMT_CAP_INFO_SHORT(n)   (((n) & BIT(5)) >> 5)
 
#define WLAN_GET_MGMT_CAP_INFO_PBCC(n)   (((n) & BIT(6)) >> 6)
 
#define WLAN_GET_MGMT_CAP_INFO_AGILITY(n)   (((n) & BIT(7)) >> 7)
 
#define WLAN_SET_MGMT_CAP_INFO_ESS(n)   (n)
 
#define WLAN_SET_MGMT_CAP_INFO_IBSS(n)   ((n) << 1)
 
#define WLAN_SET_MGMT_CAP_INFO_CFPOLLABLE(n)   ((n) << 2)
 
#define WLAN_SET_MGMT_CAP_INFO_CFPOLLREQ(n)   ((n) << 3)
 
#define WLAN_SET_MGMT_CAP_INFO_PRIVACY(n)   ((n) << 4)
 
#define WLAN_SET_MGMT_CAP_INFO_SHORT(n)   ((n) << 5)
 
#define WLAN_SET_MGMT_CAP_INFO_PBCC(n)   ((n) << 6)
 
#define WLAN_SET_MGMT_CAP_INFO_AGILITY(n)   ((n) << 7)
 

Typedefs

typedef struct wlan_ie wlan_ie_t
 
typedef struct wlan_ie_ssid wlan_ie_ssid_t
 
typedef struct wlan_ie_supp_rates wlan_ie_supp_rates_t
 
typedef struct wlan_ie_fh_parms wlan_ie_fh_parms_t
 
typedef struct wlan_ie_ds_parms wlan_ie_ds_parms_t
 
typedef struct wlan_ie_cf_parms wlan_ie_cf_parms_t
 
typedef struct wlan_ie_tim wlan_ie_tim_t
 
typedef struct wlan_ie_ibss_parms wlan_ie_ibss_parms_t
 
typedef struct wlan_ie_challenge wlan_ie_challenge_t
 
typedef struct wlan_fr_mgmt wlan_fr_mgmt_t
 
typedef struct wlan_fr_beacon wlan_fr_beacon_t
 
typedef struct wlan_fr_ibssatim wlan_fr_ibssatim_t
 
typedef struct wlan_fr_disassoc wlan_fr_disassoc_t
 
typedef struct wlan_fr_assocreq wlan_fr_assocreq_t
 
typedef struct wlan_fr_assocresp wlan_fr_assocresp_t
 
typedef struct wlan_fr_reassocreq wlan_fr_reassocreq_t
 
typedef struct wlan_fr_reassocresp wlan_fr_reassocresp_t
 
typedef struct wlan_fr_probereq wlan_fr_probereq_t
 
typedef struct wlan_fr_proberesp wlan_fr_proberesp_t
 
typedef struct wlan_fr_authen wlan_fr_authen_t
 
typedef struct wlan_fr_deauthen wlan_fr_deauthen_t
 

Functions

void wlan_mgmt_encode_beacon (wlan_fr_beacon_t *f)
 
void wlan_mgmt_decode_beacon (wlan_fr_beacon_t *f)
 
void wlan_mgmt_encode_disassoc (wlan_fr_disassoc_t *f)
 
void wlan_mgmt_decode_disassoc (wlan_fr_disassoc_t *f)
 
void wlan_mgmt_encode_assocreq (wlan_fr_assocreq_t *f)
 
void wlan_mgmt_decode_assocreq (wlan_fr_assocreq_t *f)
 
void wlan_mgmt_encode_assocresp (wlan_fr_assocresp_t *f)
 
void wlan_mgmt_decode_assocresp (wlan_fr_assocresp_t *f)
 
void wlan_mgmt_encode_reassocreq (wlan_fr_reassocreq_t *f)
 
void wlan_mgmt_decode_reassocreq (wlan_fr_reassocreq_t *f)
 
void wlan_mgmt_encode_reassocresp (wlan_fr_reassocresp_t *f)
 
void wlan_mgmt_decode_reassocresp (wlan_fr_reassocresp_t *f)
 
void wlan_mgmt_encode_probereq (wlan_fr_probereq_t *f)
 
void wlan_mgmt_decode_probereq (wlan_fr_probereq_t *f)
 
void wlan_mgmt_encode_proberesp (wlan_fr_proberesp_t *f)
 
void wlan_mgmt_decode_proberesp (wlan_fr_proberesp_t *f)
 
void wlan_mgmt_encode_authen (wlan_fr_authen_t *f)
 
void wlan_mgmt_decode_authen (wlan_fr_authen_t *f)
 
void wlan_mgmt_encode_deauthen (wlan_fr_deauthen_t *f)
 
void wlan_mgmt_decode_deauthen (wlan_fr_deauthen_t *f)
 

Macro Definition Documentation

#define WLAN_ASSOCREQ_OFF_CAP_INFO   0

Definition at line 165 of file p80211mgmt.h.

#define WLAN_ASSOCREQ_OFF_LISTEN_int   2

Definition at line 166 of file p80211mgmt.h.

#define WLAN_ASSOCREQ_OFF_SSID   4

Definition at line 167 of file p80211mgmt.h.

#define WLAN_ASSOCRESP_OFF_AID   4

Definition at line 171 of file p80211mgmt.h.

#define WLAN_ASSOCRESP_OFF_CAP_INFO   0

Definition at line 169 of file p80211mgmt.h.

#define WLAN_ASSOCRESP_OFF_STATUS   2

Definition at line 170 of file p80211mgmt.h.

#define WLAN_ASSOCRESP_OFF_SUPP_RATES   6

Definition at line 172 of file p80211mgmt.h.

#define WLAN_AUTH_ALG_OPENSYSTEM   0

Definition at line 150 of file p80211mgmt.h.

#define WLAN_AUTH_ALG_SHAREDKEY   1

Definition at line 151 of file p80211mgmt.h.

#define WLAN_AUTHEN_OFF_AUTH_ALG   0

Definition at line 191 of file p80211mgmt.h.

#define WLAN_AUTHEN_OFF_AUTH_SEQ   2

Definition at line 192 of file p80211mgmt.h.

#define WLAN_AUTHEN_OFF_CHALLENGE   6

Definition at line 194 of file p80211mgmt.h.

#define WLAN_AUTHEN_OFF_STATUS   4

Definition at line 193 of file p80211mgmt.h.

#define WLAN_BEACON_OFF_BCN_int   8

Definition at line 159 of file p80211mgmt.h.

#define WLAN_BEACON_OFF_CAPINFO   10

Definition at line 160 of file p80211mgmt.h.

#define WLAN_BEACON_OFF_SSID   12

Definition at line 161 of file p80211mgmt.h.

#define WLAN_BEACON_OFF_TS   0

Definition at line 158 of file p80211mgmt.h.

#define WLAN_DEAUTHEN_OFF_REASON   0

Definition at line 196 of file p80211mgmt.h.

#define WLAN_DISASSOC_OFF_REASON   0

Definition at line 163 of file p80211mgmt.h.

#define WLAN_EID_CF_PARMS   4

Definition at line 112 of file p80211mgmt.h.

#define WLAN_EID_CHALLENGE   16

Definition at line 116 of file p80211mgmt.h.

#define WLAN_EID_DS_PARMS   3

Definition at line 111 of file p80211mgmt.h.

#define WLAN_EID_FH_PARMS   2

Definition at line 110 of file p80211mgmt.h.

#define WLAN_EID_IBSS_PARMS   6

Definition at line 114 of file p80211mgmt.h.

#define WLAN_EID_SSID   0

Definition at line 108 of file p80211mgmt.h.

#define WLAN_EID_SUPP_RATES   1

Definition at line 109 of file p80211mgmt.h.

#define WLAN_EID_TIM   5

Definition at line 113 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_AGILITY (   n)    (((n) & BIT(7)) >> 7)

Definition at line 207 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_CFPOLLABLE (   n)    (((n) & BIT(2)) >> 2)

Definition at line 201 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_CFPOLLREQ (   n)    (((n) & BIT(3)) >> 3)

Definition at line 202 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_ESS (   n)    ((n) & BIT(0))

Definition at line 199 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_IBSS (   n)    (((n) & BIT(1)) >> 1)

Definition at line 200 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_PBCC (   n)    (((n) & BIT(6)) >> 6)

Definition at line 206 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_PRIVACY (   n)    (((n) & BIT(4)) >> 4)

Definition at line 203 of file p80211mgmt.h.

#define WLAN_GET_MGMT_CAP_INFO_SHORT (   n)    (((n) & BIT(5)) >> 5)

Definition at line 205 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_CANT_ASSOC_NONAUTH   9

Definition at line 130 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_CLASS2_NONAUTH   6

Definition at line 127 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_CLASS3_NONASSOC   7

Definition at line 128 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_DEAUTH_LEAVING   3

Definition at line 124 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_DISASSOC_AP_BUSY   5

Definition at line 126 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_DISASSOC_INACTIVE   4

Definition at line 125 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_DISASSOC_STA_HASLEFT   8

Definition at line 129 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_PRIOR_AUTH_INVALID   2

Definition at line 123 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_RSVD   0

Definition at line 121 of file p80211mgmt.h.

#define WLAN_MGMT_REASON_UNSPEC   1

Definition at line 122 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_BUSY   17

Definition at line 142 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOAGILITY   21

Definition at line 147 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOPBCC   20

Definition at line 146 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_NOSHORT   19

Definition at line 145 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_RATES   18

Definition at line 143 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_ASSOC_DENIED_UNSPEC   12

Definition at line 137 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_AUTH_TIMEOUT   16

Definition at line 141 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_CAPS_UNSUPPORTED   10

Definition at line 135 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_CHALLENGE_FAIL   15

Definition at line 140 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_REASSOC_NO_ASSOC   11

Definition at line 136 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_RX_AUTH_NOSEQ   14

Definition at line 139 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_SUCCESS   0

Definition at line 133 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_UNSPEC_FAILURE   1

Definition at line 134 of file p80211mgmt.h.

#define WLAN_MGMT_STATUS_UNSUPPORTED_AUTHALG   13

Definition at line 138 of file p80211mgmt.h.

#define WLAN_PROBEREQ_OFF_SSID   0

Definition at line 184 of file p80211mgmt.h.

#define WLAN_PROBERESP_OFF_BCN_int   8

Definition at line 187 of file p80211mgmt.h.

#define WLAN_PROBERESP_OFF_CAP_INFO   10

Definition at line 188 of file p80211mgmt.h.

#define WLAN_PROBERESP_OFF_SSID   12

Definition at line 189 of file p80211mgmt.h.

#define WLAN_PROBERESP_OFF_TS   0

Definition at line 186 of file p80211mgmt.h.

#define WLAN_REASSOCREQ_OFF_CAP_INFO   0

Definition at line 174 of file p80211mgmt.h.

#define WLAN_REASSOCREQ_OFF_CURR_AP   4

Definition at line 176 of file p80211mgmt.h.

#define WLAN_REASSOCREQ_OFF_LISTEN_int   2

Definition at line 175 of file p80211mgmt.h.

#define WLAN_REASSOCREQ_OFF_SSID   10

Definition at line 177 of file p80211mgmt.h.

#define WLAN_REASSOCRESP_OFF_AID   4

Definition at line 181 of file p80211mgmt.h.

#define WLAN_REASSOCRESP_OFF_CAP_INFO   0

Definition at line 179 of file p80211mgmt.h.

#define WLAN_REASSOCRESP_OFF_STATUS   2

Definition at line 180 of file p80211mgmt.h.

#define WLAN_REASSOCRESP_OFF_SUPP_RATES   6

Definition at line 182 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_AGILITY (   n)    ((n) << 7)

Definition at line 217 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_CFPOLLABLE (   n)    ((n) << 2)

Definition at line 211 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_CFPOLLREQ (   n)    ((n) << 3)

Definition at line 212 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_ESS (   n)    (n)

Definition at line 209 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_IBSS (   n)    ((n) << 1)

Definition at line 210 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_PBCC (   n)    ((n) << 6)

Definition at line 216 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_PRIVACY (   n)    ((n) << 4)

Definition at line 213 of file p80211mgmt.h.

#define WLAN_SET_MGMT_CAP_INFO_SHORT (   n)    ((n) << 5)

Definition at line 215 of file p80211mgmt.h.

Typedef Documentation

Function Documentation

void wlan_mgmt_decode_assocreq ( wlan_fr_assocreq_t f)
void wlan_mgmt_decode_assocresp ( wlan_fr_assocresp_t f)
void wlan_mgmt_decode_authen ( wlan_fr_authen_t f)
void wlan_mgmt_decode_beacon ( wlan_fr_beacon_t f)
void wlan_mgmt_decode_deauthen ( wlan_fr_deauthen_t f)
void wlan_mgmt_decode_disassoc ( wlan_fr_disassoc_t f)
void wlan_mgmt_decode_probereq ( wlan_fr_probereq_t f)
void wlan_mgmt_decode_proberesp ( wlan_fr_proberesp_t f)
void wlan_mgmt_decode_reassocreq ( wlan_fr_reassocreq_t f)
void wlan_mgmt_decode_reassocresp ( wlan_fr_reassocresp_t f)
void wlan_mgmt_encode_assocreq ( wlan_fr_assocreq_t f)
void wlan_mgmt_encode_assocresp ( wlan_fr_assocresp_t f)
void wlan_mgmt_encode_authen ( wlan_fr_authen_t f)
void wlan_mgmt_encode_beacon ( wlan_fr_beacon_t f)
void wlan_mgmt_encode_deauthen ( wlan_fr_deauthen_t f)
void wlan_mgmt_encode_disassoc ( wlan_fr_disassoc_t f)
void wlan_mgmt_encode_probereq ( wlan_fr_probereq_t f)
void wlan_mgmt_encode_proberesp ( wlan_fr_proberesp_t f)
void wlan_mgmt_encode_reassocreq ( wlan_fr_reassocreq_t f)
void wlan_mgmt_encode_reassocresp ( wlan_fr_reassocresp_t f)