summaryrefslogtreecommitdiffstats
path: root/sys/dev/iwn
diff options
context:
space:
mode:
authorbschmidt <bschmidt@FreeBSD.org>2010-06-14 18:26:10 +0000
committerbschmidt <bschmidt@FreeBSD.org>2010-06-14 18:26:10 +0000
commitb016a8c08bf1038c1a57e6ea845458b0bd228880 (patch)
tree64e437c47ee42808611764a91da57294c945208a /sys/dev/iwn
parent25a94f26a9562a984d5288e170054ce39067a3eb (diff)
downloadFreeBSD-src-b016a8c08bf1038c1a57e6ea845458b0bd228880.zip
FreeBSD-src-b016a8c08bf1038c1a57e6ea845458b0bd228880.tar.gz
Fix TX retry rate handling. tx->linkq is an index to a rate table
beginning with the highest available rate. Currently we always use 54m for the first retry no matter what AMRR has choosen. Fix this by setting the index to the next lower rate. Approved by: rpaulo (mentor) Tested by: Brandon Gooch <jamesbrandongooch at gmail.com> MFC after: 2 weeks
Diffstat (limited to 'sys/dev/iwn')
-rw-r--r--sys/dev/iwn/if_iwn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/iwn/if_iwn.c b/sys/dev/iwn/if_iwn.c
index 39b26b5..6a09c99 100644
--- a/sys/dev/iwn/if_iwn.c
+++ b/sys/dev/iwn/if_iwn.c
@@ -3007,7 +3007,7 @@ iwn_tx_data(struct iwn_softc *sc, struct mbuf *m, struct ieee80211_node *ni,
txant = IWN_LSB(sc->txchainmask);
tx->rflags |= IWN_RFLAG_ANT(txant);
} else {
- tx->linkq = 0;
+ tx->linkq = IWN_RIDX_OFDM54 - ridx;
flags |= IWN_TX_LINKQ; /* enable MRR */
}
OpenPOWER on IntegriCloud