Lines Matching refs:connectable
988 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
999 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1005 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1013 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1019 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1229 bool connectable; in hci_setup_ext_adv_instance_sync() local
1260 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_setup_ext_adv_instance_sync()
1263 if (!is_advertising_allowed(hdev, connectable)) in hci_setup_ext_adv_instance_sync()
1270 err = hci_get_random_address(hdev, !connectable, in hci_setup_ext_adv_instance_sync()
1290 if (connectable) { in hci_setup_ext_adv_instance_sync()
1699 bool connectable; in hci_enable_advertising_sync() local
1714 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in hci_enable_advertising_sync()
1717 if (!is_advertising_allowed(hdev, connectable)) in hci_enable_advertising_sync()
1735 status = hci_update_random_address_sync(hdev, !connectable, in hci_enable_advertising_sync()
1751 if (connectable) { in hci_enable_advertising_sync()