Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
card.c File Reference
#include "tmacro.h"
#include "card.h"
#include "baseband.h"
#include "mac.h"
#include "desc.h"
#include "rf.h"
#include "vntwifi.h"
#include "power.h"
#include "key.h"
#include "rc4.h"
#include "country.h"
#include "channel.h"

Go to the source code of this file.

Macros

#define C_SIFS_A   16
 
#define C_SIFS_BG   10
 
#define C_EIFS   80
 
#define C_SLOT_SHORT   9
 
#define C_SLOT_LONG   20
 
#define C_CWMIN_A   15
 
#define C_CWMIN_B   31
 
#define C_CWMAX   1023
 
#define WAIT_BEACON_TX_DOWN_TMO   3
 

Functions

bool CARDbIsShortPreamble (void *pDeviceHandler)
 
bool CARDbIsShorSlotTime (void *pDeviceHandler)
 
bool CARDbSetPhyParameter (void *pDeviceHandler, CARD_PHY_TYPE ePHYType, unsigned short wCapInfo, unsigned char byERPField, void *pvSupportRateIEs, void *pvExtSupportRateIEs)
 
bool CARDbUpdateTSF (void *pDeviceHandler, unsigned char byRxRate, QWORD qwBSSTimestamp, QWORD qwLocalTSF)
 
bool CARDbSetBeaconPeriod (void *pDeviceHandler, unsigned short wBeaconInterval)
 
bool CARDbStopTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType)
 
bool CARDbStartTxPacket (void *pDeviceHandler, CARD_PKT_TYPE ePktType)
 
bool CARDbSetBSSID (void *pDeviceHandler, unsigned char *pbyBSSID, CARD_OP_MODE eOPMode)
 
bool CARDbSetTxDataRate (void *pDeviceHandler, unsigned short wDataRate)
 
bool CARDbPowerDown (void *pDeviceHandler)
 
bool CARDbRadioPowerOff (void *pDeviceHandler)
 
bool CARDbRadioPowerOn (void *pDeviceHandler)
 
bool CARDbRemoveKey (void *pDeviceHandler, unsigned char *pbyBSSID)
 
bool CARDbAdd_PMKID_Candidate (void *pDeviceHandler, unsigned char *pbyBSSID, bool bRSNCapExist, unsigned short wRSNCap)
 
voidCARDpGetCurrentAddress (void *pDeviceHandler)
 
bool CARDbStartMeasure (void *pDeviceHandler, void *pvMeasureEIDs, unsigned int uNumOfMeasureEIDs)
 
bool CARDbChannelSwitch (void *pDeviceHandler, unsigned char byMode, unsigned char byNewChannel, unsigned char byCount)
 
bool CARDbSetQuiet (void *pDeviceHandler, bool bResetQuiet, unsigned char byQuietCount, unsigned char byQuietPeriod, unsigned short wQuietDuration, unsigned short wQuietOffset)
 
bool CARDbStartQuiet (void *pDeviceHandler)
 
void CARDvSetPowerConstraint (void *pDeviceHandler, unsigned char byChannel, char byPower)
 
void CARDvGetPowerCapability (void *pDeviceHandler, unsigned char *pbyMinPower, unsigned char *pbyMaxPower)
 
char CARDbyGetTransmitPower (void *pDeviceHandler)
 
void CARDvSafeResetTx (void *pDeviceHandler)
 
void CARDvSafeResetRx (void *pDeviceHandler)
 
unsigned short CARDwGetCCKControlRate (void *pDeviceHandler, unsigned short wRateIdx)
 
unsigned short CARDwGetOFDMControlRate (void *pDeviceHandler, unsigned short wRateIdx)
 
void CARDvSetRSPINF (void *pDeviceHandler, CARD_PHY_TYPE ePHYType)
 
void vUpdateIFS (void *pDeviceHandler)
 
void CARDvUpdateBasicTopRate (void *pDeviceHandler)
 
bool CARDbAddBasicRate (void *pDeviceHandler, unsigned short wRateIdx)
 
bool CARDbIsOFDMinBasicRate (void *pDeviceHandler)
 
unsigned char CARDbyGetPktType (void *pDeviceHandler)
 
void CARDvSetLoopbackMode (unsigned long dwIoBase, unsigned short wLoopbackMode)
 
bool CARDbSoftwareReset (void *pDeviceHandler)
 
QWORD CARDqGetTSFOffset (unsigned char byRxRate, QWORD qwTSF1, QWORD qwTSF2)
 
bool CARDbGetCurrentTSF (unsigned long dwIoBase, PQWORD pqwCurrTSF)
 
QWORD CARDqGetNextTBTT (QWORD qwTSF, unsigned short wBeaconInterval)
 
void CARDvSetFirstNextTBTT (unsigned long dwIoBase, unsigned short wBeaconInterval)
 
void CARDvUpdateNextTBTT (unsigned long dwIoBase, QWORD qwTSF, unsigned short wBeaconInterval)
 

Variables

const unsigned short cwRXBCNTSFOff [MAX_RATE]
 

Macro Definition Documentation

#define C_CWMAX   1023

Definition at line 78 of file card.c.

#define C_CWMIN_A   15

Definition at line 75 of file card.c.

#define C_CWMIN_B   31

Definition at line 76 of file card.c.

#define C_EIFS   80

Definition at line 69 of file card.c.

#define C_SIFS_A   16

Definition at line 66 of file card.c.

#define C_SIFS_BG   10

Definition at line 67 of file card.c.

#define C_SLOT_LONG   20

Definition at line 73 of file card.c.

#define C_SLOT_SHORT   9

Definition at line 72 of file card.c.

#define WAIT_BEACON_TX_DOWN_TMO   3

Definition at line 80 of file card.c.

Function Documentation

bool CARDbAdd_PMKID_Candidate ( void pDeviceHandler,
unsigned char pbyBSSID,
bool  bRSNCapExist,
unsigned short  wRSNCap 
)

Definition at line 1068 of file card.c.

bool CARDbAddBasicRate ( void pDeviceHandler,
unsigned short  wRateIdx 
)

Definition at line 1950 of file card.c.

bool CARDbChannelSwitch ( void pDeviceHandler,
unsigned char  byMode,
unsigned char  byNewChannel,
unsigned char  byCount 
)

Definition at line 1270 of file card.c.

bool CARDbGetCurrentTSF ( unsigned long  dwIoBase,
PQWORD  pqwCurrTSF 
)

Definition at line 2096 of file card.c.

bool CARDbIsOFDMinBasicRate ( void pDeviceHandler)

Definition at line 1963 of file card.c.

bool CARDbIsShorSlotTime ( void pDeviceHandler)

Definition at line 421 of file card.c.

bool CARDbIsShortPreamble ( void pDeviceHandler)

Definition at line 400 of file card.c.

bool CARDbPowerDown ( void pDeviceHandler)

Definition at line 911 of file card.c.

bool CARDbRadioPowerOff ( void pDeviceHandler)

Definition at line 949 of file card.c.

bool CARDbRadioPowerOn ( void pDeviceHandler)

Definition at line 998 of file card.c.

bool CARDbRemoveKey ( void pDeviceHandler,
unsigned char pbyBSSID 
)

Definition at line 1042 of file card.c.

bool CARDbSetBeaconPeriod ( void pDeviceHandler,
unsigned short  wBeaconInterval 
)

Definition at line 662 of file card.c.

bool CARDbSetBSSID ( void pDeviceHandler,
unsigned char pbyBSSID,
CARD_OP_MODE  eOPMode 
)

Definition at line 816 of file card.c.

bool CARDbSetPhyParameter ( void pDeviceHandler,
CARD_PHY_TYPE  ePHYType,
unsigned short  wCapInfo,
unsigned char  byERPField,
void pvSupportRateIEs,
void pvExtSupportRateIEs 
)

Definition at line 440 of file card.c.

bool CARDbSetQuiet ( void pDeviceHandler,
bool  bResetQuiet,
unsigned char  byQuietCount,
unsigned char  byQuietPeriod,
unsigned short  wQuietDuration,
unsigned short  wQuietOffset 
)

Definition at line 1313 of file card.c.

bool CARDbSetTxDataRate ( void pDeviceHandler,
unsigned short  wDataRate 
)

Definition at line 885 of file card.c.

bool CARDbSoftwareReset ( void pDeviceHandler)

Definition at line 2032 of file card.c.

bool CARDbStartMeasure ( void pDeviceHandler,
void pvMeasureEIDs,
unsigned int  uNumOfMeasureEIDs 
)

Definition at line 1143 of file card.c.

bool CARDbStartQuiet ( void pDeviceHandler)

Definition at line 1370 of file card.c.

bool CARDbStartTxPacket ( void pDeviceHandler,
CARD_PKT_TYPE  ePktType 
)

Definition at line 774 of file card.c.

bool CARDbStopTxPacket ( void pDeviceHandler,
CARD_PKT_TYPE  ePktType 
)

Definition at line 716 of file card.c.

bool CARDbUpdateTSF ( void pDeviceHandler,
unsigned char  byRxRate,
QWORD  qwBSSTimestamp,
QWORD  qwLocalTSF 
)

Definition at line 627 of file card.c.

unsigned char CARDbyGetPktType ( void pDeviceHandler)

Definition at line 1975 of file card.c.

char CARDbyGetTransmitPower ( void pDeviceHandler)

Definition at line 1540 of file card.c.

void* CARDpGetCurrentAddress ( void pDeviceHandler)

Definition at line 1119 of file card.c.

QWORD CARDqGetNextTBTT ( QWORD  qwTSF,
unsigned short  wBeaconInterval 
)

Definition at line 2130 of file card.c.

QWORD CARDqGetTSFOffset ( unsigned char  byRxRate,
QWORD  qwTSF1,
QWORD  qwTSF2 
)

Definition at line 2059 of file card.c.

void CARDvGetPowerCapability ( void pDeviceHandler,
unsigned char pbyMinPower,
unsigned char pbyMaxPower 
)

Definition at line 1505 of file card.c.

void CARDvSafeResetRx ( void pDeviceHandler)

Definition at line 1607 of file card.c.

void CARDvSafeResetTx ( void pDeviceHandler)

Definition at line 1551 of file card.c.

void CARDvSetFirstNextTBTT ( unsigned long  dwIoBase,
unsigned short  wBeaconInterval 
)

Definition at line 2174 of file card.c.

void CARDvSetLoopbackMode ( unsigned long  dwIoBase,
unsigned short  wLoopbackMode 
)

Definition at line 2003 of file card.c.

void CARDvSetPowerConstraint ( void pDeviceHandler,
unsigned char  byChannel,
char  byPower 
)

Definition at line 1470 of file card.c.

void CARDvSetRSPINF ( void pDeviceHandler,
CARD_PHY_TYPE  ePHYType 
)

RSPINF_b_2

Definition at line 1731 of file card.c.

void CARDvUpdateBasicTopRate ( void pDeviceHandler)

Definition at line 1910 of file card.c.

void CARDvUpdateNextTBTT ( unsigned long  dwIoBase,
QWORD  qwTSF,
unsigned short  wBeaconInterval 
)

Definition at line 2207 of file card.c.

unsigned short CARDwGetCCKControlRate ( void pDeviceHandler,
unsigned short  wRateIdx 
)

Definition at line 1667 of file card.c.

unsigned short CARDwGetOFDMControlRate ( void pDeviceHandler,
unsigned short  wRateIdx 
)

Definition at line 1694 of file card.c.

void vUpdateIFS ( void pDeviceHandler)

Definition at line 1856 of file card.c.

Variable Documentation

const unsigned short cwRXBCNTSFOff[MAX_RATE]
Initial value:
=
{17, 17, 17, 17, 34, 23, 17, 11, 8, 5, 4, 3}

Definition at line 95 of file card.c.