mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
mac80211: rate control status only for controlled packets
This patch changes mac80211 to not notify the rate control algorithm's tx_status() method when reporting status for a packet that didn't go through the rate control algorithm's get_rate() method. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
4a48e2a484
commit
2b874e83c9
3 changed files with 11 additions and 3 deletions
|
@ -219,10 +219,12 @@ void rate_control_get_rate(struct ieee80211_sub_if_data *sdata,
|
|||
info->control.rates[i].count = 1;
|
||||
}
|
||||
|
||||
if (sta && sdata->force_unicast_rateidx > -1)
|
||||
if (sta && sdata->force_unicast_rateidx > -1) {
|
||||
info->control.rates[0].idx = sdata->force_unicast_rateidx;
|
||||
else
|
||||
} else {
|
||||
ref->ops->get_rate(ref->priv, ista, priv_sta, txrc);
|
||||
info->flags |= IEEE80211_TX_INTFL_RCALGO;
|
||||
}
|
||||
|
||||
/*
|
||||
* try to enforce the maximum rate the user wanted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue