From ec82ddea38fe302f6a88e0c5e5d027fbfa2fff21 Mon Sep 17 00:00:00 2001 From: Robert Schmidt Date: Sun, 3 Apr 2022 19:16:29 +0200 Subject: [PATCH] Don't call calculate_preferred_dl_tda() in do-ra mode In --do-ra mode, calculate_preferred_dl_tda() would be called without a BWP. Then, get_searchspace() would search in the scc, leading to a segfault. Therefore, don't call calculate_preferred_dl_tda() in do-ra mode. --- openair2/LAYER2/NR_MAC_gNB/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/config.c b/openair2/LAYER2/NR_MAC_gNB/config.c index 04ee5f3385..9ffec4a13b 100644 --- a/openair2/LAYER2/NR_MAC_gNB/config.c +++ b/openair2/LAYER2/NR_MAC_gNB/config.c @@ -574,7 +574,7 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP, if (CellGroup) { - if (!get_softmodem_params()->phy_test) { + if (!get_softmodem_params()->phy_test && !get_softmodem_params()->do_ra) { calculate_preferred_dl_tda(Mod_idP, NULL); }