Bluetooth: tester: Fix attribute uuid type check

This chack shall be performed on attribute uuid type, not uuid provided
in Gatt Get Attributes command paramteres.

Signed-off-by: Mariusz Skamra <mariusz.skamra@codecoup.pl>
This commit is contained in:
Mariusz Skamra 2017-12-13 08:42:27 +01:00 committed by Johan Hedberg
commit 78aa543d6f

View file

@ -1727,7 +1727,7 @@ static u8_t get_attrs_rp(const struct bt_gatt_attr *attr, void *user_data)
gatt_attr->handle = sys_cpu_to_le16(attr->handle);
gatt_attr->permission = attr->perm;
if (foreach->uuid->type == BT_UUID_TYPE_16) {
if (attr->uuid->type == BT_UUID_TYPE_16) {
gatt_attr->type_length = 2;
net_buf_simple_add_le16(foreach->buf,
BT_UUID_16(attr->uuid)->val);