mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
RFsim: Disable beam API if beam simulation is disabled
This commit is contained in:
@@ -1553,9 +1553,11 @@ extern "C" __attribute__((__visibility__("default"))) int device_init(openair0_d
|
||||
device->trx_set_freq_func = rfsimulator_set_freq;
|
||||
device->trx_set_gains_func = rfsimulator_set_gains;
|
||||
device->trx_write_func = rfsimulator_write;
|
||||
device->trx_write_beams_func = rfsimulator_write_beams;
|
||||
device->trx_read_func = rfsimulator_read;
|
||||
device->trx_read_beams_func = rfsimulator_read_beams;
|
||||
if (rfsimulator->beam_ctrl->enable_beams) {
|
||||
device->trx_write_beams_func = rfsimulator_write_beams;
|
||||
device->trx_read_beams_func = rfsimulator_read_beams;
|
||||
}
|
||||
/* let's pretend to be a b2x0 */
|
||||
device->type = RFSIMULATOR;
|
||||
openair0_cfg[0].rx_gain[0] = 0;
|
||||
|
||||
Reference in New Issue
Block a user