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()
1230 bool connectable; in hci_setup_ext_adv_instance_sync() local
1258 /* If the "connectable" instance flag was not set, then choose between in hci_setup_ext_adv_instance_sync()
1259 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_setup_ext_adv_instance_sync()
1261 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_setup_ext_adv_instance_sync()
1264 if (!is_advertising_allowed(hdev, connectable)) in hci_setup_ext_adv_instance_sync()
1267 /* Set require_privacy to true only when non-connectable in hci_setup_ext_adv_instance_sync()
1271 err = hci_get_random_address(hdev, !connectable, in hci_setup_ext_adv_instance_sync()
1291 if (connectable) { in hci_setup_ext_adv_instance_sync()
1700 bool connectable; in hci_enable_advertising_sync() local
1712 /* If the "connectable" instance flag was not set, then choose between in hci_enable_advertising_sync()
1713 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_enable_advertising_sync()
1715 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_enable_advertising_sync()
1718 if (!is_advertising_allowed(hdev, connectable)) in hci_enable_advertising_sync()
1732 /* Set require_privacy to true only when non-connectable in hci_enable_advertising_sync()
1736 status = hci_update_random_address_sync(hdev, !connectable, in hci_enable_advertising_sync()
1752 if (connectable) { in hci_enable_advertising_sync()
3461 * lmp_bredr_capable(Set Fast Connectable -> Set Scan Type -> Set Class ->
5785 * by-product of disabling connectable, we need to update the in hci_update_connectable_sync()
6714 * non-connectable advertising. in hci_get_random_address()