mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
Previously, is_tdd_ul_symbol() and is_tdd_dl_symbol() returned true unconditionally in FDD. This is correct for UL/DL presence (in FDD, every symbol carries both UL and DL), but it breaks logic that relies on the TDD property that a UL symbol is not a DL symbol (and vice versa), e.g. the computation of the last DL symbol in mixed slots. In FDD, this assumption does not hold, leading to incorrect behavior. Remove the FDD shortcut from the TDD symbol helpers so they strictly answer the TDD question, and make the FDD case explicit at each function call (nFrameDuplexType != XRAN_FDD && ...). This harmonizes the TDD and FDD paths: in FDD, no slot/symbol is skipped on RX or TX, and guard-slot handling only applies to TDD. Signed-off-by: Karim Boutiba <karim.boutiba@openairinterface.org>