diff --git a/lib/src/phy/phch/uci_nr.c b/lib/src/phy/phch/uci_nr.c index 6f862cf8f..b587a45d9 100644 --- a/lib/src/phy/phch/uci_nr.c +++ b/lib/src/phy/phch/uci_nr.c @@ -1061,13 +1061,13 @@ int srsran_uci_nr_encode_pusch_ack(srsran_uci_nr_t* q, const srsran_uci_value_nr_t* value, uint8_t* o) { - int A = cfg->o_ack; - // Check inputs if (q == NULL || cfg == NULL || value == NULL || o == NULL) { return SRSRAN_ERROR_INVALID_INPUTS; } + int A = cfg->o_ack; + // 6.3.2.1 UCI bit sequence generation // 6.3.2.1.1 HARQ-ACK bool has_csi_part2 = srsran_csi_has_part2(cfg->csi, cfg->nof_csi);