mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
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:
parent
9449768c0a
commit
46d1c28faf
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user