From: HsingYuan Lo Date: Tue, 8 Sep 2020 03:27:40 +0000 (+0800) Subject: gatt: Fix CID check when receiving ack X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=95a9699e2b6b6260a4c981bd669073565f296b31;p=android-x86%2Fsystem-bt.git gatt: Fix CID check when receiving ack Tag: #feature Test: build & test service change behavior Bug: 159786353 Change-Id: Idb9811e8dd3b0a7bcacc482501f348c477a918c5 --- diff --git a/stack/gatt/gatt_sr.cc b/stack/gatt/gatt_sr.cc index 0346b4096..60fe429cb 100644 --- a/stack/gatt/gatt_sr.cc +++ b/stack/gatt/gatt_sr.cc @@ -1181,7 +1181,7 @@ static bool gatts_proc_ind_ack(tGATT_TCB& tcb, uint16_t ack_handle) { void gatts_process_value_conf(tGATT_TCB& tcb, uint16_t cid, uint8_t op_code) { uint16_t handle; - if (gatt_tcb_find_indicate_handle(tcb, cid, &handle)) { + if (!gatt_tcb_find_indicate_handle(tcb, cid, &handle)) { LOG(ERROR) << "unexpected handle value confirmation"; return; }