|
@@ -578,13 +578,14 @@ void bta_gattc_clear_notif_registration(tBTA_GATTC_SERV *p_srcb, UINT16 conn_id,
|
|
|
for (i = 0 ; i < BTA_GATTC_NOTIF_REG_MAX; i ++) {
|
|
for (i = 0 ; i < BTA_GATTC_NOTIF_REG_MAX; i ++) {
|
|
|
if (p_clrcb->notif_reg[i].in_use &&
|
|
if (p_clrcb->notif_reg[i].in_use &&
|
|
|
!bdcmp(p_clrcb->notif_reg[i].remote_bda, remote_bda))
|
|
!bdcmp(p_clrcb->notif_reg[i].remote_bda, remote_bda))
|
|
|
-
|
|
|
|
|
|
|
+ {
|
|
|
/* It's enough to get service or characteristic handle, as
|
|
/* It's enough to get service or characteristic handle, as
|
|
|
* clear boundaries are always around service.
|
|
* clear boundaries are always around service.
|
|
|
*/
|
|
*/
|
|
|
handle = p_clrcb->notif_reg[i].handle;
|
|
handle = p_clrcb->notif_reg[i].handle;
|
|
|
if (handle >= start_handle && handle <= end_handle)
|
|
if (handle >= start_handle && handle <= end_handle)
|
|
|
memset(&p_clrcb->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG));
|
|
memset(&p_clrcb->notif_reg[i], 0, sizeof(tBTA_GATTC_NOTIF_REG));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|