aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-04-04 15:28:35 -0400
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-04-04 15:28:35 -0400
commitca3d0d4f972657f924aa7fa650191b805bd92c59 (patch)
treef90b7859ea4a792b4223694c6fe70344555f5d9b
parent4fe4fda73be1f649b212dc594e3631a51b84afff (diff)
adapter: Enable Wideband Speech
This enables sending MGMT_OP_SET_WIDEBAND_SPEECH so the users of SCO sockets can take advantage of BT_PKT_STATUS to implement PLC logic.
-rw-r--r--src/adapter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index 017e602335..9ea1663912 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -10229,6 +10229,9 @@ static void read_info_complete(uint8_t status, uint16_t length,
set_mode(adapter, MGMT_OP_SET_SECURE_CONN,
btd_opts.secure_conn);
+ if (missing_settings & MGMT_SETTING_WIDEBAND_SPEECH)
+ set_mode(adapter, MGMT_OP_SET_WIDEBAND_SPEECH, 0x01);
+
if (adapter->supported_settings & MGMT_SETTING_PRIVACY)
set_privacy(adapter, btd_opts.privacy);