summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwm.c
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2017-06-14 16:58:29 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2017-06-14 16:58:29 +0000
commitda25b5189535e7811c024d84f0c57bf36591811b (patch)
treec282bf873e01d0a02d22f62b5d504062e980a028 /sys/dev/pci/if_iwm.c
parent729e7a304f7bf0a1d31e61b02820c2cfcbe66641 (diff)
Currently, iwm(4) uses only one phy context, so stop sending commands to the
firmware for unused ones. This should be refactored further, but for now this change is good enough to reduce the amount of commands we throw at the firmware. ok deraadt@
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 71145d801ad..cc4fcf44980 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.195 2017/06/14 16:57:47 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.196 2017/06/14 16:58:28 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -6006,7 +6006,7 @@ iwm_init_hw(struct iwm_softc *sc)
goto err;
}
- for (i = 0; i < IWM_NUM_PHY_CTX; i++) {
+ for (i = 0; i < 1; i++) {
/*
* The channel used here isn't relevant as it's
* going to be overwritten in the other flows.