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:
parent
a923c2f1be
commit
fccb2e1ffc
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue