Bluetooth: Fix not passing proper peer address to attribute read
Invalid peer address was being passed since the conn pointer was not initialized properly. Change-Id: Ib64584f1eb8bc534389bd4fa057c58dd00ffbd6d Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
c6ce7792a7
commit
1d734fd60f
1 changed files with 1 additions and 0 deletions
|
@ -580,6 +580,7 @@ static void att_read_rsp(struct bt_conn *conn, uint8_t op, uint8_t rsp,
|
|||
return;
|
||||
}
|
||||
|
||||
data.conn = conn;
|
||||
data.offset = offset;
|
||||
|
||||
bt_gatt_foreach_attr(handle, handle, read_cb, &data);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue