/* Function for invalidating records with a BLE_CONN_STATUS_DISCONNECTED connection status.  */
static void record_purge_disconnected()
/* Function for invalidating records with a BLE_CONN_STATUS_DISCONNECTED connection status.  */
static void record_purge_disconnected()
{
    sdk_mapped_flags_key_list_t disconnected_list;
    disconnected_list = sdk_mapped_flags_key_list_get(
                                   m_bcs.valid_conn_handles,
                                 (~m_bcs.flags.connected_flags) & (m_bcs.flags.valid_flags));
    for (uint32_t i = 0; i < disconnected_list.len; i++)
    {
        record_invalidate(disconnected_list.flag_keys[i]);
    }
}