Lines Matching full:connectable
988 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
996 /* Peripheral connection state and non connectable mode in is_advertising_allowed()
999 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1002 /* Peripheral connection state and connectable mode bit 38 in is_advertising_allowed()
1005 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1012 /* Central connection state and non connectable mode bit 18. */ in is_advertising_allowed()
1013 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1016 /* Central connection state and connectable mode bit 35 and in is_advertising_allowed()
1019 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1111 * scanning and non-connectable advertising. in hci_update_random_address_sync()
1350 bool connectable; in hci_setup_ext_adv_instance_sync() local
1378 /* If the "connectable" instance flag was not set, then choose between in hci_setup_ext_adv_instance_sync()
1379 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_setup_ext_adv_instance_sync()
1381 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_setup_ext_adv_instance_sync()
1384 if (!is_advertising_allowed(hdev, connectable)) in hci_setup_ext_adv_instance_sync()
1387 /* Set require_privacy to true only when non-connectable in hci_setup_ext_adv_instance_sync()
1391 err = hci_get_random_address(hdev, !connectable, in hci_setup_ext_adv_instance_sync()
1411 if (connectable) { in hci_setup_ext_adv_instance_sync()
1834 bool connectable; in hci_enable_advertising_sync() local
1846 /* If the "connectable" instance flag was not set, then choose between in hci_enable_advertising_sync()
1847 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_enable_advertising_sync()
1849 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_enable_advertising_sync()
1852 if (!is_advertising_allowed(hdev, connectable)) in hci_enable_advertising_sync()
1866 /* Set require_privacy to true only when non-connectable in hci_enable_advertising_sync()
1870 status = hci_update_random_address_sync(hdev, !connectable, in hci_enable_advertising_sync()
1886 if (connectable) { in hci_enable_advertising_sync()
3515 * lmp_bredr_capable(Set Fast Connectable -> Set Scan Type -> Set Class ->
5839 * by-product of disabling connectable, we need to update the in hci_update_connectable_sync()
6773 * non-connectable advertising. in hci_get_random_address()