mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
1 changed files with 4 additions and 1 deletions
|
|
@ -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 a new issue