Commit d3b7acb2 authored by Marcel Holtmann's avatar Marcel Holtmann

[Bluetooth] Fix display for class of device

The class of device is displayed in wrong byte order. This patch swaps it
and now the inquiry_cache attribute shows the same as the userspace tools.
parent 4ab310d2
...@@ -52,7 +52,7 @@ static ssize_t show_inquiry_cache(struct class_device *cdev, char *buf) ...@@ -52,7 +52,7 @@ static ssize_t show_inquiry_cache(struct class_device *cdev, char *buf)
n += sprintf(buf + n, "%s %d %d %d 0x%.2x%.2x%.2x 0x%.4x 0x%.2x %u\n", n += sprintf(buf + n, "%s %d %d %d 0x%.2x%.2x%.2x 0x%.4x 0x%.2x %u\n",
batostr(&bdaddr), batostr(&bdaddr),
info->pscan_rep_mode, info->pscan_period_mode, info->pscan_mode, info->pscan_rep_mode, info->pscan_period_mode, info->pscan_mode,
info->dev_class[0], info->dev_class[1], info->dev_class[2], info->dev_class[2], info->dev_class[1], info->dev_class[0],
info->clock_offset, 0, e->timestamp); info->clock_offset, 0, e->timestamp);
} }
......
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