summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Skamra <mariusz.skamra@tieto.com>2016-02-24 08:34:38 +0100
committerGerrit Code Review <gerrit@zephyrproject.org>2016-03-03 08:18:39 +0000
commit8a186d4eabace2b88efea225215d1e59056ddba6 (patch)
treebaa3d4df49f872c99d2250fa6385dd3c495d6793
parentbf90337e8720915b3e03c8a33a95a118c3a3d1b1 (diff)
Bluetooth: tester: Fix missing le to host order conversion
This fix missing conversion of CEP properties. Change-Id: Ibdf9fecdb3e21e8fd5e2b7ccacb88ae2abd81776 Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
-rw-r--r--tests/bluetooth/tester/src/gatt.c6
1 files 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;
}