bap: Mark devices to auto-connect
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 29 Mar 2023 19:55:16 +0000 (12:55 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 10:41:34 +0000 (16:11 +0530)
This makes devices with BAP support to auto-connect once they start
advertising.

profiles/audio/bap.c

index bdd99b9..afafebd 100644 (file)
@@ -1354,6 +1354,7 @@ static struct btd_profile bap_profile = {
        .device_remove  = bap_remove,
        .accept         = bap_accept,
        .disconnect     = bap_disconnect,
+       .auto_connect   = true,
 };
 
 static unsigned int bap_id = 0;