summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2017-07-17 14:25:29 +0000
committerstsp <stsp@openbsd.org>2017-07-17 14:25:29 +0000
commit8793b9ceef63e37e06ac0d875f6bc590c2d57772 (patch)
treea28ae6373b3de0dcf3fd239180f68a39e5c5494b
parentUse .c instead of .o here too. (diff)
downloadwireguard-openbsd-8793b9ceef63e37e06ac0d875f6bc590c2d57772.tar.xz
wireguard-openbsd-8793b9ceef63e37e06ac0d875f6bc590c2d57772.zip
Make athn(4) send RTS frames at 2 Mbit/s again. I changed this to 1 Mbit/s
in r1.38 of this file, however for some reason the hardware sends RTS frames at rates other than 1 Mbit/s which of course doesn't help. Not sure what is causing this problem, but the old behaviour worked better, so revert. ok krw@
-rw-r--r--sys/dev/ic/ar5008.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/ar5008.c b/sys/dev/ic/ar5008.c
index 544a0e99321..248960e4777 100644
--- a/sys/dev/ic/ar5008.c
+++ b/sys/dev/ic/ar5008.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ar5008.c,v 1.44 2017/04/26 07:53:17 stsp Exp $ */
+/* $OpenBSD: ar5008.c,v 1.45 2017/07/17 14:25:29 stsp Exp $ */
/*-
* Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr>
@@ -1601,7 +1601,7 @@ ar5008_tx(struct athn_softc *sc, struct mbuf *m, struct ieee80211_node *ni,
}
/* Select protection rate (suboptimal but ok). */
protridx = IEEE80211_IS_CHAN_5GHZ(ni->ni_chan) ?
- ATHN_RIDX_OFDM6 : ATHN_RIDX_CCK1;
+ ATHN_RIDX_OFDM6 : ATHN_RIDX_CCK2;
if (ds->ds_ctl0 & AR_TXC0_RTS_ENABLE) {
/* Account for CTS duration. */
dur += athn_txtime(sc, IEEE80211_ACK_LEN,