From 6c960da808d49c2f532f21fa3f776cd6778ca49e Mon Sep 17 00:00:00 2001 From: Xavier Arteaga Date: Thu, 13 Feb 2020 15:11:11 +0100 Subject: [PATCH] Fix UE's SR transmission --- lib/src/phy/phch/pucch_proc.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/src/phy/phch/pucch_proc.c b/lib/src/phy/phch/pucch_proc.c index d9059512e..8c86672b5 100644 --- a/lib/src/phy/phch/pucch_proc.c +++ b/lib/src/phy/phch/pucch_proc.c @@ -25,11 +25,12 @@ static bool pucch_proc_tx_sr(const srslte_uci_cfg_t* uci_cfg, const srslte_uci_value_t* uci_value) { // Check SR transmission - bool tx_sr = uci_cfg->is_scheduling_request_tti; if (uci_value) { - tx_sr |= uci_value->scheduling_request; + // If UCI value is provided, ignore scheduling request TTI condition + return uci_value->scheduling_request; } - return tx_sr; + + return uci_cfg->is_scheduling_request_tti; } srslte_pucch_format_t srslte_pucch_proc_select_format(const srslte_cell_t* cell,