]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: mediatek: fix the conflict between mtk and msft vendor event
authorSean Wang <sean.wang@mediatek.com>
Tue, 8 Feb 2022 18:17:41 +0000 (02:17 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Mar 2022 15:10:50 +0000 (16:10 +0100)
commit9fb0bf839b9b19aa8e3160a434d5e69b8ab12730
tree2ccdf47b00e8287a588f7dcb7583a3367ba602e4
parentbaf7ed70255ed90b91876344c279b24ed598b53a
Bluetooth: mediatek: fix the conflict between mtk and msft vendor event

There is a conflict between MediaTek wmt event and msft vendor extension
logic in the core layer since 5df37b5aa052 ("Bluetooth: Add framework for
Microsoft vendor extension") was introduced because we changed the type of
mediatek wmt event to the type of msft vendor event in the driver.

But the purpose we reported mediatek event to the core layer is for the
diagnostic purpose with that we are able to see the full packet trace via
monitoring socket with btmon. Thus, it is harmless we keep the original
type of mediatek vendor event here to avoid breaking the msft extension
function especially they can be supported by Mediatek chipset like MT7921
, MT7922 devices and future devices.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btmtk.h
drivers/bluetooth/btmtksdio.c
drivers/bluetooth/btusb.c