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 <emil.gydesen@nordicsemi.no>
This commit is contained in:
parent
fd6e6601e0
commit
b245b023e1
1 changed files with 2 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue