Commit 9ee73ad7 authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Convert clock offset value from little endian

The clock offset value is stored in little endian and so convert
it before showing it in the inquiry cache list.
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 2755f6ad
......@@ -55,7 +55,7 @@ static ssize_t show_inquiry_cache(struct class_device *cdev, char *buf)
batostr(&bdaddr),
data->pscan_rep_mode, data->pscan_period_mode, data->pscan_mode,
data->dev_class[2], data->dev_class[1], data->dev_class[0],
data->clock_offset, data->rssi, e->timestamp);
__le16_to_cpu(data->clock_offset), data->rssi, e->timestamp);
}
hci_dev_unlock_bh(hdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment