|
@@ -48,6 +48,10 @@ static void hci_cc_inquiry_cancel(struct hci_dev *hdev, struct sk_buff *skb)
|
|
smp_mb__after_atomic(); /* wake_up_bit advises about this barrier */
|
|
smp_mb__after_atomic(); /* wake_up_bit advises about this barrier */
|
|
wake_up_bit(&hdev->flags, HCI_INQUIRY);
|
|
wake_up_bit(&hdev->flags, HCI_INQUIRY);
|
|
|
|
|
|
|
|
+ hci_dev_lock(hdev);
|
|
|
|
+ hci_discovery_set_state(hdev, DISCOVERY_STOPPED);
|
|
|
|
+ hci_dev_unlock(hdev);
|
|
|
|
+
|
|
hci_conn_check_pending(hdev);
|
|
hci_conn_check_pending(hdev);
|
|
}
|
|
}
|
|
|
|
|