Lines Matching full:connectable
1355 * corresponds to the "connectable" instance flag. in get_adv_instance_flags()
1400 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
1408 /* Slave connection state and non connectable mode bit 20. */ in is_advertising_allowed()
1409 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1412 /* Slave connection state and connectable mode bit 38 in is_advertising_allowed()
1415 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1422 /* Master connection state and non connectable mode bit 18. */ in is_advertising_allowed()
1423 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1426 /* Master connection state and connectable mode bit 35 and in is_advertising_allowed()
1429 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1442 bool connectable; in __hci_req_enable_advertising() local
1448 /* If the "connectable" instance flag was not set, then choose between in __hci_req_enable_advertising()
1449 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_enable_advertising()
1451 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_enable_advertising()
1454 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_enable_advertising()
1467 /* Set require_privacy to true only when non-connectable in __hci_req_enable_advertising()
1471 if (hci_update_random_address(req, !connectable, in __hci_req_enable_advertising()
1478 if (connectable) { in __hci_req_enable_advertising()
1942 * non-connectable advertising. in hci_get_random_address()
1983 bool connectable; in __hci_req_setup_ext_adv_instance() local
2001 /* If the "connectable" instance flag was not set, then choose between in __hci_req_setup_ext_adv_instance()
2002 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_setup_ext_adv_instance()
2004 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_setup_ext_adv_instance()
2007 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_setup_ext_adv_instance()
2010 /* Set require_privacy to true only when non-connectable in __hci_req_setup_ext_adv_instance()
2014 err = hci_get_random_address(hdev, !connectable, in __hci_req_setup_ext_adv_instance()
2028 if (connectable) { in __hci_req_setup_ext_adv_instance()
2397 * scanning and non-connectable advertising. in hci_update_random_address()
2525 * by-product of disabling connectable, we need to update the in connectable_update()