summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2016-01-13 08:32:19 +0000
committerstsp <stsp@openbsd.org>2016-01-13 08:32:19 +0000
commitec22c9844e7175adaa58b66de8ef5459946b7960 (patch)
tree75e78067d99d131a6eff300affe4fbefc1dd23f0
parentFix iwn(4) firmware SYSASSERT during hardware initialization. (diff)
downloadwireguard-openbsd-ec22c9844e7175adaa58b66de8ef5459946b7960.tar.xz
wireguard-openbsd-ec22c9844e7175adaa58b66de8ef5459946b7960.zip
Tell the iwn(4) firmware to retry failed Tx at 1Mbit/s instead of MCS 0.
Seems to make Tx rate scaling go up faster and helps Rx performance. ok deraadt@
-rw-r--r--sys/dev/pci/if_iwn.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index dff1cefc9cb..42411fc5158 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.155 2016/01/13 08:26:37 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.156 2016/01/13 08:32:19 stsp Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -3398,16 +3398,8 @@ iwn_set_link_quality(struct iwn_softc *sc, struct ieee80211_node *ni)
if (i++ >= IWN_MAX_TX_RETRIES)
break;
}
- /* Fill the rest with MCS 0. */
- rinfo = &iwn_rates[iwn_mcs2ridx[0]];
- while (i < IWN_MAX_TX_RETRIES - 1) {
- linkq.retry[i].plcp = rinfo->ht_plcp;
- linkq.retry[i].rflags = rinfo->ht_flags;
- linkq.retry[i].rflags |= IWN_RFLAG_ANT(txant);
- i++;
- }
- /* Fill the last slot with the lowest legacy rate. */
+ /* Fill the rest with the lowest legacy rate. */
if (IEEE80211_IS_CHAN_5GHZ(ni->ni_chan))
rinfo = &iwn_rates[IWN_RIDX_OFDM6];
else