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
This commit is contained in:
Guido Casati
2025-10-15 20:06:15 +02:00
committed by Robert Schmidt
parent 8c85acbba6
commit f93a71977f
+5
View File
@@ -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",