Lines Matching full:connectable

809 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable)  in is_advertising_allowed()  argument
817 /* Peripheral connection state and non connectable mode in is_advertising_allowed()
820 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
823 /* Peripheral connection state and connectable mode bit 38 in is_advertising_allowed()
826 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
833 /* Central connection state and non connectable mode bit 18. */ in is_advertising_allowed()
834 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
837 /* Central connection state and connectable mode bit 35 and in is_advertising_allowed()
840 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
931 * scanning and non-connectable advertising. in hci_update_random_address_sync()
1050 bool connectable; in hci_setup_ext_adv_instance_sync() local
1078 /* If the "connectable" instance flag was not set, then choose between in hci_setup_ext_adv_instance_sync()
1079 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_setup_ext_adv_instance_sync()
1081 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_setup_ext_adv_instance_sync()
1084 if (!is_advertising_allowed(hdev, connectable)) in hci_setup_ext_adv_instance_sync()
1087 /* Set require_privacy to true only when non-connectable in hci_setup_ext_adv_instance_sync()
1091 err = hci_get_random_address(hdev, !connectable, in hci_setup_ext_adv_instance_sync()
1111 if (connectable) { in hci_setup_ext_adv_instance_sync()
1520 bool connectable; in hci_enable_advertising_sync() local
1532 /* If the "connectable" instance flag was not set, then choose between in hci_enable_advertising_sync()
1533 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in hci_enable_advertising_sync()
1535 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_enable_advertising_sync()
1538 if (!is_advertising_allowed(hdev, connectable)) in hci_enable_advertising_sync()
1552 /* Set require_privacy to true only when non-connectable in hci_enable_advertising_sync()
1556 status = hci_update_random_address_sync(hdev, !connectable, in hci_enable_advertising_sync()
1572 if (connectable) { in hci_enable_advertising_sync()
3198 * lmp_bredr_capable(Set Fast Connectable -> Set Scan Type -> Set Class ->
5604 * by-product of disabling connectable, we need to update the in hci_update_connectable_sync()
6524 * non-connectable advertising. in hci_get_random_address()