improving handling of tdd_UL_DL_ConfigurationCommon absence when checking DL or UL slot

This commit is contained in:
francescomani
2023-08-04 10:01:56 +02:00
parent fe99f633d6
commit 75c2f9e5f8
4 changed files with 43 additions and 43 deletions
+2 -5
View File
@@ -328,9 +328,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
free_and_zero(ch_info);
}
bool default_dl = mac->tdd_UL_DL_ConfigurationCommon ? false : true;
if (default_dl ||
is_nr_DL_slot(mac->tdd_UL_DL_ConfigurationCommon,
if (is_nr_DL_slot(mac->tdd_UL_DL_ConfigurationCommon,
ul_info.slot_rx)) {
memset(&mac->dl_info, 0, sizeof(mac->dl_info));
mac->dl_info.cc_id = CC_id;
@@ -345,8 +343,7 @@ static void *NRUE_phy_stub_standalone_pnf_task(void *arg)
if (pthread_mutex_unlock(&mac->mutex_dl_info)) abort();
if (!default_dl &&
is_nr_UL_slot(mac->tdd_UL_DL_ConfigurationCommon,
if (is_nr_UL_slot(mac->tdd_UL_DL_ConfigurationCommon,
ul_info.slot_tx, mac->frame_type)) {
LOG_D(NR_MAC, "Slot %d. calling nr_ue_ul_ind()\n", ul_info.slot_tx);
nr_ue_ul_scheduler(&ul_info);