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

master
Francisco 4 years ago committed by Francisco Paisana
parent 295b5fe8fb
commit 597f993706

@ -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) 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"); 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); tpc_fsm.set_snr(ul_snr, ul_ch_code);
if (ul_ch_code == tpc::PUSCH_CODE) { if (ul_ch_code == tpc::PUSCH_CODE) {
ul_cqi_tti_rx = tti_rx; ul_cqi_tti_rx = tti_rx;

Loading…
Cancel
Save