mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
mac80211: call rate_control_send_low() internally
There's no rate control algorithm that *doesn't* want to call it internally, and calling it internally will let us modify its behaviour in the future. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
cd6f341102
commit
1e87fec9fa
10 changed files with 7 additions and 57 deletions
|
@ -5960,29 +5960,6 @@ static inline int rate_supported(struct ieee80211_sta *sta,
|
|||
return (sta == NULL || sta->supp_rates[band] & BIT(index));
|
||||
}
|
||||
|
||||
/**
|
||||
* rate_control_send_low - helper for drivers for management/no-ack frames
|
||||
*
|
||||
* Rate control algorithms that agree to use the lowest rate to
|
||||
* send management frames and NO_ACK data with the respective hw
|
||||
* retries should use this in the beginning of their mac80211 get_rate
|
||||
* callback. If true is returned the rate control can simply return.
|
||||
* If false is returned we guarantee that sta and sta and priv_sta is
|
||||
* not null.
|
||||
*
|
||||
* Rate control algorithms wishing to do more intelligent selection of
|
||||
* rate for multicast/broadcast frames may choose to not use this.
|
||||
*
|
||||
* @sta: &struct ieee80211_sta pointer to the target destination. Note
|
||||
* that this may be null.
|
||||
* @priv_sta: private rate control structure. This may be null.
|
||||
* @txrc: rate control information we sholud populate for mac80211.
|
||||
*/
|
||||
bool rate_control_send_low(struct ieee80211_sta *sta,
|
||||
void *priv_sta,
|
||||
struct ieee80211_tx_rate_control *txrc);
|
||||
|
||||
|
||||
static inline s8
|
||||
rate_lowest_index(struct ieee80211_supported_band *sband,
|
||||
struct ieee80211_sta *sta)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue