Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
datarate.c File Reference
#include "ttype.h"
#include "tmacro.h"
#include "mac.h"
#include "80211mgr.h"
#include "bssdb.h"
#include "datarate.h"
#include "card.h"
#include "baseband.h"
#include "srom.h"
#include "rf.h"

Go to the source code of this file.

Macros

#define AUTORATE_TXOK_CNT   0x0400
 
#define AUTORATE_TXFAIL_CNT   0x0064
 
#define AUTORATE_TIMEOUT   10
 
#define AUTORATE_TXCNT_THRESHOLD   20
 
#define AUTORATE_INC_THRESHOLD   30
 
#define AUTORATE_TXCNT_THRESHOLD   20
 
#define AUTORATE_INC_THRESHOLD   30
 

Functions

void s_vResetCounter (PKnownNodeDB psNodeDBTable)
 
BYTE DATARATEbyGetRateIdx (BYTE byRate)
 
WORD RATEwGetRateIdx (BYTE byRate)
 
void RATEvParseMaxRate (void *pDeviceHandler, PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pItemExtRates, BOOL bUpdateBasicRate, PWORD pwMaxBasicRate, PWORD pwMaxSuppRate, PWORD pwSuppRate, PBYTE pbyTopCCKRate, PBYTE pbyTopOFDMRate)
 
void RATEvTxRateFallBack (void *pDeviceHandler, PKnownNodeDB psNodeDBTable)
 
BYTE RATEuSetIE (PWLAN_IE_SUPP_RATES pSrcRates, PWLAN_IE_SUPP_RATES pDstRates, unsigned int uRateLen)
 

Variables

const BYTE acbyIERate [MAX_RATE]
 

Macro Definition Documentation

#define AUTORATE_INC_THRESHOLD   30

Definition at line 302 of file datarate.c.

#define AUTORATE_INC_THRESHOLD   30

Definition at line 302 of file datarate.c.

#define AUTORATE_TIMEOUT   10

Definition at line 64 of file datarate.c.

#define AUTORATE_TXCNT_THRESHOLD   20

Definition at line 301 of file datarate.c.

#define AUTORATE_TXCNT_THRESHOLD   20

Definition at line 301 of file datarate.c.

#define AUTORATE_TXFAIL_CNT   0x0064

Definition at line 63 of file datarate.c.

#define AUTORATE_TXOK_CNT   0x0400

Definition at line 62 of file datarate.c.

Function Documentation

BYTE DATARATEbyGetRateIdx ( BYTE  byRate)

Definition at line 102 of file datarate.c.

BYTE RATEuSetIE ( PWLAN_IE_SUPP_RATES  pSrcRates,
PWLAN_IE_SUPP_RATES  pDstRates,
unsigned int  uRateLen 
)

Definition at line 407 of file datarate.c.

void RATEvParseMaxRate ( void pDeviceHandler,
PWLAN_IE_SUPP_RATES  pItemRates,
PWLAN_IE_SUPP_RATES  pItemExtRates,
BOOL  bUpdateBasicRate,
PWORD  pwMaxBasicRate,
PWORD  pwMaxSuppRate,
PWORD  pwSuppRate,
PBYTE  pbyTopCCKRate,
PBYTE  pbyTopOFDMRate 
)

Definition at line 191 of file datarate.c.

void RATEvTxRateFallBack ( void pDeviceHandler,
PKnownNodeDB  psNodeDBTable 
)

Definition at line 305 of file datarate.c.

WORD RATEwGetRateIdx ( BYTE  byRate)

Definition at line 156 of file datarate.c.

void s_vResetCounter ( PKnownNodeDB  psNodeDBTable)

Variable Documentation

const BYTE acbyIERate[MAX_RATE]
Initial value:
=
{0x02, 0x04, 0x0B, 0x16, 0x0C, 0x12, 0x18, 0x24, 0x30, 0x48, 0x60, 0x6C}

Definition at line 59 of file datarate.c.