Bluetooth: hci_ll: Add endianness conversion when setting baudrate
authorDavid Lechner <david@lechnology.com>
Fri, 8 Dec 2017 02:22:19 +0000 (20:22 -0600)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 12 Dec 2017 23:28:41 +0000 (00:28 +0100)
commitc30b93eade2ad1d77695669f25ddeb3833588d3b
treed452b17e4d44bd526e33dfe84a47abc436fe89a2
parent7c6ca1201e5e87513b27196138f06df9cbd09a7a
Bluetooth: hci_ll: Add endianness conversion when setting baudrate

This adds an endianness conversion when setting the baudrate using a
vendor-specific command. Otherwise, bad things might happen on a big-
endian system.

Suggested-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c