Remove redundant code
This commit is contained in:
@@ -397,21 +397,6 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
|
|||||||
NR_UE_info_t *UE_info = &RC.nrmac[Mod_idP]->UE_info;
|
NR_UE_info_t *UE_info = &RC.nrmac[Mod_idP]->UE_info;
|
||||||
if (add_ue == 1 && get_softmodem_params()->phy_test) {
|
if (add_ue == 1 && get_softmodem_params()->phy_test) {
|
||||||
const int UE_id = add_new_nr_ue(Mod_idP, rnti, secondaryCellGroup);
|
const int UE_id = add_new_nr_ue(Mod_idP, rnti, secondaryCellGroup);
|
||||||
UE_info->secondaryCellGroup[UE_id] = secondaryCellGroup;
|
|
||||||
compute_csi_bitlen (secondaryCellGroup->spCellConfig->spCellConfigDedicated->csi_MeasConfig->choice.setup, UE_info, UE_id, Mod_idP);
|
|
||||||
struct NR_ServingCellConfig__downlinkBWP_ToAddModList *bwpList =
|
|
||||||
secondaryCellGroup->spCellConfig->spCellConfigDedicated->downlinkBWP_ToAddModList;
|
|
||||||
AssertFatal(bwpList->list.count == 1,
|
|
||||||
"downlinkBWP_ToAddModList has %d BWP!\n",
|
|
||||||
bwpList->list.count);
|
|
||||||
const int bwp_id = 1;
|
|
||||||
UE_info->UE_sched_ctrl[UE_id].active_bwp = bwpList->list.array[bwp_id - 1];
|
|
||||||
struct NR_UplinkConfig__uplinkBWP_ToAddModList *ubwpList =
|
|
||||||
secondaryCellGroup->spCellConfig->spCellConfigDedicated->uplinkConfig->uplinkBWP_ToAddModList;
|
|
||||||
AssertFatal(ubwpList->list.count == 1,
|
|
||||||
"uplinkBWP_ToAddModList has %d BWP!\n",
|
|
||||||
ubwpList->list.count);
|
|
||||||
UE_info->UE_sched_ctrl[UE_id].active_ubwp = ubwpList->list.array[bwp_id - 1];
|
|
||||||
LOG_I(PHY,"Added new UE_id %d/%x with initial secondaryCellGroup\n",UE_id,rnti);
|
LOG_I(PHY,"Added new UE_id %d/%x with initial secondaryCellGroup\n",UE_id,rnti);
|
||||||
} else if (add_ue == 1 && !get_softmodem_params()->phy_test) {
|
} else if (add_ue == 1 && !get_softmodem_params()->phy_test) {
|
||||||
const int CC_id = 0;
|
const int CC_id = 0;
|
||||||
|
|||||||
@@ -474,8 +474,6 @@ void nr_rx_sdu(const module_id_t gnb_mod_idP,
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
const int UE_id = add_new_nr_ue(gnb_mod_idP, ra->rnti, ra->secondaryCellGroup);
|
const int UE_id = add_new_nr_ue(gnb_mod_idP, ra->rnti, ra->secondaryCellGroup);
|
||||||
UE_info->secondaryCellGroup[UE_id] = ra->secondaryCellGroup;
|
|
||||||
compute_csi_bitlen (ra->secondaryCellGroup->spCellConfig->spCellConfigDedicated->csi_MeasConfig->choice.setup, UE_info, UE_id, gnb_mod_idP);
|
|
||||||
UE_info->UE_beam_index[UE_id] = ra->beam_id;
|
UE_info->UE_beam_index[UE_id] = ra->beam_id;
|
||||||
LOG_I(MAC,
|
LOG_I(MAC,
|
||||||
"[gNB %d][RAPROC] PUSCH with TC_RNTI %x received correctly, "
|
"[gNB %d][RAPROC] PUSCH with TC_RNTI %x received correctly, "
|
||||||
|
|||||||
Reference in New Issue
Block a user