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"

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)
 
unsigned char DATARATEbyGetRateIdx (unsigned char byRate)
 
unsigned short wGetRateIdx (unsigned char byRate)
 
void RATEvParseMaxRate (void *pDeviceHandler, PWLAN_IE_SUPP_RATES pItemRates, PWLAN_IE_SUPP_RATES pItemExtRates, bool bUpdateBasicRate, unsigned short *pwMaxBasicRate, unsigned short *pwMaxSuppRate, unsigned short *pwSuppRate, unsigned char *pbyTopCCKRate, unsigned char *pbyTopOFDMRate)
 
void RATEvTxRateFallBack (void *pDeviceHandler, PKnownNodeDB psNodeDBTable)
 
unsigned char RATEuSetIE (PWLAN_IE_SUPP_RATES pSrcRates, PWLAN_IE_SUPP_RATES pDstRates, unsigned int uRateLen)
 

Variables

unsigned short TxRate_iwconfig
 
const unsigned char acbyIERate [MAX_RATE]
 

Macro Definition Documentation

#define AUTORATE_INC_THRESHOLD   30

Definition at line 308 of file datarate.c.

#define AUTORATE_INC_THRESHOLD   30

Definition at line 308 of file datarate.c.

#define AUTORATE_TIMEOUT   10

Definition at line 63 of file datarate.c.

#define AUTORATE_TXCNT_THRESHOLD   20

Definition at line 307 of file datarate.c.

#define AUTORATE_TXCNT_THRESHOLD   20

Definition at line 307 of file datarate.c.

#define AUTORATE_TXFAIL_CNT   0x0064

Definition at line 62 of file datarate.c.

#define AUTORATE_TXOK_CNT   0x0400

Definition at line 61 of file datarate.c.

Function Documentation

unsigned char DATARATEbyGetRateIdx ( unsigned char  byRate)

Definition at line 108 of file datarate.c.

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

Definition at line 413 of file datarate.c.

void RATEvParseMaxRate ( void pDeviceHandler,
PWLAN_IE_SUPP_RATES  pItemRates,
PWLAN_IE_SUPP_RATES  pItemExtRates,
bool  bUpdateBasicRate,
unsigned short pwMaxBasicRate,
unsigned short pwMaxSuppRate,
unsigned short pwSuppRate,
unsigned char pbyTopCCKRate,
unsigned char pbyTopOFDMRate 
)

Definition at line 198 of file datarate.c.

void RATEvTxRateFallBack ( void pDeviceHandler,
PKnownNodeDB  psNodeDBTable 
)

Definition at line 311 of file datarate.c.

void s_vResetCounter ( PKnownNodeDB  psNodeDBTable)

Definition at line 74 of file datarate.c.

unsigned short wGetRateIdx ( unsigned char  byRate)

Definition at line 162 of file datarate.c.

Variable Documentation

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

Definition at line 58 of file datarate.c.

unsigned short TxRate_iwconfig

Definition at line 75 of file mac.c.