summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-09-21 14:02:34 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-09-21 14:02:34 +0000
commit36b0de05434f1f699b36a16d726fd5e5e5f93177 (patch)
treed3541e59070c6c86596db1d017eb8827c995d31c /sys
parent62f0ae3b27434276777a6e15342138bfd244d4cc (diff)
Always set the bit which allows RTS in iwm's LQ command.
This bit was only set in 11n mode previously. ok sthen@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwm.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index d9cbc7685fa..11352012643 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.138 2016/09/21 13:57:35 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.139 2016/09/21 14:02:33 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -5297,17 +5297,15 @@ iwm_setrates(struct iwm_node *in)
struct iwm_host_cmd cmd = {
.id = IWM_LQ_CMD,
.len = { sizeof(in->in_lq), },
- .flags = 0,
+ .flags = IWM_LQ_FLAG_USE_RTS_MSK,
};
memset(lq, 0, sizeof(*lq));
lq->sta_id = IWM_STATION_ID;
- /* For HT, enable RTS/CTS, and SGI (if supported). */
- if (ni->ni_flags & IEEE80211_NODE_HT) {
- lq->flags |= IWM_LQ_FLAG_USE_RTS_MSK;
+ if (ni->ni_flags & IEEE80211_NODE_HT)
sgi_ok = (ni->ni_htcaps & IEEE80211_HTCAP_SGI20);
- } else
+ else
sgi_ok = 0;
/*