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

Go to the source code of this file.

Data Structures

struct  chnl_txpow_triple
 
struct  rt_dot11d_info
 

Macros

#define GET_DOT11D_INFO(__pIeeeDev)   ((struct rt_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)
 

Enumerations

enum  dot11d_state { DOT11D_STATE_NONE = 0, DOT11D_STATE_LEARNED, DOT11D_STATE_DONE }
 

Functions

void dot11d_init (struct rtllib_device *dev)
 
void Dot11d_Channelmap (u8 channel_plan, struct rtllib_device *ieee)
 
void Dot11d_Reset (struct rtllib_device *dev)
 
void Dot11d_UpdateCountryIe (struct rtllib_device *dev, u8 *pTaddr, u16 CoutryIeLen, u8 *pCoutryIe)
 
u8 DOT11D_GetMaxTxPwrInDbm (struct rtllib_device *dev, u8 Channel)
 
void DOT11D_ScanComplete (struct rtllib_device *dev)
 
int ToLegalChannel (struct rtllib_device *dev, u8 channel)
 

Macro Definition Documentation

#define CIE_WATCHDOG_TH   1

Definition at line 87 of file dot11d.h.

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

Definition at line 88 of file dot11d.h.

#define GET_DOT11D_INFO (   __pIeeeDev)    ((struct rt_dot11d_info *)((__pIeeeDev)->pDot11dInfo))

Definition at line 68 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 81 of file dot11d.h.

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

Definition at line 73 of file dot11d.h.

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

Definition at line 71 of file dot11d.h.

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

Definition at line 93 of file dot11d.h.

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

Definition at line 76 of file dot11d.h.

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

Definition at line 90 of file dot11d.h.

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

Definition at line 78 of file dot11d.h.

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

Definition at line 91 of file dot11d.h.

Enumeration Type Documentation

Enumerator:
DOT11D_STATE_NONE 
DOT11D_STATE_LEARNED 
DOT11D_STATE_DONE 

Definition at line 32 of file dot11d.h.

Function Documentation

void Dot11d_Channelmap ( u8  channel_plan,
struct rtllib_device ieee 
)

Definition at line 63 of file dot11d.c.

u8 DOT11D_GetMaxTxPwrInDbm ( struct rtllib_device dev,
u8  Channel 
)

Definition at line 164 of file dot11d.c.

void dot11d_init ( struct rtllib_device dev)

Definition at line 49 of file dot11d.c.

void Dot11d_Reset ( struct rtllib_device dev)

Definition at line 106 of file dot11d.c.

void DOT11D_ScanComplete ( struct rtllib_device dev)

Definition at line 180 of file dot11d.c.

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

Definition at line 122 of file dot11d.c.

int ToLegalChannel ( struct rtllib_device dev,
u8  channel 
)

Definition at line 196 of file dot11d.c.