Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
ieee80211_tx_rate Struct Reference

#include <mac80211.h>

Data Fields

s8 idx
u8 count
u8 flags

Detailed Description

struct ieee80211_tx_rate - rate selection/status

: rate index to attempt to send with : rate control flags (&enum mac80211_rate_control_flags) : number of tries in this rate before going to the next rate

A value of -1 for indicates an invalid rate and, if used in an array of retry rates, that no more rates should be tried.

When used for transmit status reporting, the driver should always report the rate along with the flags it used.

&struct ieee80211_tx_info contains an array of these structs in the control information, and it will be filled by the rate control algorithm according to what should be sent. For example, if this array contains, in the format { <idx>, <count> } the information { 3, 2 }, { 2, 2 }, { 1, 4 }, { -1, 0 }, { -1, 0 } then this means that the frame should be transmitted up to twice at rate 3, up to twice at rate 2, and up to four times at rate 1 if it doesn't get acknowledged. Say it gets acknowledged by the peer after the fifth attempt, the status information should then contain { 3, 2 }, { 2, 2 }, { 1, 1 }, { -1, 0 } ... since it was transmitted twice at rate 3, twice at rate 2 and once at rate 1 after which we received an acknowledgement.

Definition at line 516 of file mac80211.h.

Field Documentation

u8 count

Definition at line 518 of file mac80211.h.

u8 flags

Definition at line 519 of file mac80211.h.

s8 idx

Definition at line 517 of file mac80211.h.

The documentation for this struct was generated from the following file: