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:
Luiz Augusto von Dentz 2015-05-28 17:23:10 +03:00 committed by Anas Nashif
commit 1d734fd60f

View file

@ -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);