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,24 +637,25 @@ int phch_worker::decode_pucch()
} }
char cqi_ri_str[64]; char cqi_ri_str[64];
if (uci_data.uci_ri_len && needs_ri) { if (srslte_pucch_get_last_corr(&enb_ul.pucch) > PUCCH_RL_CORR_TH) {
phy->mac->ri_info(tti_rx, rnti, uci_data.uci_ri); if (uci_data.uci_ri_len && needs_ri) {
sprintf(cqi_ri_str, ", ri=%d", uci_data.uci_ri); phy->mac->ri_info(tti_rx, rnti, uci_data.uci_ri);
} else if (uci_data.uci_cqi_len && needs_cqi) { sprintf(cqi_ri_str, ", ri=%d", uci_data.uci_ri);
srslte_cqi_value_unpack(uci_data.uci_cqi, &cqi_value); } else if (uci_data.uci_cqi_len && needs_cqi) {
phy->mac->cqi_info(tti_rx, rnti, cqi_value.wideband.wideband_cqi); srslte_cqi_value_unpack(uci_data.uci_cqi, &cqi_value);
sprintf(cqi_ri_str, ", cqi=%d", cqi_value.wideband.wideband_cqi); phy->mac->cqi_info(tti_rx, rnti, cqi_value.wideband.wideband_cqi);
sprintf(cqi_ri_str, ", cqi=%d", cqi_value.wideband.wideband_cqi);
if (uci_data.uci_pmi_len) { if (uci_data.uci_pmi_len) {
uint8_t *ptr = uci_data.uci_pmi; uint32_t packed_pmi = uci_data.uci_pmi[0];
uint32_t packed_pmi = uci_data.uci_pmi[0]; if (uci_data.uci_pmi_len > 1) {
if (uci_data.uci_pmi_len > 1) { packed_pmi = (packed_pmi << 1) + uci_data.uci_pmi[1];
packed_pmi = (packed_pmi << 1) + uci_data.uci_pmi[1]; }
phy->mac->pmi_info(tti_rx, rnti, packed_pmi);
sprintf(cqi_ri_str, "%s, pmi=%c", cqi_ri_str, packed_pmi + 0x30);
} }
phy->mac->pmi_info(tti_rx, rnti, packed_pmi);
sprintf(cqi_ri_str, "%s, pmi=%c", cqi_ri_str, packed_pmi + 0x30);
}
}
} }
log_h->info("PUCCH: rnti=0x%x, corr=%.2f, n_pucch=%d, n_prb=%d%s%s%s%s\n", log_h->info("PUCCH: rnti=0x%x, corr=%.2f, n_pucch=%d, n_prb=%d%s%s%s%s\n",
rnti, rnti,