From 8a186d4eabace2b88efea225215d1e59056ddba6 Mon Sep 17 00:00:00 2001 From: Mariusz Skamra Date: Wed, 24 Feb 2016 08:34:38 +0100 Subject: Bluetooth: tester: Fix missing le to host order conversion This fix missing conversion of CEP properties. Change-Id: Ibdf9fecdb3e21e8fd5e2b7ccacb88ae2abd81776 Signed-off-by: Mariusz Skamra --- tests/bluetooth/tester/src/gatt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/bluetooth/tester/src/gatt.c b/tests/bluetooth/tester/src/gatt.c index a568102e1..368d267dc 100644 --- a/tests/bluetooth/tester/src/gatt.c +++ b/tests/bluetooth/tester/src/gatt.c @@ -571,12 +571,14 @@ static uint8_t set_cep_value(struct bt_gatt_attr *attr, const void *value, const uint16_t len) { struct bt_gatt_cep *cep_value = attr->user_data; + uint16_t properties; - if (len != sizeof(cep_value->properties)) { + if (len != sizeof(properties)) { return BTP_STATUS_FAILED; } - memcpy(&cep_value->properties, value, len); + memcpy(&properties, value, len); + cep_value->properties = sys_le16_to_cpu(properties); return BTP_STATUS_SUCCESS; } -- cgit v1.2.3