diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2013-03-09 09:53:50 +0200 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2013-03-09 17:19:09 -0300 |
commit | ad82cdd196cc3e31c412a091e8dd59bef0331eaa (patch) | |
tree | 1834b0afc4c719cf33e976a0874718777ef243fa /drivers | |
parent | 34739c1effcbdc6d210324e86514fa2d2d47b12b (diff) | |
download | op-kernel-dev-ad82cdd196cc3e31c412a091e8dd59bef0331eaa.zip op-kernel-dev-ad82cdd196cc3e31c412a091e8dd59bef0331eaa.tar.gz |
Bluetooth: Fix endianness handling of cmd_status/complete opcodes
The opcode in cmd_complete and cmd_status events is 16 bits, so we
should only be comparing it after having converted it to the host
endianness. There's already an opcode variable in both functions which
is in host endiannes so the right fix is to just start using it instead
of ev->opcode.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions