Commit cea71b47 authored by Francesco Mani's avatar Francesco Mani

fixes for csi-rs amplitude

parent dde3e879
...@@ -44,7 +44,7 @@ void nr_generate_csi_rs(PHY_VARS_gNB *gNB, ...@@ -44,7 +44,7 @@ void nr_generate_csi_rs(PHY_VARS_gNB *gNB,
int wf, wt, lp, kp, symb; int wf, wt, lp, kp, symb;
uint8_t fi = 0; uint8_t fi = 0;
double rho, alpha; double rho, alpha;
uint32_t beta; uint32_t beta = amp;
AssertFatal(b!=0, "Invalid CSI frequency domain mapping: no bit selected in bitmap\n"); AssertFatal(b!=0, "Invalid CSI frequency domain mapping: no bit selected in bitmap\n");
......
...@@ -1937,6 +1937,8 @@ void nr_csirs_scheduling(int Mod_idP, ...@@ -1937,6 +1937,8 @@ void nr_csirs_scheduling(int Mod_idP,
csirs_pdu_rel15->power_control_offset = nzpcsi->powerControlOffset + 8; csirs_pdu_rel15->power_control_offset = nzpcsi->powerControlOffset + 8;
if (nzpcsi->powerControlOffsetSS) if (nzpcsi->powerControlOffsetSS)
csirs_pdu_rel15->power_control_offset_ss = *nzpcsi->powerControlOffsetSS; csirs_pdu_rel15->power_control_offset_ss = *nzpcsi->powerControlOffsetSS;
else
csirs_pdu_rel15->power_control_offset_ss = 1; // 0 dB
switch(resourceMapping.frequencyDomainAllocation.present){ switch(resourceMapping.frequencyDomainAllocation.present){
case NR_CSI_RS_ResourceMapping__frequencyDomainAllocation_PR_row1: case NR_CSI_RS_ResourceMapping__frequencyDomainAllocation_PR_row1:
csirs_pdu_rel15->row = 1; csirs_pdu_rel15->row = 1;
......
...@@ -1060,7 +1060,8 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco ...@@ -1060,7 +1060,8 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
resourceMapping.freqBand.nrofRBs = 104; resourceMapping.freqBand.nrofRBs = 104;
nzpcsi0->resourceMapping = resourceMapping; nzpcsi0->resourceMapping = resourceMapping;
nzpcsi0->powerControlOffset = 0; nzpcsi0->powerControlOffset = 0;
nzpcsi0->powerControlOffsetSS = NULL; nzpcsi0->powerControlOffsetSS=calloc(1,sizeof(*nzpcsi0->powerControlOffsetSS));
*nzpcsi0->powerControlOffsetSS = NR_NZP_CSI_RS_Resource__powerControlOffsetSS_db0;
nzpcsi0->scramblingID = 50; nzpcsi0->scramblingID = 50;
nzpcsi0->periodicityAndOffset = calloc(1,sizeof(*nzpcsi0->periodicityAndOffset)); nzpcsi0->periodicityAndOffset = calloc(1,sizeof(*nzpcsi0->periodicityAndOffset));
nzpcsi0->periodicityAndOffset->present = NR_CSI_ResourcePeriodicityAndOffset_PR_slots320; nzpcsi0->periodicityAndOffset->present = NR_CSI_ResourcePeriodicityAndOffset_PR_slots320;
......
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