From 6e872cb5f5329d7f747091ba759f832bab4b45ec Mon Sep 17 00:00:00 2001 From: Nitin Arora Date: Thu, 31 Jul 2014 13:00:21 -0700 Subject: [PATCH] Use correct structure to read LE connection handle This patch corrects the retrieval of the connection handle after the gatt write operation has succeeded successfully. Change-Id: Iac79a64d6c626c2349b6f1a3744ea49a521a45f4 --- bta/gatt/bta_gattc_act.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bta/gatt/bta_gattc_act.c b/bta/gatt/bta_gattc_act.c index c5f7f60ae..b07c47bc7 100755 --- a/bta/gatt/bta_gattc_act.c +++ b/bta/gatt/bta_gattc_act.c @@ -1364,7 +1364,7 @@ void bta_gattc_read_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) ** ** Function bta_gattc_write_cmpl ** -** Description read complete +** Description write complete ** ** Returns None. ** @@ -1380,7 +1380,7 @@ void bta_gattc_write_cmpl(tBTA_GATTC_CLCB *p_clcb, tBTA_GATTC_OP_CMPL *p_data) if (p_data->p_cmpl != NULL) { - bta_gattc_handle2id(p_clcb->p_srcb, p_data->p_cmpl->handle, + bta_gattc_handle2id(p_clcb->p_srcb, p_data->p_cmpl->att_value.handle, &cb_data.write.srvc_id, &cb_data.write.char_id, &cb_data.write.descr_type); } -- 2.11.0