Skip to content

Commit fa56836

Browse files
srs-codebotasaezper
authored andcommitted
Merge branch 'next' into agpl_next
2 parents 921f174 + 737c5ae commit fa56836

File tree

2 files changed

+7
-19
lines changed

2 files changed

+7
-19
lines changed

lib/src/phy/ch_estimation/chest_dl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ static float get_rsrp_neighbour_port(srsran_chest_dl_t* q, uint32_t port)
928928
static float get_rsrp(srsran_chest_dl_t* q)
929929
{
930930
float max = -1e9;
931-
for (int i = 0; i < q->nof_rx_antennas; ++i) {
931+
for (int i = 0; i < q->cell.nof_ports; ++i) {
932932
float v = get_rsrp_port(q, i);
933933
if (v > max) {
934934
max = v;

srsue/src/stack/rrc_nr/rrc_nr.cc

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,15 +1240,9 @@ bool rrc_nr::apply_sp_cell_init_dl_pdsch(const asn1::rrc_nr::pdsch_cfg_s& pdsch_
12401240

12411241
if (pdsch_cfg.dmrs_dl_for_pdsch_map_type_a_present) {
12421242
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;
12521246
} else {
12531247
logger.warning("Option dmrs_dl_for_pdsch_map_type_a not of type setup");
12541248
return false;
@@ -1701,15 +1695,9 @@ bool rrc_nr::apply_sp_cell_ded_ul_pusch(const asn1::rrc_nr::pusch_cfg_s& pusch_c
17011695

17021696
if (pusch_cfg.dmrs_ul_for_pusch_map_type_a_present) {
17031697
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;
17131701
} else {
17141702
logger.warning("Option dmrs_ul_for_pusch_map_type_a not of type setup");
17151703
return false;

0 commit comments

Comments
 (0)