Lines Matching full:connectable

1359 		 * corresponds to the "connectable" instance flag.  in get_adv_instance_flags()
1404 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable) in is_advertising_allowed() argument
1412 /* Slave connection state and non connectable mode bit 20. */ in is_advertising_allowed()
1413 if (!connectable && !(hdev->le_states[2] & 0x10)) in is_advertising_allowed()
1416 /* Slave connection state and connectable mode bit 38 in is_advertising_allowed()
1419 if (connectable && (!(hdev->le_states[4] & 0x40) || in is_advertising_allowed()
1426 /* Master connection state and non connectable mode bit 18. */ in is_advertising_allowed()
1427 if (!connectable && !(hdev->le_states[2] & 0x02)) in is_advertising_allowed()
1430 /* Master connection state and connectable mode bit 35 and in is_advertising_allowed()
1433 if (connectable && (!(hdev->le_states[4] & 0x08) || in is_advertising_allowed()
1446 bool connectable; in __hci_req_enable_advertising() local
1452 /* If the "connectable" instance flag was not set, then choose between in __hci_req_enable_advertising()
1453 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_enable_advertising()
1455 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_enable_advertising()
1458 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_enable_advertising()
1471 /* Set require_privacy to true only when non-connectable in __hci_req_enable_advertising()
1475 if (hci_update_random_address(req, !connectable, in __hci_req_enable_advertising()
1482 if (connectable) { in __hci_req_enable_advertising()
1939 * non-connectable advertising. in hci_get_random_address()
1980 bool connectable; in __hci_req_setup_ext_adv_instance() local
1998 /* If the "connectable" instance flag was not set, then choose between in __hci_req_setup_ext_adv_instance()
1999 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting. in __hci_req_setup_ext_adv_instance()
2001 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) || in __hci_req_setup_ext_adv_instance()
2004 if (!is_advertising_allowed(hdev, connectable)) in __hci_req_setup_ext_adv_instance()
2007 /* Set require_privacy to true only when non-connectable in __hci_req_setup_ext_adv_instance()
2011 err = hci_get_random_address(hdev, !connectable, in __hci_req_setup_ext_adv_instance()
2025 if (connectable) { in __hci_req_setup_ext_adv_instance()
2394 * scanning and non-connectable advertising. in hci_update_random_address()
2522 * by-product of disabling connectable, we need to update the in connectable_update()