sched,improvement: filter out Msg3 UL SNR estimates from the TPC control loop

This commit is contained in:
Francisco 2021-06-02 11:33:47 +01:00 committed by Francisco Paisana
parent 295b5fe8fb
commit 597f993706
1 changed files with 4 additions and 0 deletions

View File

@ -242,6 +242,10 @@ int sched_ue_cell::set_ack_info(tti_point tti_rx, uint32_t tb_idx, bool ack)
int sched_ue_cell::set_ul_snr(tti_point tti_rx, float ul_snr, uint32_t ul_ch_code)
{
CHECK_VALID_CC("UL SNR estimate");
if (ue_cfg->ue_bearers[1].direction == sched_interface::ue_bearer_cfg_t::IDLE) {
// Ignore Msg3 SNR samples as Msg3 uses a separate power control loop
return SRSRAN_SUCCESS;
}
tpc_fsm.set_snr(ul_snr, ul_ch_code);
if (ul_ch_code == tpc::PUSCH_CODE) {
ul_cqi_tti_rx = tti_rx;