Bluetooth: host: Fix endianness issue in reading CPF descriptor

Fix endianness issue in reading CPF descriptor not converting from
native endianess to little-endian on the 'unit' and 'description'
fields.

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2021-02-19 16:29:26 +01:00 committed by Carles Cufí
commit 84dffe5b3c
2 changed files with 19 additions and 4 deletions

View file

@ -290,7 +290,7 @@ struct bt_gatt_cpf {
uint8_t name_space;
/** Description of the characteristic as defined in a higher layer profile */
uint16_t description;
} __packed;
};
/**
* @defgroup bt_gatt_server GATT Server APIs