summaryrefslogtreecommitdiff
path: root/src/gatt-client.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-25 14:03:50 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-25 15:10:42 -0700
commitcb85f71b0dfd508947d3756626cd1d44add38884 (patch)
tree425d7068f20354f0aa6021bb93074a2831005793 /src/gatt-client.h
parente6f2ce8a05a76538cadc8e7477f400fce03d095a (diff)
downloadbluez-cb85f71b0dfd508947d3756626cd1d44add38884.tar.gz
gatt: Do not always attempt to connect EATT immediately
Wait the bt_gatt_client becomes ready (has performed service discovery) before attempting to connect EATT when acting as peripheral/acceptor since the central/initiator might actually attempt to connect EATT channels in the same way which can potentially cause a collisions.
Diffstat (limited to 'src/gatt-client.h')
-rw-r--r--src/gatt-client.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gatt-client.h b/src/gatt-client.h
index b6539207e..05b5ae303 100644
--- a/src/gatt-client.h
+++ b/src/gatt-client.h
@@ -20,6 +20,7 @@ void btd_gatt_client_service_added(struct btd_gatt_client *client,
void btd_gatt_client_service_removed(struct btd_gatt_client *client,
struct gatt_db_attribute *attrib);
void btd_gatt_client_disconnected(struct btd_gatt_client *client);
+void btd_gatt_client_eatt_connect(struct btd_gatt_client *client);
typedef void (*btd_gatt_client_service_path_t)(const char *service_path,
void *user_data);