FreeBSD kernel ATH device code
if_athrate.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ath_ratectrl
 
struct  ath_rc_series
 

Macros

#define ATH_RC_NUM   4
 
#define ATH_RC_DS_FLAG   0x01 /* dual-stream rate */
 
#define ATH_RC_CW40_FLAG   0x02 /* use HT40 */
 
#define ATH_RC_SGI_FLAG   0x04 /* use short-GI */
 
#define ATH_RC_HT_FLAG   0x08 /* use HT */
 
#define ATH_RC_RTSCTS_FLAG   0x10 /* enable RTS/CTS protection */
 
#define ATH_RC_STBC_FLAG   0x20 /* enable STBC */
 
#define ATH_RC_TS_FLAG   0x40 /* triple-stream rate */
 

Functions

struct ath_ratectrlath_rate_attach (struct ath_softc *)
 
void ath_rate_detach (struct ath_ratectrl *)
 
void ath_rate_node_init (struct ath_softc *, struct ath_node *)
 
void ath_rate_node_cleanup (struct ath_softc *, struct ath_node *)
 
void ath_rate_newassoc (struct ath_softc *, struct ath_node *, int isNewAssociation)
 
void ath_rate_getxtxrates (struct ath_softc *sc, struct ath_node *an, uint8_t rix0, int is_aggr, struct ath_rc_series *rc)
 
void ath_rate_findrate (struct ath_softc *, struct ath_node *, int shortPreamble, size_t frameLen, int tid, int is_aggr, u_int8_t *rix, int *try0, u_int8_t *txrate, int *maxdur, int *maxpktlen)
 
void ath_rate_setupxtxdesc (struct ath_softc *, struct ath_node *, struct ath_desc *, int shortPreamble, u_int8_t rix)
 
void ath_rate_tx_complete (struct ath_softc *, struct ath_node *, const struct ath_rc_series *, const struct ath_tx_status *, int pktlen, int rc_framelen, int nframes, int nbad)
 
void ath_rate_update_rx_rssi (struct ath_softc *, struct ath_node *, int rssi)
 
int ath_rate_fetch_stats (struct ath_softc *sc, struct ath_rateioctl *rs)
 
int ath_rate_fetch_node_stats (struct ath_softc *sc, struct ath_node *an, struct ath_rateioctl *rs)
 

Macro Definition Documentation

◆ ATH_RC_CW40_FLAG

#define ATH_RC_CW40_FLAG   0x02 /* use HT40 */

Definition at line 85 of file if_athrate.h.

◆ ATH_RC_DS_FLAG

#define ATH_RC_DS_FLAG   0x01 /* dual-stream rate */

Definition at line 84 of file if_athrate.h.

◆ ATH_RC_HT_FLAG

#define ATH_RC_HT_FLAG   0x08 /* use HT */

Definition at line 87 of file if_athrate.h.

◆ ATH_RC_NUM

#define ATH_RC_NUM   4

Definition at line 82 of file if_athrate.h.

◆ ATH_RC_RTSCTS_FLAG

#define ATH_RC_RTSCTS_FLAG   0x10 /* enable RTS/CTS protection */

Definition at line 88 of file if_athrate.h.

◆ ATH_RC_SGI_FLAG

#define ATH_RC_SGI_FLAG   0x04 /* use short-GI */

Definition at line 86 of file if_athrate.h.

◆ ATH_RC_STBC_FLAG

#define ATH_RC_STBC_FLAG   0x20 /* enable STBC */

Definition at line 89 of file if_athrate.h.

◆ ATH_RC_TS_FLAG

#define ATH_RC_TS_FLAG   0x40 /* triple-stream rate */

Definition at line 90 of file if_athrate.h.

Function Documentation

◆ ath_rate_attach()

struct ath_ratectrl * ath_rate_attach ( struct ath_softc sc)

◆ ath_rate_detach()

void ath_rate_detach ( struct ath_ratectrl arc)

Definition at line 472 of file amrr.c.

References amrr_softc::arc, onoe_softc::arc, and sample_softc::arc.

Referenced by ath_detach().

Here is the caller graph for this function:

◆ ath_rate_fetch_node_stats()

◆ ath_rate_fetch_stats()

int ath_rate_fetch_stats ( struct ath_softc sc,
struct ath_rateioctl rs 
)

◆ ath_rate_findrate()

void ath_rate_findrate ( struct ath_softc sc,
struct ath_node an,
int  shortPreamble,
size_t  frameLen,
int  tid,
int  is_aggr,
u_int8_t *  rix,
int *  try0,
u_int8_t *  txrate,
int *  maxdur,
int *  maxpktlen 
)

◆ ath_rate_getxtxrates()

◆ ath_rate_newassoc()

void ath_rate_newassoc ( struct ath_softc sc,
struct ath_node an,
int  isNewAssociation 
)

Definition at line 195 of file amrr.c.

References ath_node::an_node, ath_rate_ctl_reset(), and ath_rate_ctl_start().

Referenced by ath_newassoc().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ath_rate_node_cleanup()

void ath_rate_node_cleanup ( struct ath_softc sc,
struct ath_node an 
)

Definition at line 101 of file amrr.c.

Referenced by ath_node_cleanup().

Here is the caller graph for this function:

◆ ath_rate_node_init()

void ath_rate_node_init ( struct ath_softc sc,
struct ath_node an 
)

Definition at line 95 of file amrr.c.

Referenced by ath_node_alloc().

Here is the caller graph for this function:

◆ ath_rate_setupxtxdesc()

◆ ath_rate_tx_complete()

◆ ath_rate_update_rx_rssi()

void ath_rate_update_rx_rssi ( struct ath_softc sc,
struct ath_node an,
int  rssi 
)

Definition at line 202 of file amrr.c.

Referenced by ath_rx_pkt().

Here is the caller graph for this function: