Commit 58b36aa2 authored by Parminder Singh's avatar Parminder Singh

Added PTRS RRC config validation for DL/UL-SIM uni tests

parent 87ada841
...@@ -150,6 +150,7 @@ int is_x2ap_enabled(void) ...@@ -150,6 +150,7 @@ int is_x2ap_enabled(void)
openair0_config_t openair0_cfg[MAX_CARDS]; openair0_config_t openair0_cfg[MAX_CARDS];
void update_ptrs_config(NR_CellGroupConfig_t *secondaryCellGroup, uint16_t *rbSize, uint8_t *mcsIndex,int8_t *ptrs_arg); void update_ptrs_config(NR_CellGroupConfig_t *secondaryCellGroup, uint16_t *rbSize, uint8_t *mcsIndex,int8_t *ptrs_arg);
void update_dmrs_config(NR_CellGroupConfig_t *scg,PHY_VARS_NR_UE *ue, int8_t* dmrs_arg); void update_dmrs_config(NR_CellGroupConfig_t *scg,PHY_VARS_NR_UE *ue, int8_t* dmrs_arg);
extern void fix_scd(NR_ServingCellConfig_t *scd);// forward declaration
/* specific dlsim DL preprocessor: uses rbStart/rbSize/mcs from command line of /* specific dlsim DL preprocessor: uses rbStart/rbSize/mcs from command line of
dlsim, does not search for CCE/PUCCH occasion but simply sets to 0 */ dlsim, does not search for CCE/PUCCH occasion but simply sets to 0 */
...@@ -621,6 +622,8 @@ int main(int argc, char **argv) ...@@ -621,6 +622,8 @@ int main(int argc, char **argv)
n_tx, n_tx,
0); 0);
/* RRC parameter validation for secondaryCellGroup */
fix_scd(scd);
/* -U option modify DMRS */ /* -U option modify DMRS */
if(modify_dmrs) { if(modify_dmrs) {
update_dmrs_config(secondaryCellGroup, NULL,dmrs_arg); update_dmrs_config(secondaryCellGroup, NULL,dmrs_arg);
......
...@@ -120,6 +120,8 @@ rrc_gNB_process_GTPV1U_CREATE_TUNNEL_RESP( ...@@ -120,6 +120,8 @@ rrc_gNB_process_GTPV1U_CREATE_TUNNEL_RESP(
return 0; return 0;
} }
extern void fix_scd(NR_ServingCellConfig_t *scd);// forward declaration
// Dummy function to avoid linking error at compilation of nr-ulsim // Dummy function to avoid linking error at compilation of nr-ulsim
int is_x2ap_enabled(void) int is_x2ap_enabled(void)
{ {
...@@ -586,6 +588,9 @@ int main(int argc, char **argv) ...@@ -586,6 +588,9 @@ int main(int argc, char **argv)
// xer_fprint(stdout, &asn_DEF_NR_CellGroupConfig, (const void*)secondaryCellGroup); // xer_fprint(stdout, &asn_DEF_NR_CellGroupConfig, (const void*)secondaryCellGroup);
/* RRC parameter validation for secondaryCellGroup */
fix_scd(scd);
AssertFatal((gNB->if_inst = NR_IF_Module_init(0))!=NULL,"Cannot register interface"); AssertFatal((gNB->if_inst = NR_IF_Module_init(0))!=NULL,"Cannot register interface");
gNB->if_inst->NR_PHY_config_req = nr_phy_config_request; gNB->if_inst->NR_PHY_config_req = nr_phy_config_request;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment