]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: vhci: Fix checking of msft_opcode
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Thu, 21 Oct 2021 18:44:35 +0000 (11:44 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 22 Oct 2021 04:46:16 +0000 (06:46 +0200)
commit12d6b58f1d39263b10602e1f87ef0ce124858b73
treec6e5b399f71b36890bd42f4fb58e4c2a35ecc454
parent1f30f036eb5e64bf6252234f76f5a4be1954422e
Bluetooth: vhci: Fix checking of msft_opcode

msft_opcode shall be use a vendor ogf (0x3f) but the check was
swifting the bits in the wrong order due to a missing parantesis
over val & 0xffff, but since the code already checks for values over
0xffff it shall not be necessary to perform that operation it now just
removes which makes it work properly when setting opcodes like 0xfce1.

Fixes: 46e5fbcb6ace ("Bluetooth: vhci: Add support for setting msft_opcode and aosp_capable")
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_vhci.c