一旦
This commit is contained in:
@@ -545,7 +545,9 @@ static void rfsimulator_readconfig(rfsimulator_state_t *rfsimulator)
|
||||
break;
|
||||
} else if (strcmp(rfsimu_params[p].strlistptr[i], "chanmod") == 0) {
|
||||
init_channelmod();
|
||||
load_channellist(rfsimulator->tx_num_channels,
|
||||
// Use max(tx,rx) for channel model TX dimension so the DL path works
|
||||
// when peer has more TX antennas than our TX (e.g., UE tx=1, gNB tx=4)
|
||||
load_channellist(std::max(rfsimulator->tx_num_channels, rfsimulator->rx_num_channels),
|
||||
rfsimulator->rx_num_channels,
|
||||
rfsimulator->sample_rate,
|
||||
rfsimulator->rx_freq,
|
||||
@@ -649,7 +651,7 @@ static int rfsimu_setchanmod_cmd(char *buff, int debug, telnet_printfunc_t prnt,
|
||||
if (b->channel_model->model_name == NULL)
|
||||
continue;
|
||||
if (b->conn_sock >= 0 && (strcmp(b->channel_model->model_name, modelname) == 0)) {
|
||||
channel_desc_t *newmodel = new_channel_desc_scm(t->tx_num_channels,
|
||||
channel_desc_t *newmodel = new_channel_desc_scm(std::max(t->tx_num_channels, t->rx_num_channels),
|
||||
t->rx_num_channels,
|
||||
static_cast<SCM_t>(channelmod),
|
||||
t->sample_rate,
|
||||
|
||||
Reference in New Issue
Block a user