summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwm.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-10-05 18:13:26 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-10-05 18:13:26 +0000
commit5b0254a3d87ca530dee38ea8e0e7d13fea848311 (patch)
tree543c4c495f13c262161771a18a1ca75b4837919b /sys/dev/pci/if_iwm.c
parent09413d73532b3474ab316d13ab92790a38afa352 (diff)
Set the USE_RTS flag in the right place. Error introduced in if_iwm.c r1.139.
Diffstat (limited to 'sys/dev/pci/if_iwm.c')
-rw-r--r--sys/dev/pci/if_iwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 532ac42e186..74eb390255b 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.142 2016/09/27 15:54:33 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.143 2016/10/05 18:13:25 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -5282,11 +5282,11 @@ iwm_setrates(struct iwm_node *in)
struct iwm_host_cmd cmd = {
.id = IWM_LQ_CMD,
.len = { sizeof(in->in_lq), },
- .flags = IWM_LQ_FLAG_USE_RTS_MSK,
};
memset(lq, 0, sizeof(*lq));
lq->sta_id = IWM_STATION_ID;
+ lq->flags = IWM_LQ_FLAG_USE_RTS_MSK;
sgi_ok = ((ni->ni_flags & IEEE80211_NODE_HT) &&
(ni->ni_htcaps & IEEE80211_HTCAP_SGI20));