From fccb2e1ffc033ac327661ff0a74149d5c062ad38 Mon Sep 17 00:00:00 2001 From: Tedd Ho-Jeong An Date: Wed, 22 May 2019 18:03:34 -0700 Subject: [PATCH] Bluetooth: GATT: Fix using a wrong handle This patch fixes to use the right handle value. Fixes #16341 Signed-off-by: Tedd Ho-Jeong An --- subsys/bluetooth/host/gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/bluetooth/host/gatt.c b/subsys/bluetooth/host/gatt.c index afd597598fb..89b3bd3dd10 100644 --- a/subsys/bluetooth/host/gatt.c +++ b/subsys/bluetooth/host/gatt.c @@ -1536,7 +1536,7 @@ int bt_gatt_indicate(struct bt_conn *conn, nfy.type = BT_GATT_CCC_INDICATE; nfy.params = params; - bt_gatt_foreach_attr(params->attr->handle, 0xffff, notify_cb, &nfy); + bt_gatt_foreach_attr(handle, 0xffff, notify_cb, &nfy); return nfy.err; }