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

Go to the source code of this file.

Data Structures

struct  _CHNL_TXPOWER_TRIPLE
 
struct  _RT_DOT11D_INFO
 

Macros

#define eqMacAddr(a, b)   ( ((a)[0]==(b)[0] && (a)[1]==(b)[1] && (a)[2]==(b)[2] && (a)[3]==(b)[3] && (a)[4]==(b)[4] && (a)[5]==(b)[5]) ? 1:0 )
 
#define cpMacAddr(des, src)   ((des)[0]=(src)[0],(des)[1]=(src)[1],(des)[2]=(src)[2],(des)[3]=(src)[3],(des)[4]=(src)[4],(des)[5]=(src)[5])
 
#define GET_DOT11D_INFO(__pIeeeDev)   ((PRT_DOT11D_INFO)((__pIeeeDev)->pDot11dInfo))
 
#define IS_DOT11D_ENABLE(__pIeeeDev)   GET_DOT11D_INFO(__pIeeeDev)->bEnabled
 
#define IS_COUNTRY_IE_VALID(__pIeeeDev)   (GET_DOT11D_INFO(__pIeeeDev)->CountryIeLen > 0)
 
#define IS_EQUAL_CIE_SRC(__pIeeeDev, __pTa)   eqMacAddr(GET_DOT11D_INFO(__pIeeeDev)->CountryIeSrcAddr, __pTa)
 
#define UPDATE_CIE_SRC(__pIeeeDev, __pTa)   cpMacAddr(GET_DOT11D_INFO(__pIeeeDev)->CountryIeSrcAddr, __pTa)
 
#define IS_COUNTRY_IE_CHANGED(__pIeeeDev, __Ie)
 
#define CIE_WATCHDOG_TH   1
 
#define GET_CIE_WATCHDOG(__pIeeeDev)   GET_DOT11D_INFO(__pIeeeDev)->CountryIeWatchdog
 
#define RESET_CIE_WATCHDOG(__pIeeeDev)   GET_CIE_WATCHDOG(__pIeeeDev) = 0
 
#define UPDATE_CIE_WATCHDOG(__pIeeeDev)   ++GET_CIE_WATCHDOG(__pIeeeDev)
 
#define IS_DOT11D_STATE_DONE(__pIeeeDev)   (GET_DOT11D_INFO(__pIeeeDev)->State == DOT11D_STATE_DONE)
 

Typedefs

typedef struct _CHNL_TXPOWER_TRIPLE CHNL_TXPOWER_TRIPLE
 
typedef struct
_CHNL_TXPOWER_TRIPLE
PCHNL_TXPOWER_TRIPLE
 
typedef enum _DOT11D_STATE DOT11D_STATE
 
typedef struct _RT_DOT11D_INFO RT_DOT11D_INFO
 
typedef struct _RT_DOT11D_INFOPRT_DOT11D_INFO
 

Enumerations

enum  _DOT11D_STATE {
  DOT11D_STATE_NONE = 0, DOT11D_STATE_LEARNED, DOT11D_STATE_DONE, DOT11D_STATE_NONE = 0,
  DOT11D_STATE_LEARNED, DOT11D_STATE_DONE, DOT11D_STATE_NONE = 0, DOT11D_STATE_LEARNED,
  DOT11D_STATE_DONE
}
 

Functions

void Dot11d_Init (struct ieee80211_device *dev)
 
void Dot11d_Reset (struct ieee80211_device *dev)
 
void Dot11d_UpdateCountryIe (struct ieee80211_device *dev, u8 *pTaddr, u16 CoutryIeLen, u8 *pCoutryIe)
 
u8 DOT11D_GetMaxTxPwrInDbm (struct ieee80211_device *dev, u8 Channel)
 
void DOT11D_ScanComplete (struct ieee80211_device *dev)
 
int IsLegalChannel (struct ieee80211_device *dev, u8 channel)
 
int ToLegalChannel (struct ieee80211_device *dev, u8 channel)
 

Macro Definition Documentation

#define CIE_WATCHDOG_TH   1

Definition at line 53 of file dot11d.h.

#define cpMacAddr (   des,
  src 
)    ((des)[0]=(src)[0],(des)[1]=(src)[1],(des)[2]=(src)[2],(des)[3]=(src)[3],(des)[4]=(src)[4],(des)[5]=(src)[5])

Definition at line 39 of file dot11d.h.

#define eqMacAddr (   a,
  b 
)    ( ((a)[0]==(b)[0] && (a)[1]==(b)[1] && (a)[2]==(b)[2] && (a)[3]==(b)[3] && (a)[4]==(b)[4] && (a)[5]==(b)[5]) ? 1:0 )

Definition at line 38 of file dot11d.h.

#define GET_CIE_WATCHDOG (   __pIeeeDev)    GET_DOT11D_INFO(__pIeeeDev)->CountryIeWatchdog

Definition at line 54 of file dot11d.h.

#define GET_DOT11D_INFO (   __pIeeeDev)    ((PRT_DOT11D_INFO)((__pIeeeDev)->pDot11dInfo))

Definition at line 40 of file dot11d.h.

#define IS_COUNTRY_IE_CHANGED (   __pIeeeDev,
  __Ie 
)
Value:
(((__Ie).Length == 0 || (__Ie).Length != GET_DOT11D_INFO(__pIeeeDev)->CountryIeLen) ? \
FALSE : \
(!memcmp(GET_DOT11D_INFO(__pIeeeDev)->CountryIeBuf, (__Ie).Octet, (__Ie).Length)))

Definition at line 48 of file dot11d.h.

#define IS_COUNTRY_IE_VALID (   __pIeeeDev)    (GET_DOT11D_INFO(__pIeeeDev)->CountryIeLen > 0)

Definition at line 43 of file dot11d.h.

#define IS_DOT11D_ENABLE (   __pIeeeDev)    GET_DOT11D_INFO(__pIeeeDev)->bEnabled

Definition at line 42 of file dot11d.h.

#define IS_DOT11D_STATE_DONE (   __pIeeeDev)    (GET_DOT11D_INFO(__pIeeeDev)->State == DOT11D_STATE_DONE)

Definition at line 58 of file dot11d.h.

#define IS_EQUAL_CIE_SRC (   __pIeeeDev,
  __pTa 
)    eqMacAddr(GET_DOT11D_INFO(__pIeeeDev)->CountryIeSrcAddr, __pTa)

Definition at line 45 of file dot11d.h.

#define RESET_CIE_WATCHDOG (   __pIeeeDev)    GET_CIE_WATCHDOG(__pIeeeDev) = 0

Definition at line 55 of file dot11d.h.

#define UPDATE_CIE_SRC (   __pIeeeDev,
  __pTa 
)    cpMacAddr(GET_DOT11D_INFO(__pIeeeDev)->CountryIeSrcAddr, __pTa)

Definition at line 46 of file dot11d.h.

#define UPDATE_CIE_WATCHDOG (   __pIeeeDev)    ++GET_CIE_WATCHDOG(__pIeeeDev)

Definition at line 56 of file dot11d.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
DOT11D_STATE_NONE 
DOT11D_STATE_LEARNED 
DOT11D_STATE_DONE 
DOT11D_STATE_NONE 
DOT11D_STATE_LEARNED 
DOT11D_STATE_DONE 
DOT11D_STATE_NONE 
DOT11D_STATE_LEARNED 
DOT11D_STATE_DONE 

Definition at line 15 of file dot11d.h.

Function Documentation

u8 DOT11D_GetMaxTxPwrInDbm ( struct ieee80211_device dev,
u8  Channel 
)

Definition at line 133 of file dot11d.c.

void Dot11d_Init ( struct ieee80211_device dev)

Definition at line 13 of file dot11d.c.

void Dot11d_Reset ( struct ieee80211_device dev)

Definition at line 33 of file dot11d.c.

void DOT11D_ScanComplete ( struct ieee80211_device dev)

Definition at line 156 of file dot11d.c.

void Dot11d_UpdateCountryIe ( struct ieee80211_device dev,
u8 pTaddr,
u16  CoutryIeLen,
u8 pCoutryIe 
)

Definition at line 69 of file dot11d.c.

int IsLegalChannel ( struct ieee80211_device dev,
u8  channel 
)

Definition at line 179 of file dot11d.c.

int ToLegalChannel ( struct ieee80211_device dev,
u8  channel 
)

Definition at line 196 of file dot11d.c.