summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwn.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-12-10 13:22:08 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-12-10 13:22:08 +0000
commit59e997681078c932ca6510a3380c6b6add6644e1 (patch)
tree68905d0b274dc615adbf265254d1c4b511679d2b /sys/dev/pci/if_iwn.c
parentf7b33949531325b0a35b7068539e6be050981e0b (diff)
Make retry-heavy rates less attractive to mira.
The number of retried frames shrinks significantly. ok tb@
Diffstat (limited to 'sys/dev/pci/if_iwn.c')
-rw-r--r--sys/dev/pci/if_iwn.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index 685eebbb524..be7825b8591 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.177 2016/12/07 15:48:44 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.178 2016/12/10 13:22:07 stsp Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -2378,10 +2378,10 @@ iwn_tx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc, uint8_t nframes,
wn->mn.frames += nframes;
wn->mn.ampdu_size = len;
wn->mn.agglen = nframes;
- if (txfail) {
- wn->mn.retries += ackfailcnt;
+ if (ackfailcnt > 0)
+ wn->mn.retries++;
+ if (txfail)
wn->mn.txfail += nframes;
- }
if (ic->ic_state == IEEE80211_S_RUN)
ieee80211_mira_choose(&wn->mn, ic, data->ni);
} else {