Adding different shifts for CWs coming from dif constellations

This commit is contained in:
lukashov
2016-02-22 23:39:36 +01:00
parent 193ab717fa
commit dbf587a515
2 changed files with 10 additions and 10 deletions
@@ -418,8 +418,8 @@ int rx_pdsch(PHY_VARS_UE *phy_vars_ue,
if (rx_type>rx_standard) {
// Shifts are needed to avoid tails in SNR/BLER curves.
// LUT will be introduced with mcs-dependent shift
avg_0[0] = (log2_approx(avg_0[0])/2) -13 + interf_unaw_shift;
avg_1[0] = (log2_approx(avg_1[0])/2) -13 + interf_unaw_shift;
avg_0[0] = (log2_approx(avg_0[0])/2) -13 + interf_unaw_shift0;
avg_1[0] = (log2_approx(avg_1[0])/2) -13 + interf_unaw_shift1;
lte_ue_pdsch_vars[eNB_id]->log2_maxh0 = cmax(avg_0[0],0);
lte_ue_pdsch_vars[eNB_id]->log2_maxh1 = cmax(avg_1[0],0);
@@ -430,8 +430,8 @@ int rx_pdsch(PHY_VARS_UE *phy_vars_ue,
else {
// Shifts are needed to avoid tails in SNR/BLER curves.
// LUT will be introduced with mcs-dependent shift
avg_0[0] = (log2_approx(avg_0[0])/2) - 13 + interf_unaw_shift;
avg_1[0] = (log2_approx(avg_1[0])/2) - 13 + interf_unaw_shift;
avg_0[0] = (log2_approx(avg_0[0])/2) - 13 + interf_unaw_shift0;
avg_1[0] = (log2_approx(avg_1[0])/2) - 13 + interf_unaw_shift1;
lte_ue_pdsch_vars[eNB_id]->log2_maxh0 = cmax(avg_0[0],0);
lte_ue_pdsch_vars[eNB_id]->log2_maxh1 = cmax(avg_1[0],0);
//printf("TM4 I-UA log2_maxh0 = %d\n", lte_ue_pdsch_vars[eNB_id]->log2_maxh0);