Prevent RedCap UEs to move to dedicated BWP
This commit is contained in:
@@ -3322,7 +3322,7 @@ bool prepare_initial_ul_rrc_message(gNB_MAC_INST *mac, NR_UE_info_t *UE)
|
|||||||
int CC_id = 0;
|
int CC_id = 0;
|
||||||
int srb_id = 1;
|
int srb_id = 1;
|
||||||
const NR_ServingCellConfigCommon_t *scc = mac->common_channels[CC_id].ServingCellConfigCommon;
|
const NR_ServingCellConfigCommon_t *scc = mac->common_channels[CC_id].ServingCellConfigCommon;
|
||||||
const NR_ServingCellConfig_t *sccd = mac->common_channels[CC_id].pre_ServingCellConfig;
|
const NR_ServingCellConfig_t *sccd = UE->is_redcap ? NULL : mac->common_channels[CC_id].pre_ServingCellConfig;
|
||||||
NR_CellGroupConfig_t *cellGroupConfig = get_initial_cellGroupConfig(UE->uid, scc, sccd, &mac->radio_config);
|
NR_CellGroupConfig_t *cellGroupConfig = get_initial_cellGroupConfig(UE->uid, scc, sccd, &mac->radio_config);
|
||||||
ASN_STRUCT_FREE(asn_DEF_NR_CellGroupConfig, UE->CellGroup);
|
ASN_STRUCT_FREE(asn_DEF_NR_CellGroupConfig, UE->CellGroup);
|
||||||
UE->CellGroup = cellGroupConfig;
|
UE->CellGroup = cellGroupConfig;
|
||||||
|
|||||||
@@ -351,6 +351,7 @@ static int nr_process_mac_pdu(instance_t module_idP,
|
|||||||
|
|
||||||
if (lcid == UL_SCH_LCID_CCCH_48_BITS_REDCAP) {
|
if (lcid == UL_SCH_LCID_CCCH_48_BITS_REDCAP) {
|
||||||
LOG_I(MAC, "UE with RNTI %04x is RedCap\n", UE->rnti);
|
LOG_I(MAC, "UE with RNTI %04x is RedCap\n", UE->rnti);
|
||||||
|
UE->is_redcap = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prepare_initial_ul_rrc_message(RC.nrmac[module_idP], UE)) {
|
if (prepare_initial_ul_rrc_message(RC.nrmac[module_idP], UE)) {
|
||||||
|
|||||||
@@ -783,6 +783,7 @@ typedef struct {
|
|||||||
float ul_thr_ue;
|
float ul_thr_ue;
|
||||||
float dl_thr_ue;
|
float dl_thr_ue;
|
||||||
long pdsch_HARQ_ACK_Codebook;
|
long pdsch_HARQ_ACK_Codebook;
|
||||||
|
bool is_redcap;
|
||||||
} NR_UE_info_t;
|
} NR_UE_info_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user