iPXE
|
Rate-control algorithm prototype for 802.11. More...
Go to the source code of this file.
Functions | |
FILE_LICENCE (GPL2_OR_LATER) | |
struct rc80211_ctx * | rc80211_init (struct net80211_device *dev) |
void | rc80211_update_tx (struct net80211_device *dev, int retries, int rc) |
Update rate-control state for transmitted packet. More... | |
void | rc80211_update_rx (struct net80211_device *dev, int retry, u16 rate) |
Update rate-control state for received packet. More... | |
void | rc80211_free (struct rc80211_ctx *ctx) |
Free rate-control context. More... | |
Rate-control algorithm prototype for 802.11.
Definition in file rc80211.h.
FILE_LICENCE | ( | GPL2_OR_LATER | ) |
struct rc80211_ctx* rc80211_init | ( | struct net80211_device * | dev | ) |
void rc80211_update_tx | ( | struct net80211_device * | dev, |
int | retries, | ||
int | rc | ||
) |
Update rate-control state for transmitted packet.
dev | 802.11 device |
retries | Number of times packet was transmitted before success |
rc | Return status code for transmission |
Definition at line 316 of file rc80211.c.
References ctx, DBGC, net80211_device::rate, net80211_device::rates, rc, rc80211_set_rate(), rc80211_update(), RC_TX_EMERG_FAIL, net80211_device::rctl, and TX.
Referenced by net80211_tx_complete().
void rc80211_update_rx | ( | struct net80211_device * | dev, |
int | retry, | ||
u16 | rate | ||
) |
Update rate-control state for received packet.
dev | 802.11 device |
retry | Whether the received packet had been retransmitted |
rate | Rate at which packet was received, in 100 kbps units |
Definition at line 351 of file rc80211.c.
References net80211_device::nr_rates, net80211_device::rates, rc80211_update(), and RX.
Referenced by net80211_rx().
void rc80211_free | ( | struct rc80211_ctx * | ctx | ) |
Free rate-control context.
ctx | Rate-control context |
Definition at line 369 of file rc80211.c.
Referenced by net80211_free().