diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index aa6fed3a553b222ab385b80f7ee0b69e6a3ca9ae..da2bc3d3d289e37a71866ded34f32ee44ab28e35 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -924,7 +924,7 @@ static void hci_cc_le_set_adv_enable(struct hci_dev *hdev, struct sk_buff *skb) clear_bit(HCI_ADVERTISING, &hdev->dev_flags); } - if (!test_bit(HCI_INIT, &hdev->flags)) { + if (*sent && !test_bit(HCI_INIT, &hdev->flags)) { struct hci_request req; hci_req_init(&req, hdev);