Lines Matching defs:connectable
815 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable)
823 /* Peripheral connection state and non connectable mode
826 if (!connectable && !(hdev->le_states[2] & 0x10))
829 /* Peripheral connection state and connectable mode bit 38
832 if (connectable && (!(hdev->le_states[4] & 0x40) ||
839 /* Central connection state and non connectable mode bit 18. */
840 if (!connectable && !(hdev->le_states[2] & 0x02))
843 /* Central connection state and connectable mode bit 35 and
846 if (connectable && (!(hdev->le_states[4] & 0x08) ||
937 * scanning and non-connectable advertising.
1056 bool connectable;
1084 /* If the "connectable" instance flag was not set, then choose between
1085 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting.
1087 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) ||
1090 if (!is_advertising_allowed(hdev, connectable))
1093 /* Set require_privacy to true only when non-connectable
1097 err = hci_get_random_address(hdev, !connectable,
1117 if (connectable) {
1526 bool connectable;
1538 /* If the "connectable" instance flag was not set, then choose between
1539 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting.
1541 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) ||
1544 if (!is_advertising_allowed(hdev, connectable))
1558 /* Set require_privacy to true only when non-connectable
1562 status = hci_update_random_address_sync(hdev, !connectable,
1578 if (connectable) {
5626 * by-product of disabling connectable, we need to update the
6546 * non-connectable advertising.