Bluetooth: Fix missing endian conversion
16 bit handles have to be converted to host order. Change-Id: Iae5d9d79bacd90cd5b42a98d02165ec75bf1272e Signed-off-by: Mariusz Skamra <mariusz.skamra@tieto.com>
This commit is contained in:
parent
c5404e7c4f
commit
6f11245d92
1 changed files with 2 additions and 2 deletions
|
@ -917,8 +917,8 @@ static uint16_t parse_include(struct bt_conn *conn, const void *pdu,
|
|||
* have different formats so the conversion have to be done
|
||||
* field by field.
|
||||
*/
|
||||
value.start_handle = incl->start_handle;
|
||||
value.end_handle = incl->end_handle;
|
||||
value.start_handle = sys_le16_to_cpu(incl->start_handle);
|
||||
value.end_handle = sys_le16_to_cpu(incl->end_handle);
|
||||
|
||||
switch (u.uuid.type) {
|
||||
case BT_UUID_TYPE_16:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue