summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwm.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-01-06 09:15:32 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-01-06 09:15:32 +0000
commitd49d09a026dcfebaf2fcd7a9bc79d316566a42a2 (patch)
tree25ee9755c7d076bb9894e6e7a6ecca9ae1dc2619 /sys/dev/pci/if_iwm.c
parenta6f427644c43f71d23379afbf41f0d1d628daa2a (diff)
iwm(4) adjusts the firmware's tx rate retry table dynamically so we must
tell the firmware to always try the first rate in the table first. ok kettenis@
Diffstat (limited to 'sys/dev/pci/if_iwm.c')
-rw-r--r--sys/dev/pci/if_iwm.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 6393b1531b9..25321a67828 100644
--- a/sys/dev/pci/if_iwm.c
+++ b/sys/dev/pci/if_iwm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwm.c,v 1.72 2016/01/05 18:41:15 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.73 2016/01/06 09:15:31 stsp Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
@@ -3853,11 +3853,7 @@ iwm_tx_fill_cmd(struct iwm_softc *sc, struct iwm_node *in,
ridx = sc->sc_fixed_ridx;
} else {
/* for data frames, use RS table */
- if (ni->ni_flags & IEEE80211_NODE_HT) {
- tx->initial_rate_index =
- (nitems(iwm_mcs2ridx) - 1) - ni->ni_txmcs;
- } else
- tx->initial_rate_index = (nrates - 1) - ni->ni_txrate;
+ tx->initial_rate_index = 0;
tx->tx_flags |= htole32(IWM_TX_CMD_FLG_STA_RATE);
DPRINTFN(12, ("start with txrate %d\n", tx->initial_rate_index));
if (ni->ni_flags & IEEE80211_NODE_HT) {