|
@@ -6383,6 +6383,7 @@ static int remove_advertising(struct sock *sk, struct hci_dev *hdev,
|
|
|
if (skb_queue_empty(&req.cmd_q) ||
|
|
|
!hdev_is_powered(hdev) ||
|
|
|
hci_dev_test_flag(hdev, HCI_ADVERTISING)) {
|
|
|
+ hci_req_purge(&req);
|
|
|
rp.instance = cp->instance;
|
|
|
err = mgmt_cmd_complete(sk, hdev->id,
|
|
|
MGMT_OP_REMOVE_ADVERTISING,
|