diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-13 08:32:20 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2016-01-13 08:32:20 +0000 |
commit | 8918189e0392f2d3217c35506d3365b23c95c707 (patch) | |
tree | 404e64b4aea2a9b191fe27fd599c4d1f72e4f30d /sys/dev | |
parent | 261512c5f8bc58c57710d5c9dea6d49cd3b3d698 (diff) |
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@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_iwn.c | 12 |
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 |