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

Go to the source code of this file.

Data Structures

struct  ieee80211_bar
 
struct  ieee80211_ht_cap
 
struct  ieee80211_ht_addt_info
 

Macros

#define BIT(x)   (1 << (x))
 
#define WLAN_ETHHDR_LEN   14
 
#define WLAN_ETHADDR_LEN   6
 
#define WLAN_IEEE_OUI_LEN   3
 
#define WLAN_ADDR_LEN   6
 
#define WLAN_CRC_LEN   4
 
#define WLAN_BSSID_LEN   6
 
#define WLAN_BSS_TS_LEN   8
 
#define WLAN_HDR_A3_LEN   24
 
#define WLAN_HDR_A4_LEN   30
 
#define WLAN_HDR_A3_QOS_LEN   26
 
#define WLAN_HDR_A4_QOS_LEN   32
 
#define WLAN_SSID_MAXLEN   32
 
#define WLAN_DATA_MAXLEN   2312
 
#define WLAN_A3_PN_OFFSET   24
 
#define WLAN_A4_PN_OFFSET   30
 
#define WLAN_MIN_ETHFRM_LEN   60
 
#define WLAN_MAX_ETHFRM_LEN   1514
 
#define WLAN_ETHHDR_LEN   14
 
#define P80211CAPTURE_VERSION   0x80211001
 
#define _TO_DS_   BIT(8)
 
#define _FROM_DS_   BIT(9)
 
#define _MORE_FRAG_   BIT(10)
 
#define _RETRY_   BIT(11)
 
#define _PWRMGT_   BIT(12)
 
#define _MORE_DATA_   BIT(13)
 
#define _PRIVACY_   BIT(14)
 
#define _ORDER_   BIT(15)
 
#define SetToDs(pbuf)
 
#define GetToDs(pbuf)
 
#define ClearToDs(pbuf)
 
#define SetFrDs(pbuf)
 
#define GetFrDs(pbuf)
 
#define ClearFrDs(pbuf)
 
#define get_tofr_ds(pframe)   ((GetToDs(pframe) << 1) | GetFrDs(pframe))
 
#define SetMFrag(pbuf)
 
#define GetMFrag(pbuf)
 
#define ClearMFrag(pbuf)
 
#define SetRetry(pbuf)
 
#define GetRetry(pbuf)
 
#define ClearRetry(pbuf)
 
#define SetPwrMgt(pbuf)
 
#define GetPwrMgt(pbuf)
 
#define ClearPwrMgt(pbuf)
 
#define SetMData(pbuf)
 
#define GetMData(pbuf)
 
#define ClearMData(pbuf)
 
#define SetPrivacy(pbuf)
 
#define GetPrivacy(pbuf)
 
#define ClearPrivacy(pbuf)
 
#define GetOrder(pbuf)
 
#define GetFrameType(pbuf)
 
#define SetFrameType(pbuf, type)
 
#define GetFrameSubType(pbuf)
 
#define SetFrameSubType(pbuf, type)
 
#define GetSequence(pbuf)
 
#define GetFragNum(pbuf)
 
#define GetTupleCache(pbuf)
 
#define SetFragNum(pbuf, num)
 
#define SetSeqNum(pbuf, num)
 
#define SetDuration(pbuf, dur)
 
#define SetPriority(pbuf, tid)
 
#define GetPriority(pbuf)   ((le16_to_cpu(*(unsigned short *)(pbuf))) & 0xf)
 
#define SetAckpolicy(pbuf, ack)
 
#define GetAckpolicy(pbuf)   (((le16_to_cpu(*(unsigned short *)pbuf)) >> 5) & 0x3)
 
#define GetAMsdu(pbuf)   (((le16_to_cpu(*(unsigned short *)pbuf)) >> 7) & 0x1)
 
#define SetAMsdu(pbuf, amsdu)
 
#define GetAid(pbuf)
 
#define GetTid(pbuf)
 
#define GetAddr1Ptr(pbuf)   ((unsigned char *)((addr_t)(pbuf) + 4))
 
#define GetAddr2Ptr(pbuf)   ((unsigned char *)((addr_t)(pbuf) + 10))
 
#define GetAddr3Ptr(pbuf)   ((unsigned char *)((addr_t)(pbuf) + 16))
 
#define GetAddr4Ptr(pbuf)   ((unsigned char *)((addr_t)(pbuf) + 24))
 
#define _RESERVED_FRAME_TYPE_   0
 
#define _SKB_FRAME_TYPE_   2
 
#define _PRE_ALLOCMEM_   1
 
#define _PRE_ALLOCHDR_   3
 
#define _PRE_ALLOCLLCHDR_   4
 
#define _PRE_ALLOCICVHDR_   5
 
#define _PRE_ALLOCMICHDR_   6
 
#define _SIFSTIME_
 
#define _ACKCTSLNG_   14 /*14 bytes long, including crclng */
 
#define _CRCLNG_   4
 
#define _ASOCREQ_IE_OFFSET_   4 /* excluding wlan_hdr */
 
#define _ASOCRSP_IE_OFFSET_   6
 
#define _REASOCREQ_IE_OFFSET_   10
 
#define _REASOCRSP_IE_OFFSET_   6
 
#define _PROBEREQ_IE_OFFSET_   0
 
#define _PROBERSP_IE_OFFSET_   12
 
#define _AUTH_IE_OFFSET_   6
 
#define _DEAUTH_IE_OFFSET_   0
 
#define _BEACON_IE_OFFSET_   12
 
#define _FIXED_IE_LENGTH_   _BEACON_IE_OFFSET_
 
#define _SSID_IE_   0
 
#define _SUPPORTEDRATES_IE_   1
 
#define _DSSET_IE_   3
 
#define _TIM_IE_   5
 
#define _IBSS_PARA_IE_   6
 
#define _CHLGETXT_IE_   16
 
#define _RSN_IE_2_   48`
 
#define _SSN_IE_1_   221
 
#define _ERPINFO_IE_   42
 
#define _EXT_SUPPORTEDRATES_IE_   50
 
#define _HT_CAPABILITY_IE_   45
 
#define _HT_EXTRA_INFO_IE_   61
 
#define _HT_ADD_INFO_IE_   61 /* _HT_EXTRA_INFO_IE_ */
 
#define _VENDOR_SPECIFIC_IE_   221
 
#define _RESERVED47_   47
 
#define _AUTH_ALGM_NUM_   2
 
#define _AUTH_SEQ_NUM_   2
 
#define _BEACON_ITERVAL_   2
 
#define _CAPABILITY_   2
 
#define _CURRENT_APADDR_   6
 
#define _LISTEN_INTERVAL_   2
 
#define _RSON_CODE_   2
 
#define _ASOC_ID_   2
 
#define _STATUS_CODE_   2
 
#define _TIMESTAMP_   8
 
#define AUTH_ODD_TO   0
 
#define AUTH_EVEN_TO   1
 
#define WLAN_ETHCONV_ENCAP   1
 
#define WLAN_ETHCONV_RFC1042   2
 
#define WLAN_ETHCONV_8021h   3
 
#define cap_ESS   BIT(0)
 
#define cap_IBSS   BIT(1)
 
#define cap_CFPollable   BIT(2)
 
#define cap_CFRequest   BIT(3)
 
#define cap_Privacy   BIT(4)
 
#define cap_ShortPremble   BIT(5)
 
#define _IEEE8021X_MGT_   1 /*WPA */
 
#define _IEEE8021X_PSK_   2 /* WPA with pre-shared key */
 
#define _WMM_IE_Length_   7 /* for WMM STA */
 
#define _WMM_Para_Element_Length_   24
 
#define IEEE80211_ADDBA_PARAM_POLICY_MASK   0x0002
 
#define IEEE80211_ADDBA_PARAM_TID_MASK   0x003C
 
#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK   0xFFA0
 
#define IEEE80211_DELBA_PARAM_TID_MASK   0xF000
 
#define IEEE80211_DELBA_PARAM_INITIATOR_MASK   0x0800
 
#define SetOrderBit(pbuf)
 
#define GetOrderBit(pbuf)
 
#define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL   0x0000
 
#define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA   0x0004
 
#define IEEE80211_HT_CAP_SUP_WIDTH   0x0002
 
#define IEEE80211_HT_CAP_SM_PS   0x000C
 
#define IEEE80211_HT_CAP_GRN_FLD   0x0010
 
#define IEEE80211_HT_CAP_SGI_20   0x0020
 
#define IEEE80211_HT_CAP_SGI_40   0x0040
 
#define IEEE80211_HT_CAP_TX_STBC   0x0080
 
#define IEEE80211_HT_CAP_DELAY_BA   0x0400
 
#define IEEE80211_HT_CAP_MAX_AMSDU   0x0800
 
#define IEEE80211_HT_CAP_DSSSCCK40   0x1000
 
#define IEEE80211_HT_CAP_AMPDU_FACTOR   0x03
 
#define IEEE80211_HT_CAP_AMPDU_DENSITY   0x1C
 
#define IEEE80211_SUPP_MCS_SET_UEQM   4
 
#define IEEE80211_HT_CAP_MAX_STREAMS   4
 
#define IEEE80211_SUPP_MCS_SET_LEN   10
 
#define IEEE80211_HT_CAP_MCS_TX_DEFINED   0x01
 
#define IEEE80211_HT_CAP_MCS_TX_RX_DIFF   0x02
 
#define IEEE80211_HT_CAP_MCS_TX_STREAMS   0x0C
 
#define IEEE80211_HT_CAP_MCS_TX_UEQM   0x10
 
#define IEEE80211_HT_IE_CHA_SEC_OFFSET   0x03
 
#define IEEE80211_HT_IE_CHA_SEC_NONE   0x00
 
#define IEEE80211_HT_IE_CHA_SEC_ABOVE   0x01
 
#define IEEE80211_HT_IE_CHA_SEC_BELOW   0x03
 
#define IEEE80211_HT_IE_CHA_WIDTH   0x04
 
#define IEEE80211_HT_IE_HT_PROTECTION   0x0003
 
#define IEEE80211_HT_IE_NON_GF_STA_PRSNT   0x0004
 
#define IEEE80211_HT_IE_NON_HT_STA_PRSNT   0x0010
 
#define IEEE80211_ADDBA_PARAM_POLICY_MASK   0x0002
 
#define IEEE80211_ADDBA_PARAM_TID_MASK   0x003C
 
#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK   0xFFA0
 
#define IEEE80211_DELBA_PARAM_TID_MASK   0xF000
 
#define IEEE80211_DELBA_PARAM_INITIATOR_MASK   0x0800
 
#define IEEE80211_MIN_AMPDU_BUF   0x8
 
#define IEEE80211_MAX_AMPDU_BUF   0x40
 
#define WLAN_HT_CAP_SM_PS_STATIC   0
 
#define WLAN_HT_CAP_SM_PS_DYNAMIC   1
 
#define WLAN_HT_CAP_SM_PS_INVALID   2
 
#define WLAN_HT_CAP_SM_PS_DISABLED   3
 

Enumerations

enum  WIFI_FRAME_TYPE { WIFI_MGT_TYPE = (0), WIFI_CTRL_TYPE = (BIT(2)), WIFI_DATA_TYPE = (BIT(3)), WIFI_QOS_DATA_TYPE = (BIT(7)|BIT(3)) }
 
enum  WIFI_FRAME_SUBTYPE {
  WIFI_ASSOCREQ = (0 | WIFI_MGT_TYPE), WIFI_ASSOCRSP = (BIT(4) | WIFI_MGT_TYPE), WIFI_REASSOCREQ = (BIT(5) | WIFI_MGT_TYPE), WIFI_REASSOCRSP = (BIT(5) | BIT(4) | WIFI_MGT_TYPE),
  WIFI_PROBEREQ = (BIT(6) | WIFI_MGT_TYPE), WIFI_PROBERSP = (BIT(6) | BIT(4) | WIFI_MGT_TYPE), WIFI_BEACON = (BIT(7) | WIFI_MGT_TYPE), WIFI_ATIM = (BIT(7) | BIT(4) | WIFI_MGT_TYPE),
  WIFI_DISASSOC = (BIT(7) | BIT(5) | WIFI_MGT_TYPE), WIFI_AUTH = (BIT(7) | BIT(5) | BIT(4) | WIFI_MGT_TYPE), WIFI_DEAUTH = (BIT(7) | BIT(6) | WIFI_MGT_TYPE), WIFI_ACTION = (BIT(7) | BIT(6) | BIT(4) | WIFI_MGT_TYPE),
  WIFI_PSPOLL = (BIT(7) | BIT(5) | WIFI_CTRL_TYPE), WIFI_RTS = (BIT(7) | BIT(5) | BIT(4) | WIFI_CTRL_TYPE), WIFI_CTS = (BIT(7) | BIT(6) | WIFI_CTRL_TYPE), WIFI_ACK = (BIT(7) | BIT(6) | BIT(4) | WIFI_CTRL_TYPE),
  WIFI_CFEND = (BIT(7) | BIT(6) | BIT(5) | WIFI_CTRL_TYPE), WIFI_CFEND_CFACK = (BIT(7) | BIT(6) | BIT(5) | BIT(4) | WIFI_CTRL_TYPE), WIFI_DATA = (0 | WIFI_DATA_TYPE), WIFI_DATA_CFACK = (BIT(4) | WIFI_DATA_TYPE),
  WIFI_DATA_CFPOLL = (BIT(5) | WIFI_DATA_TYPE), WIFI_DATA_CFACKPOLL = (BIT(5) | BIT(4) | WIFI_DATA_TYPE), WIFI_DATA_NULL = (BIT(6) | WIFI_DATA_TYPE), WIFI_CF_ACK = (BIT(6) | BIT(4) | WIFI_DATA_TYPE),
  WIFI_CF_POLL = (BIT(6) | BIT(5) | WIFI_DATA_TYPE), WIFI_CF_ACKPOLL = (BIT(6) | BIT(5) | BIT(4) | WIFI_DATA_TYPE)
}
 
enum  WIFI_REASON_CODE {
  _RSON_RESERVED_ = 0, _RSON_UNSPECIFIED_ = 1, _RSON_AUTH_NO_LONGER_VALID_ = 2, _RSON_DEAUTH_STA_LEAVING_ = 3,
  _RSON_INACTIVITY_ = 4, _RSON_UNABLE_HANDLE_ = 5, _RSON_CLS2_ = 6, _RSON_CLS3_ = 7,
  _RSON_DISAOC_STA_LEAVING_ = 8, _RSON_ASOC_NOT_AUTH_ = 9, _RSON_INVALID_IE_ = 13, _RSON_MIC_FAILURE_ = 14,
  _RSON_4WAY_HNDSHK_TIMEOUT_ = 15, _RSON_GROUP_KEY_UPDATE_TIMEOUT_ = 16, _RSON_DIFF_IE_ = 17, _RSON_MLTCST_CIPHER_NOT_VALID_ = 18,
  _RSON_UNICST_CIPHER_NOT_VALID_ = 19, _RSON_AKMP_NOT_VALID_ = 20, _RSON_UNSUPPORT_RSNE_VER_ = 21, _RSON_INVALID_RSNE_CAP_ = 22,
  _RSON_IEEE_802DOT1X_AUTH_FAIL_ = 23, _RSON_PMK_NOT_AVAILABLE_ = 24
}
 
enum  WIFI_STATUS_CODE {
  _STATS_SUCCESSFUL_ = 0, _STATS_FAILURE_ = 1, _STATS_CAP_FAIL_ = 10, _STATS_NO_ASOC_ = 11,
  _STATS_OTHER_ = 12, _STATS_NO_SUPP_ALG_ = 13, _STATS_OUT_OF_AUTH_SEQ_ = 14, _STATS_CHALLENGE_FAIL_ = 15,
  _STATS_AUTH_TIMEOUT_ = 16, _STATS_UNABLE_HANDLE_STA_ = 17, _STATS_RATE_FAIL_ = 18
}
 
enum  WIFI_REG_DOMAIN {
  DOMAIN_FCC = 1, DOMAIN_IC = 2, DOMAIN_ETSI = 3, DOMAIN_SPAIN = 4,
  DOMAIN_FRANCE = 5, DOMAIN_MKK = 6, DOMAIN_ISRAEL = 7, DOMAIN_MKK1 = 8,
  DOMAIN_MKK2 = 9, DOMAIN_MKK3 = 10, DOMAIN_MAX
}
 

Variables

struct ieee80211_bar __packed
 

Macro Definition Documentation

#define _ACKCTSLNG_   14 /*14 bytes long, including crclng */

Definition at line 442 of file wifi.h.

#define _ASOC_ID_   2

Definition at line 487 of file wifi.h.

#define _ASOCREQ_IE_OFFSET_   4 /* excluding wlan_hdr */

Definition at line 445 of file wifi.h.

#define _ASOCRSP_IE_OFFSET_   6

Definition at line 446 of file wifi.h.

#define _AUTH_ALGM_NUM_   2

Definition at line 480 of file wifi.h.

#define _AUTH_IE_OFFSET_   6

Definition at line 451 of file wifi.h.

#define _AUTH_SEQ_NUM_   2

Definition at line 481 of file wifi.h.

#define _BEACON_IE_OFFSET_   12

Definition at line 453 of file wifi.h.

#define _BEACON_ITERVAL_   2

Definition at line 482 of file wifi.h.

#define _CAPABILITY_   2

Definition at line 483 of file wifi.h.

#define _CHLGETXT_IE_   16

Definition at line 462 of file wifi.h.

#define _CRCLNG_   4

Definition at line 443 of file wifi.h.

#define _CURRENT_APADDR_   6

Definition at line 484 of file wifi.h.

#define _DEAUTH_IE_OFFSET_   0

Definition at line 452 of file wifi.h.

#define _DSSET_IE_   3

Definition at line 459 of file wifi.h.

#define _ERPINFO_IE_   42

Definition at line 465 of file wifi.h.

#define _EXT_SUPPORTEDRATES_IE_   50

Definition at line 466 of file wifi.h.

#define _FIXED_IE_LENGTH_   _BEACON_IE_OFFSET_

Definition at line 455 of file wifi.h.

#define _FROM_DS_   BIT(9)

Definition at line 154 of file wifi.h.

#define _HT_ADD_INFO_IE_   61 /* _HT_EXTRA_INFO_IE_ */

Definition at line 470 of file wifi.h.

#define _HT_CAPABILITY_IE_   45

Definition at line 468 of file wifi.h.

#define _HT_EXTRA_INFO_IE_   61

Definition at line 469 of file wifi.h.

#define _IBSS_PARA_IE_   6

Definition at line 461 of file wifi.h.

#define _IEEE8021X_MGT_   1 /*WPA */

Definition at line 508 of file wifi.h.

#define _IEEE8021X_PSK_   2 /* WPA with pre-shared key */

Definition at line 509 of file wifi.h.

#define _LISTEN_INTERVAL_   2

Definition at line 485 of file wifi.h.

#define _MORE_DATA_   BIT(13)

Definition at line 158 of file wifi.h.

#define _MORE_FRAG_   BIT(10)

Definition at line 155 of file wifi.h.

#define _ORDER_   BIT(15)

Definition at line 160 of file wifi.h.

#define _PRE_ALLOCHDR_   3

Definition at line 435 of file wifi.h.

#define _PRE_ALLOCICVHDR_   5

Definition at line 437 of file wifi.h.

#define _PRE_ALLOCLLCHDR_   4

Definition at line 436 of file wifi.h.

#define _PRE_ALLOCMEM_   1

Definition at line 434 of file wifi.h.

#define _PRE_ALLOCMICHDR_   6

Definition at line 438 of file wifi.h.

#define _PRIVACY_   BIT(14)

Definition at line 159 of file wifi.h.

#define _PROBEREQ_IE_OFFSET_   0

Definition at line 449 of file wifi.h.

#define _PROBERSP_IE_OFFSET_   12

Definition at line 450 of file wifi.h.

#define _PWRMGT_   BIT(12)

Definition at line 157 of file wifi.h.

#define _REASOCREQ_IE_OFFSET_   10

Definition at line 447 of file wifi.h.

#define _REASOCRSP_IE_OFFSET_   6

Definition at line 448 of file wifi.h.

#define _RESERVED47_   47

Definition at line 474 of file wifi.h.

#define _RESERVED_FRAME_TYPE_   0

Definition at line 432 of file wifi.h.

#define _RETRY_   BIT(11)

Definition at line 156 of file wifi.h.

#define _RSN_IE_2_   48`

Definition at line 463 of file wifi.h.

#define _RSON_CODE_   2

Definition at line 486 of file wifi.h.

#define _SIFSTIME_
Value:
((priv->pmib->BssType.net_work_type & \
WIRELESS_11A) ? 16 : 10)

Definition at line 440 of file wifi.h.

#define _SKB_FRAME_TYPE_   2

Definition at line 433 of file wifi.h.

#define _SSID_IE_   0

Definition at line 457 of file wifi.h.

#define _SSN_IE_1_   221

Definition at line 464 of file wifi.h.

#define _STATUS_CODE_   2

Definition at line 488 of file wifi.h.

#define _SUPPORTEDRATES_IE_   1

Definition at line 458 of file wifi.h.

#define _TIM_IE_   5

Definition at line 460 of file wifi.h.

#define _TIMESTAMP_   8

Definition at line 489 of file wifi.h.

#define _TO_DS_   BIT(8)

Definition at line 153 of file wifi.h.

#define _VENDOR_SPECIFIC_IE_   221

Definition at line 472 of file wifi.h.

#define _WMM_IE_Length_   7 /* for WMM STA */

Definition at line 514 of file wifi.h.

#define _WMM_Para_Element_Length_   24

Definition at line 515 of file wifi.h.

#define AUTH_EVEN_TO   1

Definition at line 492 of file wifi.h.

#define AUTH_ODD_TO   0

Definition at line 491 of file wifi.h.

#define BIT (   x)    (1 << (x))

Definition at line 34 of file wifi.h.

#define cap_CFPollable   BIT(2)

Definition at line 500 of file wifi.h.

#define cap_CFRequest   BIT(3)

Definition at line 501 of file wifi.h.

#define cap_ESS   BIT(0)

Definition at line 498 of file wifi.h.

#define cap_IBSS   BIT(1)

Definition at line 499 of file wifi.h.

#define cap_Privacy   BIT(4)

Definition at line 502 of file wifi.h.

#define cap_ShortPremble   BIT(5)

Definition at line 503 of file wifi.h.

#define ClearFrDs (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_FROM_DS_)); \
} while (0)

Definition at line 183 of file wifi.h.

#define ClearMData (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_DATA_)); \
} while (0)

Definition at line 238 of file wifi.h.

#define ClearMFrag (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_MORE_FRAG_)); \
} while (0)

Definition at line 199 of file wifi.h.

#define ClearPrivacy (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_PRIVACY_)); \
} while (0)

Definition at line 251 of file wifi.h.

#define ClearPwrMgt (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_PWRMGT_)); \
} while (0)

Definition at line 225 of file wifi.h.

#define ClearRetry (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_RETRY_)); \
} while (0)

Definition at line 212 of file wifi.h.

#define ClearToDs (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) &= (~cpu_to_le16(_TO_DS_)); \
} while (0)

Definition at line 170 of file wifi.h.

#define get_tofr_ds (   pframe)    ((GetToDs(pframe) << 1) | GetFrDs(pframe))

Definition at line 188 of file wifi.h.

#define GetAckpolicy (   pbuf)    (((le16_to_cpu(*(unsigned short *)pbuf)) >> 5) & 0x3)

Definition at line 324 of file wifi.h.

#define GetAddr1Ptr (   pbuf)    ((unsigned char *)((addr_t)(pbuf) + 4))

Definition at line 340 of file wifi.h.

#define GetAddr2Ptr (   pbuf)    ((unsigned char *)((addr_t)(pbuf) + 10))

Definition at line 342 of file wifi.h.

#define GetAddr3Ptr (   pbuf)    ((unsigned char *)((addr_t)(pbuf) + 16))

Definition at line 344 of file wifi.h.

#define GetAddr4Ptr (   pbuf)    ((unsigned char *)((addr_t)(pbuf) + 24))

Definition at line 346 of file wifi.h.

#define GetAid (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)((addr_t)(pbuf) + 2)) \
& 0x3fff)

Definition at line 333 of file wifi.h.

#define GetAMsdu (   pbuf)    (((le16_to_cpu(*(unsigned short *)pbuf)) >> 7) & 0x1)

Definition at line 326 of file wifi.h.

#define GetFragNum (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)((addr_t)\
(pbuf) + 22)) & 0x0f)

Definition at line 284 of file wifi.h.

#define GetFrameSubType (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)(pbuf)) & \
(BIT(7) | BIT(6) | BIT(5) | BIT(4) | BIT(3) | \
BIT(2)))

Definition at line 270 of file wifi.h.

#define GetFrameType (   pbuf)
Value:
(le16_to_cpu(*(unsigned short *)(pbuf)) & \
(BIT(3) | BIT(2)))

Definition at line 260 of file wifi.h.

#define GetFrDs (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 180 of file wifi.h.

#define GetMData (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 235 of file wifi.h.

#define GetMFrag (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 196 of file wifi.h.

#define GetOrder (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 257 of file wifi.h.

#define GetOrderBit (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 534 of file wifi.h.

#define GetPriority (   pbuf)    ((le16_to_cpu(*(unsigned short *)(pbuf))) & 0xf)

Definition at line 317 of file wifi.h.

#define GetPrivacy (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 248 of file wifi.h.

#define GetPwrMgt (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 222 of file wifi.h.

#define GetRetry (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 209 of file wifi.h.

#define GetSequence (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)\
((addr_t)(pbuf) + 22)) >> 4)

Definition at line 281 of file wifi.h.

#define GetTid (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)((addr_t)(pbuf) + \
(((GetToDs(pbuf) << 1)|GetFrDs(pbuf)) == 3 ? \
30 : 24))) & 0x000f)

Definition at line 336 of file wifi.h.

#define GetToDs (   pbuf)
Value:
(((*(unsigned short *)(pbuf)) & \

Definition at line 167 of file wifi.h.

#define GetTupleCache (   pbuf)
Value:
(cpu_to_le16(*(unsigned short *)\
((addr_t)(pbuf) + 22)))

Definition at line 287 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK   0xFFA0

Definition at line 623 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK   0xFFA0

Definition at line 623 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_POLICY_MASK   0x0002

Definition at line 621 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_POLICY_MASK   0x0002

Definition at line 621 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_TID_MASK   0x003C

Definition at line 622 of file wifi.h.

#define IEEE80211_ADDBA_PARAM_TID_MASK   0x003C

Definition at line 622 of file wifi.h.

#define IEEE80211_BAR_CTRL_ACK_POLICY_NORMAL   0x0000

Definition at line 554 of file wifi.h.

#define IEEE80211_BAR_CTRL_CBMTID_COMPRESSED_BA   0x0004

Definition at line 555 of file wifi.h.

#define IEEE80211_DELBA_PARAM_INITIATOR_MASK   0x0800

Definition at line 625 of file wifi.h.

#define IEEE80211_DELBA_PARAM_INITIATOR_MASK   0x0800

Definition at line 625 of file wifi.h.

#define IEEE80211_DELBA_PARAM_TID_MASK   0xF000

Definition at line 624 of file wifi.h.

#define IEEE80211_DELBA_PARAM_TID_MASK   0xF000

Definition at line 624 of file wifi.h.

#define IEEE80211_HT_CAP_AMPDU_DENSITY   0x1C

Definition at line 600 of file wifi.h.

#define IEEE80211_HT_CAP_AMPDU_FACTOR   0x03

Definition at line 599 of file wifi.h.

#define IEEE80211_HT_CAP_DELAY_BA   0x0400

Definition at line 595 of file wifi.h.

#define IEEE80211_HT_CAP_DSSSCCK40   0x1000

Definition at line 597 of file wifi.h.

#define IEEE80211_HT_CAP_GRN_FLD   0x0010

Definition at line 591 of file wifi.h.

#define IEEE80211_HT_CAP_MAX_AMSDU   0x0800

Definition at line 596 of file wifi.h.

#define IEEE80211_HT_CAP_MAX_STREAMS   4

Definition at line 603 of file wifi.h.

#define IEEE80211_HT_CAP_MCS_TX_DEFINED   0x01

Definition at line 606 of file wifi.h.

#define IEEE80211_HT_CAP_MCS_TX_RX_DIFF   0x02

Definition at line 607 of file wifi.h.

#define IEEE80211_HT_CAP_MCS_TX_STREAMS   0x0C

Definition at line 608 of file wifi.h.

#define IEEE80211_HT_CAP_MCS_TX_UEQM   0x10

Definition at line 609 of file wifi.h.

#define IEEE80211_HT_CAP_SGI_20   0x0020

Definition at line 592 of file wifi.h.

#define IEEE80211_HT_CAP_SGI_40   0x0040

Definition at line 593 of file wifi.h.

#define IEEE80211_HT_CAP_SM_PS   0x000C

Definition at line 590 of file wifi.h.

#define IEEE80211_HT_CAP_SUP_WIDTH   0x0002

Definition at line 589 of file wifi.h.

#define IEEE80211_HT_CAP_TX_STBC   0x0080

Definition at line 594 of file wifi.h.

#define IEEE80211_HT_IE_CHA_SEC_ABOVE   0x01

Definition at line 613 of file wifi.h.

#define IEEE80211_HT_IE_CHA_SEC_BELOW   0x03

Definition at line 614 of file wifi.h.

#define IEEE80211_HT_IE_CHA_SEC_NONE   0x00

Definition at line 612 of file wifi.h.

#define IEEE80211_HT_IE_CHA_SEC_OFFSET   0x03

Definition at line 611 of file wifi.h.

#define IEEE80211_HT_IE_CHA_WIDTH   0x04

Definition at line 615 of file wifi.h.

#define IEEE80211_HT_IE_HT_PROTECTION   0x0003

Definition at line 616 of file wifi.h.

#define IEEE80211_HT_IE_NON_GF_STA_PRSNT   0x0004

Definition at line 617 of file wifi.h.

#define IEEE80211_HT_IE_NON_HT_STA_PRSNT   0x0010

Definition at line 618 of file wifi.h.

#define IEEE80211_MAX_AMPDU_BUF   0x40

Definition at line 632 of file wifi.h.

#define IEEE80211_MIN_AMPDU_BUF   0x8

Definition at line 631 of file wifi.h.

#define IEEE80211_SUPP_MCS_SET_LEN   10

Definition at line 604 of file wifi.h.

#define IEEE80211_SUPP_MCS_SET_UEQM   4

Definition at line 602 of file wifi.h.

#define P80211CAPTURE_VERSION   0x80211001

Definition at line 57 of file wifi.h.

#define SetAckpolicy (   pbuf,
  ack 
)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16((ack & 3) << 5); \
} while (0)

Definition at line 319 of file wifi.h.

#define SetAMsdu (   pbuf,
  amsdu 
)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16((amsdu & 1) << 7); \
} while (0)

Definition at line 328 of file wifi.h.

#define SetDuration (   pbuf,
  dur 
)
Value:
do { \
*(unsigned short *)((addr_t)(pbuf) + 2) |= \
cpu_to_le16(0xffff & (dur)); \
} while (0)

Definition at line 306 of file wifi.h.

#define SetFragNum (   pbuf,
  num 
)
Value:
do { \
*(unsigned short *)((addr_t)(pbuf) + 22) = \
((*(unsigned short *)((addr_t)(pbuf) + 22)) & \
le16_to_cpu(~(0x000f))) | \
cpu_to_le16(0x0f & (num)); \
} while (0)

Definition at line 290 of file wifi.h.

#define SetFrameSubType (   pbuf,
  type 
)
Value:
do { \
*(unsigned short *)(pbuf) &= cpu_to_le16(~(BIT(7) | BIT(6) | \
BIT(5) | BIT(4) | BIT(3) | BIT(2))); \
*(unsigned short *)(pbuf) |= cpu_to_le16(type); \
} while (0)

Definition at line 274 of file wifi.h.

#define SetFrameType (   pbuf,
  type 
)
Value:
do { \
*(unsigned short *)(pbuf) &= __constant_cpu_to_le16(~(BIT(3) | \
BIT(2))); \
*(unsigned short *)(pbuf) |= __constant_cpu_to_le16(type); \
} while (0)

Definition at line 263 of file wifi.h.

#define SetFrDs (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_FROM_DS_); \
} while (0)

Definition at line 175 of file wifi.h.

#define SetMData (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_DATA_); \
} while (0)

Definition at line 230 of file wifi.h.

#define SetMFrag (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_MORE_FRAG_); \
} while (0)

Definition at line 191 of file wifi.h.

#define SetOrderBit (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_ORDER_); \
} while (0)

Definition at line 529 of file wifi.h.

#define SetPriority (   pbuf,
  tid 
)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(tid & 0xf); \
} while (0)

Definition at line 312 of file wifi.h.

#define SetPrivacy (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_PRIVACY_); \
} while (0)

Definition at line 243 of file wifi.h.

#define SetPwrMgt (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_PWRMGT_); \
} while (0)

Definition at line 217 of file wifi.h.

#define SetRetry (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_RETRY_); \
} while (0)

Definition at line 204 of file wifi.h.

#define SetSeqNum (   pbuf,
  num 
)
Value:
do { \
*(unsigned short *)((addr_t)(pbuf) + 22) = \
((*(unsigned short *)((addr_t)(pbuf) + 22)) & \
le16_to_cpu((unsigned short)0x000f)) | \
le16_to_cpu((unsigned short)(0xfff0 & (num << 4))); \
} while (0)

Definition at line 298 of file wifi.h.

#define SetToDs (   pbuf)
Value:
do { \
*(unsigned short *)(pbuf) |= cpu_to_le16(_TO_DS_); \
} while (0)

Definition at line 162 of file wifi.h.

#define WLAN_A3_PN_OFFSET   24

Definition at line 50 of file wifi.h.

#define WLAN_A4_PN_OFFSET   30

Definition at line 51 of file wifi.h.

#define WLAN_ADDR_LEN   6

Definition at line 39 of file wifi.h.

#define WLAN_BSS_TS_LEN   8

Definition at line 42 of file wifi.h.

#define WLAN_BSSID_LEN   6

Definition at line 41 of file wifi.h.

#define WLAN_CRC_LEN   4

Definition at line 40 of file wifi.h.

#define WLAN_DATA_MAXLEN   2312

Definition at line 48 of file wifi.h.

#define WLAN_ETHADDR_LEN   6

Definition at line 37 of file wifi.h.

#define WLAN_ETHCONV_8021h   3

Definition at line 496 of file wifi.h.

#define WLAN_ETHCONV_ENCAP   1

Definition at line 494 of file wifi.h.

#define WLAN_ETHCONV_RFC1042   2

Definition at line 495 of file wifi.h.

#define WLAN_ETHHDR_LEN   14

Definition at line 55 of file wifi.h.

#define WLAN_ETHHDR_LEN   14

Definition at line 55 of file wifi.h.

#define WLAN_HDR_A3_LEN   24

Definition at line 43 of file wifi.h.

#define WLAN_HDR_A3_QOS_LEN   26

Definition at line 45 of file wifi.h.

#define WLAN_HDR_A4_LEN   30

Definition at line 44 of file wifi.h.

#define WLAN_HDR_A4_QOS_LEN   32

Definition at line 46 of file wifi.h.

#define WLAN_HT_CAP_SM_PS_DISABLED   3

Definition at line 639 of file wifi.h.

#define WLAN_HT_CAP_SM_PS_DYNAMIC   1

Definition at line 637 of file wifi.h.

#define WLAN_HT_CAP_SM_PS_INVALID   2

Definition at line 638 of file wifi.h.

#define WLAN_HT_CAP_SM_PS_STATIC   0

Definition at line 636 of file wifi.h.

#define WLAN_IEEE_OUI_LEN   3

Definition at line 38 of file wifi.h.

#define WLAN_MAX_ETHFRM_LEN   1514

Definition at line 54 of file wifi.h.

#define WLAN_MIN_ETHFRM_LEN   60

Definition at line 53 of file wifi.h.

#define WLAN_SSID_MAXLEN   32

Definition at line 47 of file wifi.h.

Enumeration Type Documentation

Enumerator:
WIFI_ASSOCREQ 
WIFI_ASSOCRSP 
WIFI_REASSOCREQ 
WIFI_REASSOCRSP 
WIFI_PROBEREQ 
WIFI_PROBERSP 
WIFI_BEACON 
WIFI_ATIM 
WIFI_DISASSOC 
WIFI_AUTH 
WIFI_DEAUTH 
WIFI_ACTION 
WIFI_PSPOLL 
WIFI_RTS 
WIFI_CTS 
WIFI_ACK 
WIFI_CFEND 
WIFI_CFEND_CFACK 
WIFI_DATA 
WIFI_DATA_CFACK 
WIFI_DATA_CFPOLL 
WIFI_DATA_CFACKPOLL 
WIFI_DATA_NULL 
WIFI_CF_ACK 
WIFI_CF_POLL 
WIFI_CF_ACKPOLL 

Definition at line 66 of file wifi.h.

Enumerator:
WIFI_MGT_TYPE 
WIFI_CTRL_TYPE 
WIFI_DATA_TYPE 
WIFI_QOS_DATA_TYPE 

QoS Data

Definition at line 59 of file wifi.h.

Enumerator:
_RSON_RESERVED_ 
_RSON_UNSPECIFIED_ 
_RSON_AUTH_NO_LONGER_VALID_ 
_RSON_DEAUTH_STA_LEAVING_ 
_RSON_INACTIVITY_ 
_RSON_UNABLE_HANDLE_ 
_RSON_CLS2_ 
_RSON_CLS3_ 
_RSON_DISAOC_STA_LEAVING_ 
_RSON_ASOC_NOT_AUTH_ 
_RSON_INVALID_IE_ 
_RSON_MIC_FAILURE_ 
_RSON_4WAY_HNDSHK_TIMEOUT_ 
_RSON_GROUP_KEY_UPDATE_TIMEOUT_ 
_RSON_DIFF_IE_ 
_RSON_MLTCST_CIPHER_NOT_VALID_ 
_RSON_UNICST_CIPHER_NOT_VALID_ 
_RSON_AKMP_NOT_VALID_ 
_RSON_UNSUPPORT_RSNE_VER_ 
_RSON_INVALID_RSNE_CAP_ 
_RSON_IEEE_802DOT1X_AUTH_FAIL_ 
_RSON_PMK_NOT_AVAILABLE_ 

Definition at line 98 of file wifi.h.

Enumerator:
DOMAIN_FCC 
DOMAIN_IC 
DOMAIN_ETSI 
DOMAIN_SPAIN 
DOMAIN_FRANCE 
DOMAIN_MKK 
DOMAIN_ISRAEL 
DOMAIN_MKK1 
DOMAIN_MKK2 
DOMAIN_MKK3 
DOMAIN_MAX 

Definition at line 139 of file wifi.h.

Enumerator:
_STATS_SUCCESSFUL_ 
_STATS_FAILURE_ 
_STATS_CAP_FAIL_ 
_STATS_NO_ASOC_ 
_STATS_OTHER_ 
_STATS_NO_SUPP_ALG_ 
_STATS_OUT_OF_AUTH_SEQ_ 
_STATS_CHALLENGE_FAIL_ 
_STATS_AUTH_TIMEOUT_ 
_STATS_UNABLE_HANDLE_STA_ 
_STATS_RATE_FAIL_ 

Definition at line 125 of file wifi.h.

Variable Documentation