NetSim Source Code Help
Loading...
Searching...
No Matches
Minstrel.h File Reference
#include "main.h"
#include "IEEE802_11_Phy.h"
Include dependency graph for Minstrel.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  stru_Rate_Info
 
struct  stru_MinstrelWifiRemoteStation
 
struct  stru_MinstrelWifiStation
 

Typedefs

typedef struct stru_Rate_Info RateInfo
 
typedef struct stru_MinstrelWifiRemoteStation MinstrelPerRemoteStation
 
typedef struct stru_MinstrelWifiRemoteStationPtr_MinstrelPerRemoteStation
 
typedef struct stru_MinstrelWifiStation MinstrelWifiStation
 
typedef struct stru_MinstrelWifiStationPtr_MinstrelWifiStation
 

Functions

void InitMinstrel (NETSIM_ID nDevId, NETSIM_ID nifid)
 
static void CheckInit (Ptr_MinstrelPerRemoteStation station, NETSIM_ID nDevId, NETSIM_ID nifid)
 
static void InitSampleTable (Ptr_MinstrelPerRemoteStation station)
 
static void InitMinstrelTable (Ptr_MinstrelPerRemoteStation station, double *rate_arr)
 
void DoReportDataOk (NETSIM_ID dev, NETSIM_ID ifid, NETSIM_ID recv)
 
void DoReportDataFailed (NETSIM_ID dev, NETSIM_ID ifid, NETSIM_ID recv)
 
static void UpdateRate (Ptr_MinstrelPerRemoteStation station)
 
static void UpdatePacketCounter (Ptr_MinstrelPerRemoteStation station)
 
static void UpdateRetry (Ptr_MinstrelPerRemoteStation station)
 
static void UpdateStats (Ptr_MinstrelPerRemoteStation station)
 
static UINT FindRate (Ptr_MinstrelPerRemoteStation station)
 
static UINT GetNextSample (Ptr_MinstrelPerRemoteStation station)
 
void DoReportFinalDataFailed (NETSIM_ID dev, NETSIM_ID ifid, NETSIM_ID recv)
 
BOOL DoNeedDataRetransmission (NETSIM_ID dev, NETSIM_ID ifid, NETSIM_ID recv)
 
static UINT CountRetry (Ptr_MinstrelPerRemoteStation station)
 
void FreeMinstrel (NETSIM_ID nDevId, NETSIM_ID nifid)
 
void FreeTables (Ptr_MinstrelPerRemoteStation station)
 

Variables

double updateStatsTime
 
double lookAroundRate
 
double ewmaWeight
 
UINT sampleCol
 

Typedef Documentation

◆ MinstrelPerRemoteStation

◆ MinstrelWifiStation

◆ Ptr_MinstrelPerRemoteStation

◆ Ptr_MinstrelWifiStation

◆ RateInfo

typedef struct stru_Rate_Info RateInfo

Function Documentation

◆ CheckInit()

static void CheckInit ( Ptr_MinstrelPerRemoteStation  station,
NETSIM_ID  nDevId,
NETSIM_ID  nifid 
)
static

◆ CountRetry()

static UINT CountRetry ( Ptr_MinstrelPerRemoteStation  station)
static

◆ DoNeedDataRetransmission()

BOOL DoNeedDataRetransmission ( NETSIM_ID  dev,
NETSIM_ID  ifid,
NETSIM_ID  recv 
)

Definition at line 688 of file Minstrel.c.

Here is the caller graph for this function:

◆ DoReportDataFailed()

void DoReportDataFailed ( NETSIM_ID  dev,
NETSIM_ID  ifid,
NETSIM_ID  recv 
)

Definition at line 326 of file Minstrel.c.

Here is the caller graph for this function:

◆ DoReportDataOk()

void DoReportDataOk ( NETSIM_ID  dev,
NETSIM_ID  ifid,
NETSIM_ID  recv 
)

Definition at line 310 of file Minstrel.c.

◆ DoReportFinalDataFailed()

void DoReportFinalDataFailed ( NETSIM_ID  dev,
NETSIM_ID  ifid,
NETSIM_ID  recv 
)

Definition at line 674 of file Minstrel.c.

Here is the caller graph for this function:

◆ FindRate()

static UINT FindRate ( Ptr_MinstrelPerRemoteStation  station)
static

◆ FreeMinstrel()

void FreeMinstrel ( NETSIM_ID  nDevId,
NETSIM_ID  nifid 
)

Definition at line 738 of file Minstrel.c.

◆ FreeTables()

void FreeTables ( Ptr_MinstrelPerRemoteStation  station)

Definition at line 759 of file Minstrel.c.

Here is the caller graph for this function:

◆ GetNextSample()

static UINT GetNextSample ( Ptr_MinstrelPerRemoteStation  station)
static

◆ InitMinstrel()

void InitMinstrel ( NETSIM_ID  nDevId,
NETSIM_ID  nifid 
)

Definition at line 175 of file Minstrel.c.

Here is the caller graph for this function:

◆ InitMinstrelTable()

static void InitMinstrelTable ( Ptr_MinstrelPerRemoteStation  station,
double *  rate_arr 
)
static

◆ InitSampleTable()

static void InitSampleTable ( Ptr_MinstrelPerRemoteStation  station)
static

◆ UpdatePacketCounter()

static void UpdatePacketCounter ( Ptr_MinstrelPerRemoteStation  station)
static

◆ UpdateRate()

static void UpdateRate ( Ptr_MinstrelPerRemoteStation  station)
static

◆ UpdateRetry()

static void UpdateRetry ( Ptr_MinstrelPerRemoteStation  station)
static

◆ UpdateStats()

static void UpdateStats ( Ptr_MinstrelPerRemoteStation  station)
static

Variable Documentation

◆ ewmaWeight

double ewmaWeight

Definition at line 73 of file Minstrel.h.

◆ lookAroundRate

double lookAroundRate

Definition at line 72 of file Minstrel.h.

◆ sampleCol

UINT sampleCol

Definition at line 74 of file Minstrel.h.

◆ updateStatsTime

double updateStatsTime

Definition at line 71 of file Minstrel.h.