Lines Matching full:connectable
1417 * corresponds to the "connectable" instance flag. in get_adv_instance_flags()
1462 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
1470 /* Slave connection state and non connectable mode bit 20. */ in is_advertising_allowed()
1471 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1474 /* Slave connection state and connectable mode bit 38 in is_advertising_allowed()
1477 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1484 /* Master connection state and non connectable mode bit 18. */ in is_advertising_allowed()
1485 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1488 /* Master connection state and connectable mode bit 35 and in is_advertising_allowed()
1491 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1504 bool connectable; in __hci_req_enable_advertising() local
1510 /* If the "connectable" instance flag was not set, then choose between in __hci_req_enable_advertising()
1511 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_enable_advertising()
1513 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_enable_advertising()
1516 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_enable_advertising()
1529 /* Set require_privacy to true only when non-connectable in __hci_req_enable_advertising()
1533 if (hci_update_random_address(req, !connectable, in __hci_req_enable_advertising()
1540 if (connectable) { in __hci_req_enable_advertising()
2060 * non-connectable advertising. in hci_get_random_address()
2101 bool connectable; in __hci_req_setup_ext_adv_instance() local
2119 /* If the "connectable" instance flag was not set, then choose between in __hci_req_setup_ext_adv_instance()
2120 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_setup_ext_adv_instance()
2122 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_setup_ext_adv_instance()
2125 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_setup_ext_adv_instance()
2128 /* Set require_privacy to true only when non-connectable in __hci_req_setup_ext_adv_instance()
2132 err = hci_get_random_address(hdev, !connectable, in __hci_req_setup_ext_adv_instance()
2146 if (connectable) { in __hci_req_setup_ext_adv_instance()
2515 * scanning and non-connectable advertising. in hci_update_random_address()
2643 * by-product of disabling connectable, we need to update the in connectable_update()