Ejemplo n.º 1
0
static int hci_vhci_close(struct hci_dev *hdev)
{
	if (!test_and_clear_bit(HCI_RUNNING, &hdev->flags))
		return 0;

	hci_vhci_flush(hdev);
	return 0;
}
Ejemplo n.º 2
0
int hci_vhci_close(struct hci_dev *hdev)
{
	hdev->flags &= ~HCI_RUNNING;
	hci_vhci_flush(hdev);
	return 0;
}