eNB: Do not consider CQI/RI if PUCCH has low correlation

This commit is contained in:
Xavier Arteaga 2017-11-09 15:08:46 +01:00
parent 75957d41d7
commit 69682d488b
1 changed files with 16 additions and 15 deletions

View File

@ -637,6 +637,7 @@ int phch_worker::decode_pucch()
}
char cqi_ri_str[64];
if (srslte_pucch_get_last_corr(&enb_ul.pucch) > PUCCH_RL_CORR_TH) {
if (uci_data.uci_ri_len && needs_ri) {
phy->mac->ri_info(tti_rx, rnti, uci_data.uci_ri);
sprintf(cqi_ri_str, ", ri=%d", uci_data.uci_ri);
@ -646,7 +647,6 @@ int phch_worker::decode_pucch()
sprintf(cqi_ri_str, ", cqi=%d", cqi_value.wideband.wideband_cqi);
if (uci_data.uci_pmi_len) {
uint8_t *ptr = uci_data.uci_pmi;
uint32_t packed_pmi = uci_data.uci_pmi[0];
if (uci_data.uci_pmi_len > 1) {
packed_pmi = (packed_pmi << 1) + uci_data.uci_pmi[1];
@ -656,6 +656,7 @@ int phch_worker::decode_pucch()
}
}
}
log_h->info("PUCCH: rnti=0x%x, corr=%.2f, n_pucch=%d, n_prb=%d%s%s%s%s\n",
rnti,
srslte_pucch_get_last_corr(&enb_ul.pucch),