@@ -1240,15 +1240,9 @@ bool rrc_nr::apply_sp_cell_init_dl_pdsch(const asn1::rrc_nr::pdsch_cfg_s& pdsch_
1240
1240
1241
1241
if (pdsch_cfg.dmrs_dl_for_pdsch_map_type_a_present ) {
1242
1242
if (pdsch_cfg.dmrs_dl_for_pdsch_map_type_a .type () == setup_release_c<dmrs_dl_cfg_s>::types_opts::setup) {
1243
- srsran_dmrs_sch_add_pos_t srsran_dmrs_sch_add_pos;
1244
- if (make_phy_dmrs_dl_additional_pos (pdsch_cfg.dmrs_dl_for_pdsch_map_type_a .setup (), &srsran_dmrs_sch_add_pos) ==
1245
- true ) {
1246
- phy_cfg.pdsch .dmrs_typeA .additional_pos = srsran_dmrs_sch_add_pos;
1247
- phy_cfg.pdsch .dmrs_typeA .present = true ;
1248
- } else {
1249
- logger.warning (" Warning while build srsran_dmrs_sch_add_pos structure" );
1250
- return false ;
1251
- }
1243
+ // See TS 38.331, DMRS-DownlinkConfig. Also, see TS 38.214, 5.1.6.2 - DM-RS reception procedure.
1244
+ phy_cfg.pdsch .dmrs_typeA .additional_pos = srsran_dmrs_sch_add_pos_2;
1245
+ phy_cfg.pdsch .dmrs_typeA .present = true ;
1252
1246
} else {
1253
1247
logger.warning (" Option dmrs_dl_for_pdsch_map_type_a not of type setup" );
1254
1248
return false ;
@@ -1701,15 +1695,9 @@ bool rrc_nr::apply_sp_cell_ded_ul_pusch(const asn1::rrc_nr::pusch_cfg_s& pusch_c
1701
1695
1702
1696
if (pusch_cfg.dmrs_ul_for_pusch_map_type_a_present ) {
1703
1697
if (pusch_cfg.dmrs_ul_for_pusch_map_type_a .type () == setup_release_c<dmrs_ul_cfg_s>::types_opts::setup) {
1704
- srsran_dmrs_sch_add_pos_t srsran_dmrs_sch_add_pos;
1705
- if (make_phy_dmrs_ul_additional_pos (pusch_cfg.dmrs_ul_for_pusch_map_type_a .setup (), &srsran_dmrs_sch_add_pos) ==
1706
- true ) {
1707
- phy_cfg.pusch .dmrs_typeA .additional_pos = srsran_dmrs_sch_add_pos;
1708
- phy_cfg.pusch .dmrs_typeA .present = true ;
1709
- } else {
1710
- logger.warning (" Warning while build srsran_dmrs_sch_add_pos structure" );
1711
- return false ;
1712
- }
1698
+ // // See TS 38.331, DMRS-UplinkConfig. Also, see TS 38.214, 6.2.2 - UE DM-RS transmission procedure.
1699
+ phy_cfg.pusch .dmrs_typeA .additional_pos = srsran_dmrs_sch_add_pos_2;
1700
+ phy_cfg.pusch .dmrs_typeA .present = true ;
1713
1701
} else {
1714
1702
logger.warning (" Option dmrs_ul_for_pusch_map_type_a not of type setup" );
1715
1703
return false ;
0 commit comments