Lines Matching +full:per +full:- +full:rate
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2004-2008 Sam Leffler, Errno Consulting
36 * Interface definitions for transmit rate control modules for the
39 * A rate control module is responsible for choosing the transmit rate
41 * a fixed rate.
44 * rate control interfaces by symbol name. If multiple modules are
45 * to be supported we'll need to switch to a registration-based scheme
48 * An instance of the rate control module is attached to each device
51 * sets of storage are opaque except for the size of the per-node storage
54 * The rate control module is notified for each state transition and
56 * rate for each outgoing frame and provided status from each transmitted
61 * In addition to the transmit rate for each frame the module must also
62 * indicate the number of attempts to make at the specified rate. If this
64 * additional transmit state. The rate control code is assumed to write
72 size_t arc_space; /* space required for per-node state */
75 * Attach/detach a rate control module.
82 #define ATH_RC_DS_FLAG 0x01 /* dual-stream rate */
84 #define ATH_RC_SGI_FLAG 0x04 /* use short-GI */
88 #define ATH_RC_TS_FLAG 0x40 /* triple-stream rate */
91 uint8_t rix; /* ratetable index, not rate code */
92 uint8_t ratecode; /* hardware rate code */
103 * Initialize per-node state already allocated for the specified
108 * Cleanup any per-node state prior to the node being reclaimed.
112 * Update rate control state on station associate/reassociate
123 * Return the four TX rate index and try counts for the current data packet.
129 * Return the transmit info for a data packet. If multi-rate state
132 * can be transmitted with multi-rate retry.
134 * maxdur is an optional return value (or -1 if not set) that defines
135 * the maximum frame duration in microseconds. This allows the rate
144 * Setup any extended (multi-rate) descriptor state for a data packet.
145 * The rate index returned by ath_rate_findrate is passed back in.
150 * Update rate control state for a packet associated with the
155 * For A-MPDU frames, nframes and nbad indicate how many frames
164 * Update rate control with a per-packet receive RSSI value.
170 * Fetch the global rate control statistics.
175 * Fetch the per-node statistics.