diff options
| author | Sam Leffler <sam@FreeBSD.org> | 2006-03-09 00:28:44 +0000 |
|---|---|---|
| committer | Sam Leffler <sam@FreeBSD.org> | 2006-03-09 00:28:44 +0000 |
| commit | d0d425bf5341c02b4fb409ec792e0813f64c625b (patch) | |
| tree | ec4bfdc9ab6a94cf8354a9fae70b7ecc8a820872 /sys/dev/ath | |
| parent | d3de1dcae75bcc32bebc7911a5dc1d44edd8726c (diff) | |
Notes
Diffstat (limited to 'sys/dev/ath')
| -rw-r--r-- | sys/dev/ath/ath_rate/sample/sample.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/ath/ath_rate/sample/sample.c b/sys/dev/ath/ath_rate/sample/sample.c index c8a1cf7d9096..2bdf1ef48bd5 100644 --- a/sys/dev/ath/ath_rate/sample/sample.c +++ b/sys/dev/ath/ath_rate/sample/sample.c @@ -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 } |
