#include <wlan/wlan_compat.h>
Go to the source code of this file.
Data Structures | |
struct | p80211_hdr_a3 |
struct | p80211_hdr_a4 |
union | p80211_hdr |
Defines | |
#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_SSID_MAXLEN 32 |
#define | WLAN_DATA_MAXLEN 2312 |
#define | WLAN_A3FR_MAXLEN (WLAN_HDR_A3_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN) |
#define | WLAN_A4FR_MAXLEN (WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN) |
#define | WLAN_BEACON_FR_MAXLEN (WLAN_HDR_A3_LEN + 334) |
#define | WLAN_ATIM_FR_MAXLEN (WLAN_HDR_A3_LEN + 0) |
#define | WLAN_DISASSOC_FR_MAXLEN (WLAN_HDR_A3_LEN + 2) |
#define | WLAN_ASSOCREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 48) |
#define | WLAN_ASSOCRESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 16) |
#define | WLAN_REASSOCREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 54) |
#define | WLAN_REASSOCRESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 16) |
#define | WLAN_PROBEREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 44) |
#define | WLAN_PROBERESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 78) |
#define | WLAN_AUTHEN_FR_MAXLEN (WLAN_HDR_A3_LEN + 261) |
#define | WLAN_DEAUTHEN_FR_MAXLEN (WLAN_HDR_A3_LEN + 2) |
#define | WLAN_WEP_NKEYS 4 |
#define | WLAN_WEP_MAXKEYLEN 13 |
#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_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_FSTYPE_QOS_MASK 0x08 |
#define | WLAN_FSTYPE_QOS_UNMASK 0x07 |
#define | WLAN_FSTYPE_QOS_DATAONLY (WLAN_FSTYPE_DATAONLY + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_DATA_CFACK (WLAN_FSTYPE_DATA_CFACK + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_DATA_CFPOLL (WLAN_FSTYPE_DATA_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_DATA_CFACK_CFPOLL (WLAN_FSTYPE_DATA_CFACK_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_NULL (WLAN_FSTYPE_NULL + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_CFACK (WLAN_FSTYPE_CFACK + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_CFPOLL (WLAN_FSTYPE_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_FSTYPE_QOS_CFACK_CFPOLL (WLAN_FSTYPE_CFACK_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define | WLAN_GET_FC_PVER(n) (((UINT16)(n)) & (BIT0 | BIT1)) |
#define | WLAN_GET_FC_FTYPE(n) ((((UINT16)(n)) & (BIT2 | BIT3)) >> 2) |
#define | WLAN_GET_FC_FSTYPE(n) ((((UINT16)(n)) & (BIT4|BIT5|BIT6|BIT7)) >> 4) |
#define | WLAN_GET_FC_TODS(n) ((((UINT16)(n)) & (BIT8)) >> 8) |
#define | WLAN_GET_FC_FROMDS(n) ((((UINT16)(n)) & (BIT9)) >> 9) |
#define | WLAN_GET_FC_MOREFRAG(n) ((((UINT16)(n)) & (BIT10)) >> 10) |
#define | WLAN_GET_FC_RETRY(n) ((((UINT16)(n)) & (BIT11)) >> 11) |
#define | WLAN_GET_FC_PWRMGT(n) ((((UINT16)(n)) & (BIT12)) >> 12) |
#define | WLAN_GET_FC_MOREDATA(n) ((((UINT16)(n)) & (BIT13)) >> 13) |
#define | WLAN_GET_FC_ISWEP(n) ((((UINT16)(n)) & (BIT14)) >> 14) |
#define | WLAN_GET_FC_ORDER(n) ((((UINT16)(n)) & (BIT15)) >> 15) |
#define | WLAN_SET_FC_PVER(n) ((UINT16)(n)) |
#define | WLAN_SET_FC_FTYPE(n) (((UINT16)(n)) << 2) |
#define | WLAN_SET_FC_FSTYPE(n) (((UINT16)(n)) << 4) |
#define | WLAN_SET_FC_TODS(n) (((UINT16)(n)) << 8) |
#define | WLAN_SET_FC_FROMDS(n) (((UINT16)(n)) << 9) |
#define | WLAN_SET_FC_MOREFRAG(n) (((UINT16)(n)) << 10) |
#define | WLAN_SET_FC_RETRY(n) (((UINT16)(n)) << 11) |
#define | WLAN_SET_FC_PWRMGT(n) (((UINT16)(n)) << 12) |
#define | WLAN_SET_FC_MOREDATA(n) (((UINT16)(n)) << 13) |
#define | WLAN_SET_FC_ISWEP(n) (((UINT16)(n)) << 14) |
#define | WLAN_SET_FC_ORDER(n) (((UINT16)(n)) << 15) |
#define | WLAN_GET_SEQ_FRGNUM(n) (((UINT16)(n)) & (BIT0|BIT1|BIT2|BIT3)) |
#define | WLAN_GET_SEQ_SEQNUM(n) ((((UINT16)(n)) & (~(BIT0|BIT1|BIT2|BIT3))) >> 4) |
#define | WLAN_HDR_A3_DATAP(p) (((UINT8*)(p)) + WLAN_HDR_A3_LEN) |
#define | WLAN_HDR_A4_DATAP(p) (((UINT8*)(p)) + WLAN_HDR_A4_LEN) |
#define | DOT11_RATE5_ISBASIC_GET(r) (((UINT8)(r)) & BIT7) |
#define | WLAN_CTL_FRAMELEN(fstype) |
#define | WLAN_FCS_LEN 4 |
Typedefs | |
typedef UINT8 | wlan_bss_ts_t [8] |
typedef struct p80211_hdr_a3 | p80211_hdr_a3_t |
typedef struct p80211_hdr_a4 | p80211_hdr_a4_t |
typedef union p80211_hdr | p80211_hdr_t |
Functions | |
static UINT16 | p80211_headerlen (UINT16 fctl) |
#define WLAN_ADDR_LEN 6 |
Definition at line 78 of file p80211hdr.h.
Referenced by p80211_headerlen(), and Send_To_All_BSSID_A_Deauth().
#define WLAN_CRC_LEN 4 |
Definition at line 79 of file p80211hdr.h.
#define WLAN_BSSID_LEN 6 |
Definition at line 80 of file p80211hdr.h.
#define WLAN_BSS_TS_LEN 8 |
Definition at line 81 of file p80211hdr.h.
#define WLAN_HDR_A3_LEN 24 |
#define WLAN_HDR_A4_LEN 30 |
Definition at line 83 of file p80211hdr.h.
#define WLAN_SSID_MAXLEN 32 |
Definition at line 84 of file p80211hdr.h.
Referenced by LogPutSSID_byAddMac(), LogPutSSID_byBSSID(), and ProcessTagBits().
#define WLAN_DATA_MAXLEN 2312 |
Definition at line 85 of file p80211hdr.h.
#define WLAN_A3FR_MAXLEN (WLAN_HDR_A3_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN) |
Definition at line 86 of file p80211hdr.h.
#define WLAN_A4FR_MAXLEN (WLAN_HDR_A4_LEN + WLAN_DATA_MAXLEN + WLAN_CRC_LEN) |
Definition at line 87 of file p80211hdr.h.
#define WLAN_BEACON_FR_MAXLEN (WLAN_HDR_A3_LEN + 334) |
Definition at line 88 of file p80211hdr.h.
#define WLAN_ATIM_FR_MAXLEN (WLAN_HDR_A3_LEN + 0) |
Definition at line 89 of file p80211hdr.h.
#define WLAN_DISASSOC_FR_MAXLEN (WLAN_HDR_A3_LEN + 2) |
Definition at line 90 of file p80211hdr.h.
#define WLAN_ASSOCREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 48) |
Definition at line 91 of file p80211hdr.h.
#define WLAN_ASSOCRESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 16) |
Definition at line 92 of file p80211hdr.h.
#define WLAN_REASSOCREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 54) |
Definition at line 93 of file p80211hdr.h.
#define WLAN_REASSOCRESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 16) |
Definition at line 94 of file p80211hdr.h.
#define WLAN_PROBEREQ_FR_MAXLEN (WLAN_HDR_A3_LEN + 44) |
Definition at line 95 of file p80211hdr.h.
#define WLAN_PROBERESP_FR_MAXLEN (WLAN_HDR_A3_LEN + 78) |
Definition at line 96 of file p80211hdr.h.
#define WLAN_AUTHEN_FR_MAXLEN (WLAN_HDR_A3_LEN + 261) |
Definition at line 97 of file p80211hdr.h.
#define WLAN_DEAUTHEN_FR_MAXLEN (WLAN_HDR_A3_LEN + 2) |
Definition at line 98 of file p80211hdr.h.
#define WLAN_WEP_NKEYS 4 |
Definition at line 99 of file p80211hdr.h.
#define WLAN_WEP_MAXKEYLEN 13 |
Definition at line 100 of file p80211hdr.h.
#define WLAN_CHALLENGE_IE_LEN 130 |
Definition at line 101 of file p80211hdr.h.
#define WLAN_CHALLENGE_LEN 128 |
Definition at line 102 of file p80211hdr.h.
#define WLAN_WEP_IV_LEN 4 |
Definition at line 103 of file p80211hdr.h.
#define WLAN_WEP_ICV_LEN 4 |
Definition at line 104 of file p80211hdr.h.
#define WLAN_FTYPE_MGMT 0x00 |
Definition at line 108 of file p80211hdr.h.
Referenced by main(), p80211_headerlen(), processPacket(), and TypeOfPacketToString().
#define WLAN_FTYPE_CTL 0x01 |
Definition at line 109 of file p80211hdr.h.
Referenced by p80211_headerlen(), processPacket(), and TypeOfPacketToString().
#define WLAN_FTYPE_DATA 0x02 |
Definition at line 110 of file p80211hdr.h.
Referenced by p80211_headerlen(), processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_ASSOCREQ 0x00 |
Definition at line 114 of file p80211hdr.h.
Referenced by processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_ASSOCRESP 0x01 |
Definition at line 115 of file p80211hdr.h.
Referenced by processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_REASSOCREQ 0x02 |
Definition at line 116 of file p80211hdr.h.
Referenced by processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_REASSOCRESP 0x03 |
Definition at line 117 of file p80211hdr.h.
Referenced by processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_PROBEREQ 0x04 |
Definition at line 118 of file p80211hdr.h.
Referenced by analyseProbeReq(), main(), processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_PROBERESP 0x05 |
Definition at line 119 of file p80211hdr.h.
Referenced by analyseProbeRep(), processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_BEACON 0x08 |
Definition at line 120 of file p80211hdr.h.
Referenced by analyseBeacon(), processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_ATIM 0x09 |
Definition at line 121 of file p80211hdr.h.
Referenced by processPacket(), ProcessTagBits(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DISASSOC 0x0a |
Definition at line 122 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_AUTHEN 0x0b |
Definition at line 123 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DEAUTHEN 0x0c |
Definition at line 124 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_BLOCKACKREQ 0x8 |
Definition at line 127 of file p80211hdr.h.
#define WLAN_FSTYPE_BLOCKACK 0x9 |
Definition at line 128 of file p80211hdr.h.
#define WLAN_FSTYPE_PSPOLL 0x0a |
Definition at line 129 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_RTS 0x0b |
Definition at line 130 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CTS 0x0c |
Definition at line 131 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_ACK 0x0d |
Definition at line 132 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CFEND 0x0e |
Definition at line 133 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CFENDCFACK 0x0f |
Definition at line 134 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DATAONLY 0x00 |
Definition at line 137 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DATA_CFACK 0x01 |
Definition at line 138 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DATA_CFPOLL 0x02 |
Definition at line 139 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_DATA_CFACK_CFPOLL 0x03 |
Definition at line 140 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_NULL 0x04 |
Definition at line 141 of file p80211hdr.h.
Referenced by analyseData(), processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CFACK 0x05 |
Definition at line 142 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CFPOLL 0x06 |
Definition at line 143 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_CFACK_CFPOLL 0x07 |
Definition at line 144 of file p80211hdr.h.
Referenced by processPacket(), and TypeOfPacketToString().
#define WLAN_FSTYPE_QOS_MASK 0x08 |
#define WLAN_FSTYPE_QOS_UNMASK 0x07 |
#define WLAN_FSTYPE_QOS_DATAONLY (WLAN_FSTYPE_DATAONLY + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_DATA_CFACK (WLAN_FSTYPE_DATA_CFACK + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_DATA_CFPOLL (WLAN_FSTYPE_DATA_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_DATA_CFACK_CFPOLL (WLAN_FSTYPE_DATA_CFACK_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_NULL (WLAN_FSTYPE_NULL + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_CFACK (WLAN_FSTYPE_CFACK + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_CFPOLL (WLAN_FSTYPE_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_FSTYPE_QOS_CFACK_CFPOLL (WLAN_FSTYPE_CFACK_CFPOLL + WLAN_FSTYPE_QOS_MASK) |
#define WLAN_GET_FC_PVER | ( | n | ) | (((UINT16)(n)) & (BIT0 | BIT1)) |
Definition at line 181 of file p80211hdr.h.
#define WLAN_GET_FC_FTYPE | ( | n | ) | ((((UINT16)(n)) & (BIT2 | BIT3)) >> 2) |
Definition at line 182 of file p80211hdr.h.
Referenced by main(), p80211_headerlen(), processPacket(), and TypeOfPacketToString().
#define WLAN_GET_FC_FSTYPE | ( | n | ) | ((((UINT16)(n)) & (BIT4|BIT5|BIT6|BIT7)) >> 4) |
Definition at line 183 of file p80211hdr.h.
Referenced by analyseData(), main(), p80211_headerlen(), processPacket(), and TypeOfPacketToString().
#define WLAN_GET_FC_TODS | ( | n | ) | ((((UINT16)(n)) & (BIT8)) >> 8) |
Definition at line 184 of file p80211hdr.h.
Referenced by analyseData(), dataIsCrypted(), and p80211_headerlen().
#define WLAN_GET_FC_FROMDS | ( | n | ) | ((((UINT16)(n)) & (BIT9)) >> 9) |
Definition at line 185 of file p80211hdr.h.
Referenced by analyseData(), dataIsCrypted(), and p80211_headerlen().
#define WLAN_GET_FC_MOREFRAG | ( | n | ) | ((((UINT16)(n)) & (BIT10)) >> 10) |
Definition at line 186 of file p80211hdr.h.
#define WLAN_GET_FC_RETRY | ( | n | ) | ((((UINT16)(n)) & (BIT11)) >> 11) |
Definition at line 187 of file p80211hdr.h.
#define WLAN_GET_FC_PWRMGT | ( | n | ) | ((((UINT16)(n)) & (BIT12)) >> 12) |
Definition at line 188 of file p80211hdr.h.
#define WLAN_GET_FC_MOREDATA | ( | n | ) | ((((UINT16)(n)) & (BIT13)) >> 13) |
Definition at line 189 of file p80211hdr.h.
#define WLAN_GET_FC_ISWEP | ( | n | ) | ((((UINT16)(n)) & (BIT14)) >> 14) |
Definition at line 190 of file p80211hdr.h.
#define WLAN_GET_FC_ORDER | ( | n | ) | ((((UINT16)(n)) & (BIT15)) >> 15) |
Definition at line 191 of file p80211hdr.h.
#define WLAN_SET_FC_PVER | ( | n | ) | ((UINT16)(n)) |
Definition at line 193 of file p80211hdr.h.
#define WLAN_SET_FC_FTYPE | ( | n | ) | (((UINT16)(n)) << 2) |
Definition at line 194 of file p80211hdr.h.
#define WLAN_SET_FC_FSTYPE | ( | n | ) | (((UINT16)(n)) << 4) |
Definition at line 195 of file p80211hdr.h.
#define WLAN_SET_FC_TODS | ( | n | ) | (((UINT16)(n)) << 8) |
Definition at line 196 of file p80211hdr.h.
#define WLAN_SET_FC_FROMDS | ( | n | ) | (((UINT16)(n)) << 9) |
Definition at line 197 of file p80211hdr.h.
#define WLAN_SET_FC_MOREFRAG | ( | n | ) | (((UINT16)(n)) << 10) |
Definition at line 198 of file p80211hdr.h.
#define WLAN_SET_FC_RETRY | ( | n | ) | (((UINT16)(n)) << 11) |
Definition at line 199 of file p80211hdr.h.
#define WLAN_SET_FC_PWRMGT | ( | n | ) | (((UINT16)(n)) << 12) |
Definition at line 200 of file p80211hdr.h.
#define WLAN_SET_FC_MOREDATA | ( | n | ) | (((UINT16)(n)) << 13) |
Definition at line 201 of file p80211hdr.h.
#define WLAN_SET_FC_ISWEP | ( | n | ) | (((UINT16)(n)) << 14) |
Definition at line 202 of file p80211hdr.h.
#define WLAN_SET_FC_ORDER | ( | n | ) | (((UINT16)(n)) << 15) |
Definition at line 203 of file p80211hdr.h.
#define WLAN_GET_SEQ_FRGNUM | ( | n | ) | (((UINT16)(n)) & (BIT0|BIT1|BIT2|BIT3)) |
Definition at line 216 of file p80211hdr.h.
Referenced by analyseBeacon(), analyseProbeRep(), and analyseProbeReq().
#define WLAN_GET_SEQ_SEQNUM | ( | n | ) | ((((UINT16)(n)) & (~(BIT0|BIT1|BIT2|BIT3))) >> 4) |
Definition at line 217 of file p80211hdr.h.
Referenced by analyseBeacon(), analyseProbeRep(), analyseProbeReq(), and LogPutSeqNum().
#define WLAN_HDR_A3_DATAP | ( | p | ) | (((UINT8*)(p)) + WLAN_HDR_A3_LEN) |
Definition at line 223 of file p80211hdr.h.
#define WLAN_HDR_A4_DATAP | ( | p | ) | (((UINT8*)(p)) + WLAN_HDR_A4_LEN) |
Definition at line 224 of file p80211hdr.h.
#define DOT11_RATE5_ISBASIC_GET | ( | r | ) | (((UINT8)(r)) & BIT7) |
Definition at line 226 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 273 of file p80211hdr.h.
Referenced by p80211_headerlen().
#define WLAN_FCS_LEN 4 |
typedef UINT8 wlan_bss_ts_t[8] |
Definition at line 232 of file p80211hdr.h.
typedef struct p80211_hdr_a3 p80211_hdr_a3_t |
typedef struct p80211_hdr_a4 p80211_hdr_a4_t |
typedef union p80211_hdr p80211_hdr_t |
Definition at line 286 of file p80211hdr.h.
References WLAN_ADDR_LEN, WLAN_CTL_FRAMELEN, WLAN_FCS_LEN, WLAN_FTYPE_CTL, WLAN_FTYPE_DATA, WLAN_FTYPE_MGMT, WLAN_GET_FC_FROMDS, WLAN_GET_FC_FSTYPE, WLAN_GET_FC_FTYPE, WLAN_GET_FC_TODS, and WLAN_HDR_A3_LEN.
00287 { 00288 UINT16 hdrlen = 0; 00289 00290 switch ( WLAN_GET_FC_FTYPE(fctl) ) { 00291 case WLAN_FTYPE_MGMT: 00292 hdrlen = WLAN_HDR_A3_LEN; 00293 break; 00294 case WLAN_FTYPE_DATA: 00295 hdrlen = WLAN_HDR_A3_LEN; 00296 if ( WLAN_GET_FC_TODS(fctl) && WLAN_GET_FC_FROMDS(fctl) ) { 00297 hdrlen += WLAN_ADDR_LEN; 00298 } 00299 break; 00300 case WLAN_FTYPE_CTL: 00301 hdrlen = WLAN_CTL_FRAMELEN(WLAN_GET_FC_FSTYPE(fctl)) - 00302 WLAN_FCS_LEN; 00303 break; 00304 default: 00305 hdrlen = WLAN_HDR_A3_LEN; 00306 } 00307 00308 return hdrlen; 00309 }