summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}