summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_qca.c
diff options
context:
space:
mode:
authorHarish Bandi <c-hbandi@codeaurora.org>2019-07-12 07:09:40 +0200
committerMarcel Holtmann <marcel@holtmann.org>2019-08-12 18:23:50 +0200
commita2780889e247561744dd8efbd3478a1999b72ae3 (patch)
treef2b671a852bc48705a7701a91850bd45dd86a75c /drivers/bluetooth/hci_qca.c
parentBluetooth: btqca: Use correct byte format for opcode of injected command (diff)
downloadlinux-a2780889e247561744dd8efbd3478a1999b72ae3.tar.xz
linux-a2780889e247561744dd8efbd3478a1999b72ae3.zip
Bluetooth: hci_qca: Send VS pre shutdown command.
WCN399x chips are coex chips, it needs a VS pre shutdown command while turning off the BT. So that chip can inform BT is OFF to other active clients. Signed-off-by: Harish Bandi <c-hbandi@codeaurora.org> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_qca.c')
-rw-r--r--drivers/bluetooth/hci_qca.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c
index 3c9fd165fda6..0cfa5b831d39 100644
--- a/drivers/bluetooth/hci_qca.c
+++ b/drivers/bluetooth/hci_qca.c
@@ -1386,6 +1386,9 @@ static int qca_power_off(struct hci_dev *hdev)
{
struct hci_uart *hu = hci_get_drvdata(hdev);
+ /* Perform pre shutdown command */
+ qca_send_pre_shutdown_cmd(hdev);
+
qca_power_shutdown(hu);
return 0;
}