diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/hciconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/hciconfig.c b/tools/hciconfig.c index 0c8437f3..ed8fdcd2 100644 --- a/tools/hciconfig.c +++ b/tools/hciconfig.c @@ -486,7 +486,7 @@ void cmd_class(int ctl, int hdev, char *opt) exit(1); } if (opt) { - uint32_t cod = htobl(strtoul(opt, NULL, 16)); + uint32_t cod = strtoul(opt, NULL, 16); if (0 > hci_write_class_of_dev(s, cod, 1000)) { printf("Can't write local class of device on hci%d. %s(%d)\n", hdev, strerror(errno), errno); |