Fix function nr_get_prach_mu for L839
function returns mu of UL BWP if msg1-SubcarrierSpacing absent instead of asserting. The mu retured by this function is used to compute the slot number of PRACH. In case of long format, the slot number is as per UL mu.
This commit is contained in:
@@ -5266,7 +5266,9 @@ int get_FeedbackDisabled(NR_DownlinkHARQ_FeedbackDisabled_r17_t *downlinkHARQ_Fe
|
||||
return (downlinkHARQ_FeedbackDisabled_r17->buf[byte_index] >> (7 - bit_index)) & 1;
|
||||
}
|
||||
|
||||
int nr_get_prach_mu(const NR_MsgA_ConfigCommon_r16_t *msgacc, const NR_RACH_ConfigCommon_t *rach_ConfigCommon)
|
||||
int nr_get_prach_or_ul_mu(const NR_MsgA_ConfigCommon_r16_t *msgacc,
|
||||
const NR_RACH_ConfigCommon_t *rach_ConfigCommon,
|
||||
const int ul_mu)
|
||||
{
|
||||
int mu;
|
||||
|
||||
@@ -5278,7 +5280,8 @@ int nr_get_prach_mu(const NR_MsgA_ConfigCommon_r16_t *msgacc, const NR_RACH_Conf
|
||||
// Choose Subcarrier Spacing of configuration file of 4-Step
|
||||
mu = *rach_ConfigCommon->msg1_SubcarrierSpacing;
|
||||
} else
|
||||
AssertFatal(false, "PRACH subcarrier spacing mandatory present for L139, not supported otherwise\n");
|
||||
// Return invalid UL mu
|
||||
mu = ul_mu;
|
||||
|
||||
return mu;
|
||||
}
|
||||
|
||||
@@ -334,6 +334,6 @@ int get_nrofHARQ_ProcessesForPDSCH(const NR_UE_ServingCell_Info_t *sc_info);
|
||||
|
||||
int get_nrofHARQ_ProcessesForPUSCH(const NR_UE_ServingCell_Info_t *sc_info);
|
||||
|
||||
int nr_get_prach_mu(const NR_MsgA_ConfigCommon_r16_t *msgacc, const NR_RACH_ConfigCommon_t *rach_ConfigCommon);
|
||||
int nr_get_prach_or_ul_mu(const NR_MsgA_ConfigCommon_r16_t *msgacc, const NR_RACH_ConfigCommon_t *rach_ConfigCommon, const int ul_mu);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user