HCI_AUTO_OFF
!hci_dev_test_flag(dev, HCI_AUTO_OFF))
hci_dev_set_flag(hdev, HCI_AUTO_OFF);
if (hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF))
if (hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF))
if (hci_dev_test_flag(hdev, HCI_AUTO_OFF))
if (hci_dev_test_flag(hdev, HCI_AUTO_OFF))
hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF)) {
hci_dev_clear_flag(hdev, HCI_AUTO_OFF);
} else if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) {
(!hci_dev_test_flag(hdev, HCI_AUTO_OFF) &&
hci_dev_test_flag(hdev, HCI_AUTO_OFF) ||
hci_dev_test_flag(hdev, HCI_AUTO_OFF) ||
auto_off = hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF);
hci_dev_test_and_clear_flag(hdev, HCI_AUTO_OFF)) {
hci_dev_clear_flag(hdev, HCI_AUTO_OFF);
} else if (hci_dev_test_flag(hdev, HCI_AUTO_OFF)) {
hci_dev_set_flag(hdev, HCI_AUTO_OFF);
hci_dev_set_flag(hdev, HCI_AUTO_OFF);