Branch logic is required because remote device management method is
different depending on the stack.
In the case of bluez, it is managed by remote address,
so if you distinguish it by instance ID, conn info may not be found.
In the case of bluedroid, it is managed by conn ID,
so you need to find conn info using remote address + instance ID.
Change-Id: Ieea79d1b86ff72dc3490a68fdfb50de934b4d04d
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
}
}
+#ifdef TIZEN_BLUEDROID_PORTING
static struct gatt_client_info_t *_bt_find_remote_gatt_client_info_with_inst_id(char *address, int instance_id)
{
GSList *l;
}
return NULL;
}
+#endif
struct gatt_client_info_t *_bt_find_remote_gatt_client_info(char *address)
{
}
} else {
+#ifdef TIZEN_BLUEDROID_PORTING
conn = _bt_find_remote_gatt_client_info_with_inst_id(address, param->instance_id);
+#else
+ conn = _bt_find_remote_gatt_client_info(address);
+#endif
if (conn) {
ret = gatts_send_indication(param->instance_id, param->atrribute_handle,
conn->connection_id, data->length,