Lines Matching refs:hci_dev_test_flag

404 		    !hci_dev_test_flag(d, HCI_UNCONFIGURED))  in read_index_list()
417 if (hci_dev_test_flag(d, HCI_SETUP) || in read_index_list()
418 hci_dev_test_flag(d, HCI_CONFIG) || in read_index_list()
419 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_index_list()
429 !hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_index_list()
464 hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_unconf_index_list()
477 if (hci_dev_test_flag(d, HCI_SETUP) || in read_unconf_index_list()
478 hci_dev_test_flag(d, HCI_CONFIG) || in read_unconf_index_list()
479 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_unconf_index_list()
489 hci_dev_test_flag(d, HCI_UNCONFIGURED)) { in read_unconf_index_list()
534 if (hci_dev_test_flag(d, HCI_SETUP) || in read_ext_index_list()
535 hci_dev_test_flag(d, HCI_CONFIG) || in read_ext_index_list()
536 hci_dev_test_flag(d, HCI_USER_CHANNEL)) in read_ext_index_list()
546 if (hci_dev_test_flag(d, HCI_UNCONFIGURED)) in read_ext_index_list()
585 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in is_configured()
601 !hci_dev_test_flag(hdev, HCI_EXT_CONFIGURED)) in get_missing_options()
816 if (!hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in get_supported_settings()
836 if (hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in get_current_settings()
839 if (hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) in get_current_settings()
842 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in get_current_settings()
845 if (hci_dev_test_flag(hdev, HCI_BONDABLE)) in get_current_settings()
848 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in get_current_settings()
851 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in get_current_settings()
854 if (hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) in get_current_settings()
857 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in get_current_settings()
860 if (hci_dev_test_flag(hdev, HCI_HS_ENABLED)) in get_current_settings()
863 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in get_current_settings()
866 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) in get_current_settings()
869 if (hci_dev_test_flag(hdev, HCI_KEEP_DEBUG_KEYS)) in get_current_settings()
872 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) in get_current_settings()
887 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in get_current_settings()
888 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in get_current_settings()
894 if (hci_dev_test_flag(hdev, HCI_WIDEBAND_SPEECH_ENABLED)) in get_current_settings()
927 if (hci_dev_test_flag(hdev, HCI_LIMITED_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
929 else if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) in mgmt_get_adv_discov_flags()
950 return hci_dev_test_flag(hdev, HCI_CONNECTABLE); in mgmt_get_connectable()
984 if (!hci_dev_test_flag(hdev, HCI_ADVERTISING)) in rpa_expired()
1050 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in append_eir_data_to_buf()
1054 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in append_eir_data_to_buf()
1187 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in clean_up_hci_state()
1332 else if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in mgmt_bredr_support()
1342 else if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in mgmt_le_support()
1367 if (hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in mgmt_set_discoverable_complete()
1393 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_discoverable()
1394 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_discoverable()
1427 if (!hci_dev_test_flag(hdev, HCI_CONNECTABLE)) { in set_discoverable()
1446 if (!!cp->val != hci_dev_test_flag(hdev, HCI_DISCOVERABLE)) { in set_discoverable()
1465 if (!!cp->val == hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_discoverable()
1466 (cp->val == 0x02) == hci_dev_test_flag(hdev, in set_discoverable()
1547 if (!!val != hci_dev_test_flag(hdev, HCI_CONNECTABLE)) in set_connectable_update_settings()
1579 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED) && in set_connectable()
1580 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in set_connectable()
1656 hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_bondable()
1657 hci_dev_test_flag(hdev, HCI_DISCOVERABLE) && in set_bondable()
1658 hci_dev_test_flag(hdev, HCI_LIMITED_PRIVACY)) in set_bondable()
1694 if (!!cp->val != hci_dev_test_flag(hdev, HCI_LINK_SECURITY)) { in set_link_security()
1794 if (!!cp->val == hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_ssp()
1805 if (!cp->val && hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in set_ssp()
1841 if (!hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_hs()
1907 if (hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in le_enable_complete()
1956 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_le()
1975 if (val != hci_dev_test_flag(hdev, HCI_LE_ENABLED)) { in set_le()
1980 if (!val && hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in set_le()
2016 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_le()
3281 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_name_complete()
3349 if (lmp_le_capable(hdev) && hci_dev_test_flag(hdev, HCI_ADVERTISING)) in set_local_name()
3381 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_appearance()
3692 !!cp->val != hci_dev_test_flag(hdev, in set_wideband_speech()
3843 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_exp_features_info()
3919 bool changed = hci_dev_test_flag(hdev, in set_exp_feature()
4010 changed = !hci_dev_test_flag(hdev, in set_exp_feature()
4018 changed = hci_dev_test_flag(hdev, in set_exp_feature()
4910 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_discovery_internal()
5003 hci_dev_test_flag(hdev, HCI_PERIODIC_INQ)) { in start_service_discovery()
5328 if (hci_dev_test_flag(hdev, HCI_LE_ADV)) in set_advertising_complete()
5355 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in set_advertising_complete()
5402 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in set_advertising()
5424 (val == hci_dev_test_flag(hdev, HCI_ADVERTISING) && in set_advertising()
5425 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_ADVERTISING_CONNECTABLE)) || in set_advertising()
5427 (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_advertising()
5586 if (hci_dev_test_flag(hdev, HCI_LE_SCAN) && in set_scan_params()
5647 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) || in set_fast_connectable()
5664 if (!!cp->val == hci_dev_test_flag(hdev, HCI_FAST_CONNECTABLE)) { in set_fast_connectable()
5747 if (!hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_bredr()
5757 if (cp->val == hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_bredr()
5801 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_bredr()
5803 hci_dev_test_flag(hdev, HCI_SC_ENABLED))) { in set_bredr()
5903 !hci_dev_test_flag(hdev, HCI_LE_ENABLED)) in set_secure_conn()
5907 if (hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in set_secure_conn()
5909 !hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) in set_secure_conn()
5920 !hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) { in set_secure_conn()
5954 if (val == hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in set_secure_conn()
5955 (cp->val == 0x02) == hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in set_secure_conn()
6008 hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in set_debug_keys()
7065 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { in set_external_config()
7117 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) in set_public_address()
7188 if (hci_dev_test_flag(hdev, HCI_SC_ONLY)) { in read_local_oob_ext_data_complete()
7326 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in read_local_oob_ext_data()
7341 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED) && in read_local_oob_ext_data()
7358 if (hci_dev_test_flag(hdev, HCI_PRIVACY)) { in read_local_oob_ext_data()
7364 if (hci_dev_test_flag(hdev, HCI_FORCE_STATIC_ADDR) || in read_local_oob_ext_data()
7366 (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED) && in read_local_oob_ext_data()
7378 if (hci_dev_test_flag(hdev, HCI_ADVERTISING)) in read_local_oob_ext_data()
7386 if (hci_dev_test_flag(hdev, HCI_SC_ENABLED)) { in read_local_oob_ext_data()
7398 if (!hci_dev_test_flag(hdev, HCI_BREDR_ENABLED)) in read_local_oob_ext_data()
7488 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in read_adv_features()
7727 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in add_advertising()
7812 hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_advertising()
8126 if (hci_dev_test_flag(hdev, HCI_ADVERTISING) || in add_ext_adv_data()
8224 if (hci_dev_test_flag(hdev, HCI_ENABLE_LL_PRIVACY)) in remove_advertising()
8270 hci_dev_test_flag(hdev, HCI_ADVERTISING)) { in remove_advertising()
8472 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_added()
8507 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED)) { in mgmt_index_removed()
8592 if (hci_dev_test_flag(hdev, HCI_UNREGISTER)) in __mgmt_power_off()
9177 if (hci_dev_test_flag(hdev, HCI_SSP_ENABLED)) { in mgmt_ssp_enable_complete()
9178 if (hci_dev_test_flag(hdev, HCI_USE_DEBUG_KEYS)) in mgmt_ssp_enable_complete()
9316 if (!hci_dev_test_flag(hdev, HCI_LE_SCAN)) in restart_le_scan()