Lines Matching refs:connectable
1517 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
1527 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1533 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1541 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1547 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1561 bool connectable; in __hci_req_enable_advertising() local
1571 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_enable_advertising()
1574 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_enable_advertising()
1591 if (hci_update_random_address(req, !connectable, in __hci_req_enable_advertising()
1606 if (connectable) { in __hci_req_enable_advertising()
2170 bool connectable; in __hci_req_setup_ext_adv_instance() local
2191 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_setup_ext_adv_instance()
2194 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_setup_ext_adv_instance()
2201 err = hci_get_random_address(hdev, !connectable, in __hci_req_setup_ext_adv_instance()
2221 if (connectable) { in __hci_req_setup_ext_adv_instance()