iwx: bt config command fix

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

iwx: bt config command fix

Stefan Sperling-5
The iwx(4) driver intends to disable bluetooth. The command we send to the
firmware says "wifi only", but also enables 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?
 
diff e019717a40a05199a329a1ee64ec1f165be1aa76 275365c274c71989968d3bae8c5244a411c26876
blob - e3a0a5eb7745c41397922d9fc0e821fb01e242bd
blob + 585527d032e511ae31b3c06c212f6f99d494494e
--- sys/dev/pci/if_iwx.c
+++ sys/dev/pci/if_iwx.c
@@ -6248,7 +6248,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);