summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2019-11-04 12:04:16 +0000
committerstsp <stsp@openbsd.org>2019-11-04 12:04:16 +0000
commit30b614e6b430b41ddc2567c5aa3443eb63f2189b (patch)
tree8d0944c7f821f31a4ab0bb12a504a42c3c674e37
parentIgnore FW_DBG_DEST and FW_DBG_CONF iwm firmware image TLV sections, for now. (diff)
downloadwireguard-openbsd-30b614e6b430b41ddc2567c5aa3443eb63f2189b.tar.xz
wireguard-openbsd-30b614e6b430b41ddc2567c5aa3443eb63f2189b.zip
Fix handling of iwm_sf_config() input argument.
Same change as dragonfly commit 666737f64b4f6dd42ffd9f0ace9fc46ccc1ebaab ok patrick@
-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 44fd45d72d0..9a0ec318531 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.271 2019/11/04 12:01:59 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.272 2019/11/04 12:04:16 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -6341,7 +6341,7 @@ iwm_sf_config(struct iwm_softc *sc, int new_state)
{
struct ieee80211com *ic = &sc->sc_ic;
struct iwm_sf_cfg_cmd sf_cmd = {
- .state = htole32(IWM_SF_FULL_ON),
+ .state = htole32(new_state),
};
int err = 0;