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

Go to the source code of this file.

Macros

#define IS_TYPE_DATA(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_DATA)
 
#define IS_TYPE_MGMT(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_MGMT)
 
#define IS_TYPE_CONTROL(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_CTL)
 
#define IS_FC_MOREDATA(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREDATA) == FC_MOREDATA)
 
#define IS_FC_POWERMGT(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_POWERMGT) == FC_POWERMGT)
 
#define IS_FC_RETRY(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_RETRY) == FC_RETRY)
 
#define IS_FC_WEP(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_WEP) == FC_WEP)
 
#define IS_FRAGMENT_PKT(pMACHeader)
 
#define IS_FIRST_FRAGMENT_PKT(pMACHeader)   ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x000F) == 0)
 
#define IS_LAST_FRAGMENT_PKT(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) == 0)
 
#define IS_CTL_PSPOLL(pMACHeader)   ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_CTL_PSPOLL)
 
#define ADD_ONE_WITH_WRAP_AROUND(uVar, uModulo)
 

Functions

BOOL WCTLbIsDuplicate (PSCache pCache, PS802_11Header pMACHeader)
 
BOOL WCTLbHandleFragment (PSDevice pDevice, PS802_11Header pMACHeader, unsigned int cbFrameLength, BOOL bWEP, BOOL bExtIV)
 
unsigned int WCTLuSearchDFCB (PSDevice pDevice, PS802_11Header pMACHeader)
 
unsigned int WCTLuInsertDFCB (PSDevice pDevice, PS802_11Header pMACHeader)
 

Macro Definition Documentation

#define ADD_ONE_WITH_WRAP_AROUND (   uVar,
  uModulo 
)
Value:
{ \
if ((uVar) >= ((uModulo) - 1)) \
(uVar) = 0; \
else \
(uVar)++; \
}

Definition at line 86 of file wctl.h.

#define IS_CTL_PSPOLL (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_SUBTYPE_MASK) == TYPE_CTL_PSPOLL)

Definition at line 82 of file wctl.h.

#define IS_FC_MOREDATA (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREDATA) == FC_MOREDATA)

Definition at line 47 of file wctl.h.

#define IS_FC_POWERMGT (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_POWERMGT) == FC_POWERMGT)

Definition at line 50 of file wctl.h.

#define IS_FC_RETRY (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_RETRY) == FC_RETRY)

Definition at line 53 of file wctl.h.

#define IS_FC_WEP (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_WEP) == FC_WEP)

Definition at line 56 of file wctl.h.

#define IS_FIRST_FRAGMENT_PKT (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wSeqCtl & 0x000F) == 0)

Definition at line 74 of file wctl.h.

#define IS_FRAGMENT_PKT (   pMACHeader)
Value:
(((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) != 0) | \
((((PS802_11Header) pMACHeader)->wSeqCtl & 0x000F) != 0))

Definition at line 70 of file wctl.h.

#define IS_LAST_FRAGMENT_PKT (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & FC_MOREFRAG) == 0)

Definition at line 79 of file wctl.h.

#define IS_TYPE_CONTROL (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_CTL)

Definition at line 44 of file wctl.h.

#define IS_TYPE_DATA (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_DATA)

Definition at line 38 of file wctl.h.

#define IS_TYPE_MGMT (   pMACHeader)    ((((PS802_11Header) pMACHeader)->wFrameCtl & TYPE_802_11_MASK) == TYPE_802_11_MGMT)

Definition at line 41 of file wctl.h.

Function Documentation

BOOL WCTLbHandleFragment ( PSDevice  pDevice,
PS802_11Header  pMACHeader,
unsigned int  cbFrameLength,
BOOL  bWEP,
BOOL  bExtIV 
)

Definition at line 183 of file wctl.c.

BOOL WCTLbIsDuplicate ( PSCache  pCache,
PS802_11Header  pMACHeader 
)

Definition at line 69 of file wctl.c.

unsigned int WCTLuInsertDFCB ( PSDevice  pDevice,
PS802_11Header  pMACHeader 
)

Definition at line 141 of file wctl.c.

unsigned int WCTLuSearchDFCB ( PSDevice  pDevice,
PS802_11Header  pMACHeader 
)

Definition at line 111 of file wctl.c.