diff options
Diffstat (limited to 'net/bluetooth/hci_sock.c')
| -rw-r--r-- | net/bluetooth/hci_sock.c | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index ec044d31f79..aa4354fca77 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c @@ -854,6 +854,11 @@ static int hci_sock_sendmsg(struct kiocb *iocb, struct socket *sock,  			skb_queue_tail(&hdev->raw_q, skb);  			queue_work(hdev->workqueue, &hdev->tx_work);  		} else { +			/* 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);  		}  |