From 8ce927c30175d9745e794bac65b2602c9f348e9a Mon Sep 17 00:00:00 2001 From: stsp Date: Wed, 14 Jun 2017 16:58:28 +0000 Subject: [PATCH] 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@ --- sys/dev/pci/if_iwm.c | 4 ++-- 1 file 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 @@ -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. -- 2.20.1