mirror of https://github.com/PentHertz/srsLTE.git
UE-PHY: Skip PUCCH-NR transmission if there is no PUCCH resource available
This commit is contained in:
parent
26f3f6109b
commit
ace6026d24
|
@ -669,6 +669,21 @@ bool cc_worker::work_ul()
|
|||
phy.set_ul_metrics(ul_m);
|
||||
|
||||
} else if (srsran_uci_nr_total_bits(&uci_data.cfg) > 0) {
|
||||
// Currently, default PUCCH is not supported, in this case log it and pretend no UCI was available
|
||||
if (not cfg.pucch.enabled) {
|
||||
if (logger.info.enabled()) {
|
||||
std::array<char, 512> str;
|
||||
srsran_uci_nr_info(&uci_data, str.data(), str.size());
|
||||
logger.info(
|
||||
"PUCCH: No PUCCH resource to transmit UCI cc=%d, %s, tti_tx=%d", cc_idx, str.data(), ul_slot_cfg.idx);
|
||||
}
|
||||
|
||||
// No NR signal shall be transmitted
|
||||
srsran_vec_cf_zero(tx_buffer[0], ue_ul.ifft.sf_sz);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// Get PUCCH resource
|
||||
srsran_pucch_nr_resource_t resource = {};
|
||||
if (srsran_ra_ul_nr_pucch_resource(&cfg.pucch, &uci_data.cfg, &resource) < SRSRAN_SUCCESS) {
|
||||
|
|
Loading…
Reference in New Issue