mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-01 10:43:32 +00:00
correct ni_txrate when using a fixed rate; fixes current rate reporting
MFC after: 3 days
This commit is contained in:
parent
d3de1dcae7
commit
d0d425bf53
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156463
@ -734,7 +734,10 @@ ath_rate_ctl_reset(struct ath_softc *sc, struct ieee80211_node *ni)
|
||||
sn->stats[1][sn->num_rates-1].perfect_tx_time
|
||||
);
|
||||
|
||||
ni->ni_txrate = sn->current_rate[0];
|
||||
if (sn->static_rate_ndx != -1)
|
||||
ni->ni_txrate = sn->static_rate_ndx;
|
||||
else
|
||||
ni->ni_txrate = sn->current_rate[0];
|
||||
#undef RATE
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user