diff mbox series

[BlueZ,v1] bap: Fix not setting adapter address type

Message ID 20240322133603.43620-1-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1] bap: Fix not setting adapter address type | expand

Commit Message

Luiz Augusto von Dentz March 22, 2024, 1:36 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

This fixes not setting adapter address type when listening for
broadcasters (aka Broadcast Sink).
---
 profiles/audio/bap.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 38900771a..ec55614ca 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -2737,6 +2737,8 @@  static int short_lived_pa_sync(struct bap_bcast_pa_req *req)
 			NULL, &err,
 			BT_IO_OPT_SOURCE_BDADDR,
 			btd_adapter_get_address(data->adapter),
+			BT_IO_OPT_SOURCE_TYPE,
+			btd_adapter_get_address_type(data->adapter),
 			BT_IO_OPT_DEST_BDADDR,
 			device_get_address(data->device),
 			BT_IO_OPT_DEST_TYPE,