HCI_DISCOVERABLE
else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE))
HCI_DISCOVERABLE);
HCI_DISCOVERABLE);
if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE) ||
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE))
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
if (!hci_dev_test_flag(hdev, HCI_DISCOVERABLE))
hci_dev_test_flag(hdev, HCI_DISCOVERABLE) &&
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) &&
if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) {
hci_dev_change_flag(hdev, HCI_DISCOVERABLE);
if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) &&
hci_dev_set_flag(hdev, HCI_DISCOVERABLE);
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
hci_dev_clear_flag(hdev, HCI_DISCOVERABLE);
if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE))
else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE))