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:
Mariusz Skamra 2016-07-06 15:14:18 +02:00 committed by Jukka Rissanen
commit 6f11245d92

View file

@ -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: