Skip to content
Permalink
Browse files

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 <tedd.an@intel.com>
  • Loading branch information...
tedd-an authored and jhedberg committed May 23, 2019
1 parent a923c2f commit fccb2e1ffc033ac327661ff0a74149d5c062ad38
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit fccb2e1

Please sign in to comment.
You can’t perform that action at this time.