summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_qca.c
diff options
context:
space:
mode:
authorHarish Bandi <c-hbandi@codeaurora.org>2019-07-12 10:39:40 +0530
committerMarcel Holtmann <marcel@holtmann.org>2019-08-12 18:23:50 +0200
commita2780889e247561744dd8efbd3478a1999b72ae3 (patch)
treef2b671a852bc48705a7701a91850bd45dd86a75c /drivers/bluetooth/hci_qca.c
parent2fde6afb8c7fce8e679c1072891cd31d54af5b83 (diff)
downloadlinux-a2780889e247561744dd8efbd3478a1999b72ae3.tar.bz2
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;
}