]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: qca: Fix wrong event type for patch config command
authorZijun Hu <quic_zijuhu@quicinc.com>
Fri, 19 Jan 2024 09:45:30 +0000 (17:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:48:36 +0000 (14:48 +0000)
commitfb3e827badce092b58f3fc97339c4ff804d0e6c7
tree8e16b63bcb9604c6af168f90288f4a7cfc85b8c6
parentdcd646f40a566e1d79c8f8b3848a38103c52153d
Bluetooth: qca: Fix wrong event type for patch config command

[ Upstream commit c0dbc56077ae759f2dd602c7561480bc2b1b712c ]

Vendor-specific command patch config has HCI_Command_Complete event as
response, but qca_send_patch_config_cmd() wrongly expects vendor-specific
event for the command, fixed by using right event type.

Btmon log for the vendor-specific command are shown below:
< HCI Command: Vendor (0x3f|0x0000) plen 5
        28 01 00 00 00
> HCI Event: Command Complete (0x0e) plen 5
      Vendor (0x3f|0x0000) ncmd 1
        Status: Success (0x00)
        28

Fixes: 4fac8a7ac80b ("Bluetooth: btqca: sequential validation")
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/btqca.c