From f93a71977fccf561a9a6d8143190d1c5c141faa8 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Fri, 10 Oct 2025 17:46:14 +0200 Subject: [PATCH] Add band validation in neighbor cell configuration - Add band mismatch check in valid_du_in_neighbour_configs function - Ensures neighbor cell band matches serving cell band - Prevents invalid neighbor configurations for handover --- openair2/RRC/NR/rrc_gNB_du.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openair2/RRC/NR/rrc_gNB_du.c b/openair2/RRC/NR/rrc_gNB_du.c index edf6f19164..246df60626 100644 --- a/openair2/RRC/NR/rrc_gNB_du.c +++ b/openair2/RRC/NR/rrc_gNB_du.c @@ -257,6 +257,11 @@ static bool valid_du_in_neighbour_configs(const seq_arr_t *neighbour_cell_config nc->absoluteFrequencySSB); return false; } + // Check neighbour band + if (get_dl_band(cell) != nc->band) { + LOG_W(NR_RRC, "Cell %ld in neighbour config: Band mismatch (%d vs %d)\n", cell->nr_cellid, get_dl_band(cell), nc->band); + return false; + } if (get_ssb_scs(cell) != nc->subcarrierSpacing) { LOG_W(NR_RRC, "Cell %ld in neighbour config: SCS mismatch (%d vs %d)\n",