There was a simple bug in detecting the channel models in rfsim which is fixed.

modified:   radio/rfsimulator/simulator.c
This commit is contained in:
Arash Sahbafard
2023-10-16 18:08:55 +02:00
parent a62bdf36de
commit e46eeffe2a
+1 -1
View File
@@ -233,7 +233,7 @@ static int allocCirBuf(rfsimulator_state_t *bridge, int sock)
}
char *modelname = (bridge->role == SIMU_ROLE_SERVER) ? "rfsimu_channel_ue0" : "rfsimu_channel_enB0";
ptr->channel_model = find_channel_desc_fromname(modelname); // path_loss in dB
if (ptr->channel_model != NULL) {
if (!ptr->channel_model) {
LOG_E(HW, "Channel model %s not found, check config file\n", modelname);
return -1;
}