From b245b023e1373828cc718df7b55ce1a515bcdc3b Mon Sep 17 00:00:00 2001 From: Emil Gydesen Date: Wed, 14 Dec 2022 22:00:14 +0100 Subject: [PATCH] Bluetooth: Audio: Always start BAP discovery at handle 0x0001 Instead of only conditionally starting the discovery at 0x0001, we now always start it at that handle. Since we are reading by UUID, this should not really affect performance. Signed-off-by: Emil Gydesen --- subsys/bluetooth/audio/unicast_client.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/subsys/bluetooth/audio/unicast_client.c b/subsys/bluetooth/audio/unicast_client.c index e10ff5d7cbb..8e2ebf56a3e 100644 --- a/subsys/bluetooth/audio/unicast_client.c +++ b/subsys/bluetooth/audio/unicast_client.c @@ -2456,14 +2456,8 @@ int bt_audio_discover(struct bt_conn *conn, params->read.func = unicast_client_read_func; params->read.handle_count = 0u; - - if (!params->read.by_uuid.start_handle) { - params->read.by_uuid.start_handle = BT_ATT_FIRST_ATTRIBUTE_HANDLE; - } - - if (!params->read.by_uuid.end_handle) { - params->read.by_uuid.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; - } + params->read.by_uuid.start_handle = BT_ATT_FIRST_ATTRIBUTE_HANDLE; + params->read.by_uuid.end_handle = BT_ATT_LAST_ATTRIBUTE_HANDLE; if (!conn_cb_registered) { bt_conn_cb_register(&conn_cbs);