Fix not respecting the user's endianism for LE Scan

When setting LE Scan parameters we were assuming that the user was using
a Little Endian machine.
This commit is contained in:
Vinicius Costa Gomes 2010-07-08 20:25:21 -03:00
parent 9449768c0a
commit 46d1c28faf

View File

@ -2441,7 +2441,7 @@ static void cmd_lescan(int dev_id, int argc, char **argv)
exit(1);
}
err = hci_le_set_scan_parameters(dd, 0x01, 0x0010, 0x0010,
err = hci_le_set_scan_parameters(dd, 0x01, htobs(0x0010), htobs(0x0010),
0x00, 0x00);
if (err < 0) {
perror("Set scan parameters failed");