Lines Matching defs:connectable

983 static bool is_advertising_allowed(struct hci_dev *hdev, bool connectable)
991 /* Peripheral connection state and non connectable mode
994 if (!connectable && !(hdev->le_states[2] & 0x10))
997 /* Peripheral connection state and connectable mode bit 38
1000 if (connectable && (!(hdev->le_states[4] & 0x40) ||
1007 /* Central connection state and non connectable mode bit 18. */
1008 if (!connectable && !(hdev->le_states[2] & 0x02))
1011 /* Central connection state and connectable mode bit 35 and
1014 if (connectable && (!(hdev->le_states[4] & 0x08) ||
1106 * scanning and non-connectable advertising.
1341 bool connectable, require_privacy;
1369 /* If the "connectable" instance flag was not set, then choose between
1370 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting.
1372 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) ||
1375 if (!is_advertising_allowed(hdev, connectable))
1378 /* Set require_privacy to true only when non-connectable
1382 require_privacy = !connectable && !(adv && adv->periodic);
1406 if (connectable) {
1838 bool connectable;
1850 /* If the "connectable" instance flag was not set, then choose between
1851 * ADV_IND and ADV_NONCONN_IND based on the global connectable setting.
1853 connectable = (flags & MGMT_ADV_FLAG_CONNECTABLE) ||
1856 if (!is_advertising_allowed(hdev, connectable))
1870 /* Set require_privacy to true only when non-connectable
1874 status = hci_update_random_address_sync(hdev, !connectable,
1890 if (connectable) {
5987 * by-product of disabling connectable, we need to update the
6909 * non-connectable advertising.