Go to the documentation of this file.
38 #define IS_TYPE_DATA(pMACHeader) \
39 ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_DATA)
41 #define IS_TYPE_MGMT(pMACHeader) \
42 ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_MGMT)
44 #define IS_TYPE_CONTROL(pMACHeader) \
45 ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_CTL)
47 #define IS_FC_MOREDATA(pMACHeader) \
48 ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREDATA) == FC_MOREDATA)
50 #define IS_FC_POWERMGT(pMACHeader) \
51 ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_POWERMGT) == FC_POWERMGT)
53 #define IS_FC_RETRY(pMACHeader) \
54 ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_RETRY) == FC_RETRY)
56 #define IS_FC_WEP(pMACHeader) \
57 ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_WEP) == FC_WEP)
61 #define IS_FRAGMENT_PKT(pMACHeader) \
62 (((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) != 0) | \
63 ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x0F00) != 0))
65 #define IS_FIRST_FRAGMENT_PKT(pMACHeader) \
66 ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x0F00) == 0)
70 #define IS_FRAGMENT_PKT(pMACHeader) \
71 (((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) != 0) | \
72 ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x000F) != 0))
74 #define IS_FIRST_FRAGMENT_PKT(pMACHeader) \
75 ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x000F) == 0)
77 #endif//#ifdef __BIG_ENDIAN
79 #define IS_LAST_FRAGMENT_PKT(pMACHeader) \
80 ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) == 0)
82 #define IS_CTL_PSPOLL(pMACHeader) \
83 ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_CTL_PSPOLL)
86 #define ADD_ONE_WITH_WRAP_AROUND(uVar, uModulo) { \
87 if ((uVar) >= ((uModulo) - 1)) \
101 unsigned int cbFrameLength,
BOOL bWEP,
BOOL bExtIV);