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>
This commit is contained in:
Tedd Ho-Jeong An 2019-05-22 18:03:34 -07:00 committed by Johan Hedberg
commit fccb2e1ffc

View file

@ -1536,7 +1536,7 @@ int bt_gatt_indicate(struct bt_conn *conn,
nfy.type = BT_GATT_CCC_INDICATE; nfy.type = BT_GATT_CCC_INDICATE;
nfy.params = params; 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; return nfy.err;
} }