From ca3d0d4f972657f924aa7fa650191b805bd92c59 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 4 Apr 2024 15:28:35 -0400 Subject: [PATCH] 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. --- src/adapter.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/adapter.c b/src/adapter.c index 017e60233..9ea166391 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); -- 2.47.3