c
if (!hci_dev_test_flag(hdev, HCI_UNREGISTERED)) {
    msft_unregister(hdev);
    hci_dev_set_flag(hdev, HCI_UNREGISTERED);
}
