summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2017-06-14 16:58:28 +0000
committerstsp <stsp@openbsd.org>2017-06-14 16:58:28 +0000
commit8ce927c30175d9745e794bac65b2602c9f348e9a (patch)
treed9b94d74b3e31380bda649e777962d5a398c2341
parentWhen a task in iwm(4) obtains an rwlock(9), bail out if the device was (diff)
downloadwireguard-openbsd-8ce927c30175d9745e794bac65b2602c9f348e9a.tar.xz
wireguard-openbsd-8ce927c30175d9745e794bac65b2602c9f348e9a.zip
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@
-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.