Fix: smooth ULSCH AMC and TPC control.

(cherry picked from commit 56720c68864f6b04409deb00676e59a41c8f050b)
This commit is contained in:
Haruki NAOI
2020-11-27 10:07:56 +09:00
committed by shono.takafumi
parent b573fd4dbd
commit 52dfba49cd
9 changed files with 39 additions and 50 deletions
+4
View File
@@ -1606,6 +1606,10 @@ void fill_rx_indication(PHY_VARS_eNB *eNB,
pdu->rx_indication_rel8.timing_advance = timing_advance_update;
// estimate UL_CQI for MAC (from antenna port 0 only)
int SNRtimes10 = dB_fixed_times10(eNB->pusch_vars[UE_id]->ulsch_power[0]) - dB_fixed_times10(eNB->pusch_vars[UE_id]->ulsch_interference_power[0]);
if(dB_fixed_times10(eNB->pusch_vars[UE_id]->ulsch_power[0]) > 500) {
SNRtimes10 = 300;
}
if (SNRtimes10 < -640)
pdu->rx_indication_rel8.ul_cqi = 0;