HCI_LE_ENABLED
hci_dev_test_flag(dev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
if (hci_dev_test_flag(hdev, HCI_LE_ENABLED))
hci_dev_set_flag(hdev, HCI_LE_ENABLED);
hci_dev_clear_flag(hdev, HCI_LE_ENABLED);
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) ||
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
hci_dev_set_flag(hdev, HCI_LE_ENABLED);
if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
if (hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED) &&
if (hci_dev_test_flag(hdev, HCI_LE_ENABLED))
else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) &&
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) &&
hci_dev_set_flag(hdev, HCI_LE_ENABLED);
if (!err && hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
if (hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) {
hci_dev_change_flag(hdev, HCI_LE_ENABLED);
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
!hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (hci_dev_test_flag(hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED))
if (!hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED)) {
if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED))