Fix: TPC control with average SNR value.
(cherry picked from commit 243c90f647a1f97dc3a1486502dc6263b5705e39)
This commit is contained in:
committed by
shono.takafumi
parent
2edcf2647c
commit
dbb8a8924e
@@ -2216,6 +2216,7 @@ add_new_ue(module_id_t mod_idP,
|
|||||||
sizeof(eNB_UE_STATS));
|
sizeof(eNB_UE_STATS));
|
||||||
UE_info->UE_sched_ctrl[UE_id].ue_reestablishment_reject_timer = 0;
|
UE_info->UE_sched_ctrl[UE_id].ue_reestablishment_reject_timer = 0;
|
||||||
UE_info->UE_sched_ctrl[UE_id].ta_update = 31;
|
UE_info->UE_sched_ctrl[UE_id].ta_update = 31;
|
||||||
|
UE_info->UE_sched_ctrl[UE_id].pusch_snr[cc_idP] = 0;
|
||||||
|
|
||||||
for (j = 0; j < 8; j++) {
|
for (j = 0; j < 8; j++) {
|
||||||
UE_info->UE_template[cc_idP][UE_id].oldNDI[j] = 0;
|
UE_info->UE_template[cc_idP][UE_id].oldNDI[j] = 0;
|
||||||
|
|||||||
@@ -166,7 +166,14 @@ rx_sdu(const module_id_t enb_mod_idP,
|
|||||||
* maybe it's even not correct at all?
|
* maybe it's even not correct at all?
|
||||||
*/
|
*/
|
||||||
UE_scheduling_control->ta_update = (UE_scheduling_control->ta_update * 3 + timing_advance) / 4;
|
UE_scheduling_control->ta_update = (UE_scheduling_control->ta_update * 3 + timing_advance) / 4;
|
||||||
|
|
||||||
|
if(UE_scheduling_control->pusch_snr[CC_idP] == 0) {
|
||||||
UE_scheduling_control->pusch_snr[CC_idP] = ul_cqi;
|
UE_scheduling_control->pusch_snr[CC_idP] = ul_cqi;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
UE_scheduling_control->pusch_snr[CC_idP] = (UE_scheduling_control->pusch_snr[CC_idP] * 3 + ul_cqi) / 4;
|
||||||
|
}
|
||||||
|
|
||||||
UE_scheduling_control->ul_consecutive_errors = 0;
|
UE_scheduling_control->ul_consecutive_errors = 0;
|
||||||
first_rb = UE_template_ptr->first_rb_ul[harq_pid];
|
first_rb = UE_template_ptr->first_rb_ul[harq_pid];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user