Bluetooth: Fix stand-alone HCI command handling
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / net / bluetooth / hci_core.c
index 6e6a9dd8a1557a66a10d15c74dc170cde6029bc0..4f8142bdf6558c8f791c5129b8332d25c03b73f1 100644 (file)
@@ -2511,6 +2511,11 @@ int hci_send_cmd(struct hci_dev *hdev, __u16 opcode, __u32 plen, void *param)
        if (test_bit(HCI_INIT, &hdev->flags))
                hdev->init_last_cmd = opcode;
 
+       /* Stand-alone HCI commands must be flaged as
+        * single-command requests.
+        */
+       bt_cb(skb)->req.start = true;
+
        skb_queue_tail(&hdev->cmd_q, skb);
        queue_work(hdev->workqueue, &hdev->cmd_work);