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