--- tools/hciconfig.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 5d01bd9..f1458b9 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -1305,7 +1305,7 @@ static void cmd_inq_data(int ctl, int hdev, char *opt) printf("\t%s service classes:", type == 0x02 ? "Shortened" : "Complete"); for (i = 0; i < (len - 1) / 2; i++) { - uint16_t val = btohs(bt_get_unaligned((uint16_t *) (ptr + (i * 2)))); + uint16_t val = bt_get_le16((ptr + (i * 2))); printf(" 0x%4.4x", val); } printf("\n"); -- 1.7.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html