correct ni_txrate when using a fixed rate; fixes current rate reporting

MFC after:	3 days
This commit is contained in:
Sam Leffler 2006-03-09 00:28:44 +00:00
parent d3de1dcae7
commit d0d425bf53
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=156463

View File

@ -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
}