summaryrefslogtreecommitdiff
path: root/src/gatt-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gatt-client.c')
-rw-r--r--src/gatt-client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gatt-client.c b/src/gatt-client.c
index b2fc16b90..a54d65e30 100644
--- a/src/gatt-client.c
+++ b/src/gatt-client.c
@@ -2255,7 +2255,8 @@ void btd_gatt_client_eatt_connect(struct btd_gatt_client *client)
char addr[18];
int i;
- if (!(client->features & BT_GATT_CHRC_CLI_FEAT_EATT))
+ if (!(client->features & BT_GATT_CHRC_CLI_FEAT_EATT) ||
+ !btd_device_is_initiator(dev))
return;
if (bt_att_get_channels(att) == btd_opts.gatt_channels)