summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2019-12-20 10:16:24 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2019-12-20 10:16:24 +0000
commitc1b6ad46c28bdd3db4c29a94a9a45e4bbae6f4f0 (patch)
treedb58a2cfe835cdd4242c912a15321bf3915cfa79 /sys
parent071e0bf93e4e4f8db2d9813b7d32c6d8be004dba (diff)
Make athn(4) use a constant Tx retry rate while MiRA is probing.
Matches what iwm(4) has been doing for a long time to ensure that a good initial Tx rate will be chosen. Tested by Tracey Emery on AR9281.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/ar5008.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c
index f58d36a19ca..5135f72ec0c 100644
--- a/sys/dev/ic/ar5008.c
+++ b/sys/dev/ic/ar5008.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5008.c,v 1.52 2019/09/12 12:55:06 stsp Exp $ */
+/* $OpenBSD: ar5008.c,v 1.53 2019/12/20 10:16:23 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -1375,6 +1375,11 @@ ar5008_tx(struct athn_softc *sc, struct mbuf *m, struct ieee80211_node *ni,
/* Use same fixed rate for all tries. */
ridx[0] = ridx[1] = ridx[2] = ridx[3] =
sc->fixed_ridx;
+ } else if ((ni->ni_flags & IEEE80211_NODE_HT) &&
+ ieee80211_mira_is_probing(&an->mn)) {
+ /* Use same fixed rate for all tries. */
+ ridx[0] = ridx[1] = ridx[2] = ridx[3] =
+ ATHN_RIDX_MCS0 + ni->ni_txmcs;
} else {
/* Use fallback table of the node. */
int txrate;