summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/if_iwx.c
diff options
context:
space:
mode:
authorstsp <stsp@openbsd.org>2020-05-26 11:58:33 +0000
committerstsp <stsp@openbsd.org>2020-05-26 11:58:33 +0000
commitd08dd2bb3b4b8e36c562b7244149db3bcd9b708f (patch)
tree7bee3da1e871b3d877eda08aad537ece643a11d2 /sys/dev/pci/if_iwx.c
parentMake iwx(4) flush the Tx path before removing the AP from the firmware's (diff)
downloadwireguard-openbsd-d08dd2bb3b4b8e36c562b7244149db3bcd9b708f.tar.xz
wireguard-openbsd-d08dd2bb3b4b8e36c562b7244149db3bcd9b708f.zip
Don't enable any BT modules in the iwx(4) BT_COEX command.
The iwx(4) driver intends to disable bluetooth. The command we sent to the firmware says "wifi only", but also enabled a bluetooth module. This seems to work as intended but is ambiguous. Linux also leaves all modules disabled in wifi-only mode. So do not enable any BT modules in the BT_COEX command. ok mpi@
Diffstat (limited to 'sys/dev/pci/if_iwx.c')
-rw-r--r--sys/dev/pci/if_iwx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index eb59a6517b5..e1b0d95a939 100644
--- a/sys/dev/pci/if_iwx.c
+++ b/sys/dev/pci/if_iwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwx.c,v 1.15 2020/05/26 11:57:08 stsp Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.16 2020/05/26 11:58:33 stsp Exp $ */
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@ -6240,7 +6240,7 @@ iwx_send_bt_init_conf(struct iwx_softc *sc)
struct iwx_bt_coex_cmd bt_cmd;
bt_cmd.mode = htole32(IWX_BT_COEX_WIFI);
- bt_cmd.enabled_modules = htole32(IWX_BT_COEX_HIGH_BAND_RET);
+ bt_cmd.enabled_modules = 0;
return iwx_send_cmd_pdu(sc, IWX_BT_CONFIG, 0, sizeof(bt_cmd),
&bt_cmd);