Files
openairinterface5g/radio/vrtsim/taps_client.h
Bartosz Podrygajlo 8f624d0212 fix(vrtsim): Refactor peer antenna configuration and taps_client
This commit addresses several architectural issues in vrtsim, specifically
regarding how peer antenna counts are managed. Some additional changes
were made to allow unit tests and several fixes were delivered.

Key changes:
1. Refactored peer antenna management:
 - Removed the redundant 'peer_info_t' structure which overlapped with
   ue_config and client_info.
 - Added explicit 'peer_tx_ant' and 'peer_rx_ant' fields to vrtsim_state_t.
 - Server now pulls peer info from the UE config, while Client pulls it from
   the GNB info published by the server.

2. Refactor taps_client to be thread safe

3. Fixed a bug where only the first antenna IQ was read from underlying SHM
   mechanism

4. Test / usability related changes:
 - Added support for configurable SHM channel names via
   '--vrtsim.shm_channel_name' to prevent IPC conflicts between tests.
 - Reduced the sleep() calls inside the code to reduce test runtime and
   speedup vrtsim connection initialization and cleanup
 - Added a unit tests for:
   + transparent channel mode
   + taps_client mode
   + cirdb mode

Signed-off-by: Bartosz Podrygajlo <bartosz.podrygajlo@openairinterface.org> and assisted by Gemini
2026-05-26 19:44:45 +02:00

23 lines
378 B
C

/*
* SPDX-License-Identifier: LicenseRef-CSSL-1.0
*/
#ifndef TAPS_CLIENT_H
#define TAPS_CLIENT_H
#ifdef __cplusplus
extern "C" {
#endif
#include "sim.h"
void *taps_client_connect(const char *socket_path, int num_tx_ant, int num_rx_ant);
channel_desc_t *taps_client_get_model(void *handle, int id);
void taps_client_stop(void *handle);
#ifdef __cplusplus
}
#endif
#endif