Lines Matching full:connectable
973 * corresponds to the "connectable" instance flag. in get_adv_instance_flags()
1018 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
1026 /* Slave connection state and non connectable mode bit 20. */ in is_advertising_allowed()
1027 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1030 /* Slave connection state and connectable mode bit 38 in is_advertising_allowed()
1033 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1040 /* Master connection state and non connectable mode bit 18. */ in is_advertising_allowed()
1041 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1044 /* Master connection state and connectable mode bit 35 and in is_advertising_allowed()
1047 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1060 bool connectable; in __hci_req_enable_advertising() local
1065 /* If the "connectable" instance flag was not set, then choose between in __hci_req_enable_advertising()
1066 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_enable_advertising()
1068 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_enable_advertising()
1071 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_enable_advertising()
1084 /* Set require_privacy to true only when non-connectable in __hci_req_enable_advertising()
1088 if (hci_update_random_address(req, !connectable, in __hci_req_enable_advertising()
1097 if (connectable) in __hci_req_enable_advertising()
1510 * non-connectable advertising. in hci_get_random_address()
1551 bool connectable; in __hci_req_setup_ext_adv_instance() local
1571 /* If the "connectable" instance flag was not set, then choose between in __hci_req_setup_ext_adv_instance()
1572 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_setup_ext_adv_instance()
1574 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_setup_ext_adv_instance()
1577 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_setup_ext_adv_instance()
1580 /* Set require_privacy to true only when non-connectable in __hci_req_setup_ext_adv_instance()
1584 err = hci_get_random_address(hdev, !connectable, in __hci_req_setup_ext_adv_instance()
1597 if (connectable) { in __hci_req_setup_ext_adv_instance()
1897 * scanning and non-connectable advertising. in hci_update_random_address()
2022 * by-product of disabling connectable, we need to update the in connectable_update()