Commit
fde32ff9c9c0 ("shared/gatt-client: Allow registering with NULL
callback") added an early return to the notify_cb function when the
current client's notify_list is empty which prevents sending
confirmations to indications.
Reported-by: Javier de San Pedro <dev.git@javispedro.com>
}
#endif
- if (queue_isempty(client->notify_list))
- return;
-
bt_gatt_client_ref(client);
+ if (queue_isempty(client->notify_list))
+ goto done;
+
memset(&data, 0, sizeof(data));
if (opcode == BT_ATT_OP_HANDLE_NFY_MULT) {
queue_foreach(client->notify_list, notify_handler, &data);
}
+done:
if (opcode == BT_ATT_OP_HANDLE_IND && !client->parent){
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
if (!chan)