Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mto.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  wb35_mto_params
 

Macros

#define MTO_PREAMBLE_LONG   WLAN_PREAMBLE_TYPE_LONG
 
#define MTO_PREAMBLE_SHORT   WLAN_PREAMBLE_TYPE_SHORT
 
#define MTO_DATA()   (adapter->sMtoPara)
 
#define MTO_HAL()   (&adapter->sHwData)
 
#define MTO_SET_PREAMBLE_TYPE(x)   /* Turbo mark LM_PREAMBLE_TYPE(&pcore_data->lm_data) = (x) */
 
#define MTO_ENABLE   (adapter->sLocalPara.TxRateMode == RATE_AUTO)
 
#define MTO_TXPOWER_FROM_EEPROM   (adapter->sHwData.PowerIndexFromEEPROM)
 
#define LOCAL_ANTENNA_NO()   (adapter->sLocalPara.bAntennaNo)
 
#define LOCAL_IS_CONNECTED()   (adapter->sLocalPara.wConnectedSTAindex != 0)
 
#define MTO_INITTXRATE_MODE   (adapter->sHwData.SoftwareSet&0x2) /* bit 1 */
 
#define MTO_POWER_CHANGE_ENABLE()   MTO_DATA().PowerChangeEnable
 
#define MTO_CCA_MODE()   MTO_DATA().CCA_Mode
 
#define MTO_CCA_MODE_SETUP()   MTO_DATA().CCA_Mode_Setup
 
#define MTO_PREAMBLE_TYPE()   MTO_DATA().Preamble_Type
 
#define MTO_PREAMBLE_CHANGE_ENABLE()   MTO_DATA().PreambleChangeEnable
 
#define MTO_RATE_LEVEL()   MTO_DATA().DataRateLevel
 
#define MTO_OFDM_RATE_LEVEL()   MTO_DATA().OfdmRateLevel
 
#define MTO_RATE_CHANGE_ENABLE()   MTO_DATA().DataRateChangeEnable
 
#define MTO_FRAG_TH_LEVEL()   MTO_DATA().FragThresholdLevel
 
#define MTO_FRAG_CHANGE_ENABLE()   MTO_DATA().FragThresholdChangeEnable
 
#define MTO_RTS_THRESHOLD()   MTO_DATA().RTSThreshold
 
#define MTO_RTS_CHANGE_ENABLE()   MTO_DATA().RTSChangeEnable
 
#define MTO_RTS_THRESHOLD_SETUP()   MTO_DATA().RTSThreshold_Setup
 
#define MTO_AVG_IDLE_SLOT()   MTO_DATA().AvgIdleSlot
 
#define MTO_PR_INTERF()   MTO_DATA().Pr_Interf
 
#define MTO_AVG_GAP_BTWN_INTERF()   MTO_DATA().AvgGapBtwnInterf
 
#define MTO_CNT_ANT(x)   MTO_DATA().Cnt_Ant[(x)]
 
#define MTO_SQ_ANT(x)   MTO_DATA().SQ_Ant[(x)]
 
#define MTO_AGING_TIMEOUT()   MTO_DATA().aging_timeout
 
#define MTO_TXFLOWCOUNT()   MTO_DATA().TxFlowCount
 
#define MTOPARA_PERIODIC_CHECK_CYCLE()   MTO_DATA().DTO_PeriodicCheckCycle
 
#define MTOPARA_RSSI_TH_FOR_ANTDIV()   MTO_DATA().DTO_RssiThForAntDiv
 
#define MTOPARA_TXCOUNT_TH_FOR_CALC_RATE()   MTO_DATA().DTO_TxCountThForCalcNewRate
 
#define MTOPARA_TXRATE_INC_TH()   MTO_DATA().DTO_TxRateIncTh
 
#define MTOPARA_TXRATE_DEC_TH()   MTO_DATA().DTO_TxRateDecTh
 
#define MTOPARA_TXRATE_EQ_TH()   MTO_DATA().DTO_TxRateEqTh
 
#define MTOPARA_TXRATE_BACKOFF()   MTO_DATA().DTO_TxRateBackOff
 
#define MTOPARA_TXRETRYRATE_REDUCE()   MTO_DATA().DTO_TxRetryRateReduce
 
#define MTOPARA_TXPOWER_INDEX()   MTO_DATA().DTO_TxPowerIndex
 
#define MTO_DATA_RATE()   MTO_Data_Rate_Tbl[MTO_RATE_LEVEL()]
 
#define MTO_FRAG_TH()   MTO_Frag_Th_Tbl[MTO_FRAG_TH_LEVEL()]
 

Functions

void MTO_Init (struct wbsoft_priv *)
 
void MTO_PeriodicTimerExpired (struct wbsoft_priv *)
 
void MTO_SetDTORateRange (struct wbsoft_priv *, u8 *, u8)
 
u8 MTO_GetTxRate (struct wbsoft_priv *adapter, u32 fpdu_len)
 
u8 MTO_GetTxFallbackRate (struct wbsoft_priv *adapter)
 
void MTO_SetTxCount (struct wbsoft_priv *adapter, u8 t0, u8 index)
 

Variables

u16 MTO_Frag_Th_Tbl []
 

Macro Definition Documentation

#define LOCAL_ANTENNA_NO ( )    (adapter->sLocalPara.bAntennaNo)

Definition at line 83 of file mto.h.

#define LOCAL_IS_CONNECTED ( )    (adapter->sLocalPara.wConnectedSTAindex != 0)

Definition at line 84 of file mto.h.

#define MTO_AGING_TIMEOUT ( )    MTO_DATA().aging_timeout

Definition at line 108 of file mto.h.

#define MTO_AVG_GAP_BTWN_INTERF ( )    MTO_DATA().AvgGapBtwnInterf

Definition at line 104 of file mto.h.

#define MTO_AVG_IDLE_SLOT ( )    MTO_DATA().AvgIdleSlot

Definition at line 102 of file mto.h.

#define MTO_CCA_MODE ( )    MTO_DATA().CCA_Mode

Definition at line 88 of file mto.h.

#define MTO_CCA_MODE_SETUP ( )    MTO_DATA().CCA_Mode_Setup

Definition at line 89 of file mto.h.

#define MTO_CNT_ANT (   x)    MTO_DATA().Cnt_Ant[(x)]

Definition at line 106 of file mto.h.

#define MTO_DATA ( )    (adapter->sMtoPara)

Definition at line 78 of file mto.h.

#define MTO_DATA_RATE ( )    MTO_Data_Rate_Tbl[MTO_RATE_LEVEL()]

Definition at line 127 of file mto.h.

#define MTO_ENABLE   (adapter->sLocalPara.TxRateMode == RATE_AUTO)

Definition at line 81 of file mto.h.

#define MTO_FRAG_CHANGE_ENABLE ( )    MTO_DATA().FragThresholdChangeEnable

Definition at line 97 of file mto.h.

#define MTO_FRAG_TH ( )    MTO_Frag_Th_Tbl[MTO_FRAG_TH_LEVEL()]

Definition at line 128 of file mto.h.

#define MTO_FRAG_TH_LEVEL ( )    MTO_DATA().FragThresholdLevel

Definition at line 96 of file mto.h.

#define MTO_HAL ( )    (&adapter->sHwData)

Definition at line 79 of file mto.h.

#define MTO_INITTXRATE_MODE   (adapter->sHwData.SoftwareSet&0x2) /* bit 1 */

Definition at line 85 of file mto.h.

#define MTO_OFDM_RATE_LEVEL ( )    MTO_DATA().OfdmRateLevel

Definition at line 94 of file mto.h.

#define MTO_POWER_CHANGE_ENABLE ( )    MTO_DATA().PowerChangeEnable

Definition at line 87 of file mto.h.

#define MTO_PR_INTERF ( )    MTO_DATA().Pr_Interf

Definition at line 103 of file mto.h.

#define MTO_PREAMBLE_CHANGE_ENABLE ( )    MTO_DATA().PreambleChangeEnable

Definition at line 91 of file mto.h.

#define MTO_PREAMBLE_LONG   WLAN_PREAMBLE_TYPE_LONG

Definition at line 15 of file mto.h.

#define MTO_PREAMBLE_SHORT   WLAN_PREAMBLE_TYPE_SHORT

Definition at line 16 of file mto.h.

#define MTO_PREAMBLE_TYPE ( )    MTO_DATA().Preamble_Type

Definition at line 90 of file mto.h.

#define MTO_RATE_CHANGE_ENABLE ( )    MTO_DATA().DataRateChangeEnable

Definition at line 95 of file mto.h.

#define MTO_RATE_LEVEL ( )    MTO_DATA().DataRateLevel

Definition at line 93 of file mto.h.

#define MTO_RTS_CHANGE_ENABLE ( )    MTO_DATA().RTSChangeEnable

Definition at line 99 of file mto.h.

#define MTO_RTS_THRESHOLD ( )    MTO_DATA().RTSThreshold

Definition at line 98 of file mto.h.

#define MTO_RTS_THRESHOLD_SETUP ( )    MTO_DATA().RTSThreshold_Setup

Definition at line 100 of file mto.h.

#define MTO_SET_PREAMBLE_TYPE (   x)    /* Turbo mark LM_PREAMBLE_TYPE(&pcore_data->lm_data) = (x) */

Definition at line 80 of file mto.h.

#define MTO_SQ_ANT (   x)    MTO_DATA().SQ_Ant[(x)]

Definition at line 107 of file mto.h.

#define MTO_TXFLOWCOUNT ( )    MTO_DATA().TxFlowCount

Definition at line 110 of file mto.h.

#define MTO_TXPOWER_FROM_EEPROM   (adapter->sHwData.PowerIndexFromEEPROM)

Definition at line 82 of file mto.h.

#define MTOPARA_PERIODIC_CHECK_CYCLE ( )    MTO_DATA().DTO_PeriodicCheckCycle

Definition at line 113 of file mto.h.

#define MTOPARA_RSSI_TH_FOR_ANTDIV ( )    MTO_DATA().DTO_RssiThForAntDiv

Definition at line 114 of file mto.h.

#define MTOPARA_TXCOUNT_TH_FOR_CALC_RATE ( )    MTO_DATA().DTO_TxCountThForCalcNewRate

Definition at line 115 of file mto.h.

#define MTOPARA_TXPOWER_INDEX ( )    MTO_DATA().DTO_TxPowerIndex

Definition at line 121 of file mto.h.

#define MTOPARA_TXRATE_BACKOFF ( )    MTO_DATA().DTO_TxRateBackOff

Definition at line 119 of file mto.h.

#define MTOPARA_TXRATE_DEC_TH ( )    MTO_DATA().DTO_TxRateDecTh

Definition at line 117 of file mto.h.

#define MTOPARA_TXRATE_EQ_TH ( )    MTO_DATA().DTO_TxRateEqTh

Definition at line 118 of file mto.h.

#define MTOPARA_TXRATE_INC_TH ( )    MTO_DATA().DTO_TxRateIncTh

Definition at line 116 of file mto.h.

#define MTOPARA_TXRETRYRATE_REDUCE ( )    MTO_DATA().DTO_TxRetryRateReduce

Definition at line 120 of file mto.h.

Function Documentation

u8 MTO_GetTxFallbackRate ( struct wbsoft_priv adapter)
u8 MTO_GetTxRate ( struct wbsoft_priv adapter,
u32  fpdu_len 
)
void MTO_Init ( struct wbsoft_priv )

Definition at line 67 of file mto.c.

void MTO_PeriodicTimerExpired ( struct wbsoft_priv )
void MTO_SetDTORateRange ( struct wbsoft_priv ,
u8 ,
u8   
)
void MTO_SetTxCount ( struct wbsoft_priv adapter,
u8  t0,
u8  index 
)

Definition at line 138 of file mto.c.

Variable Documentation

u16 MTO_Frag_Th_Tbl[]

Definition at line 30 of file mto.c.