From e46eeffe2addeedb8f0dfc63d723020b7726a313 Mon Sep 17 00:00:00 2001 From: Arash Sahbafard Date: Mon, 16 Oct 2023 18:08:55 +0200 Subject: [PATCH] There was a simple bug in detecting the channel models in rfsim which is fixed. modified: radio/rfsimulator/simulator.c --- radio/rfsimulator/simulator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radio/rfsimulator/simulator.c b/radio/rfsimulator/simulator.c index 9b38ab7026..c74a0fd55d 100644 --- a/radio/rfsimulator/simulator.c +++ b/radio/rfsimulator/simulator.c @@ -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; }