mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
F1 Handover: do not trigger when no DRB is configured
Prevent triggering F1 handover for UEs without any DRB, to align with 3GPP TS 38.473 clause 8.3.1.2 and avoid initiating an invalid UE Context Setup Request in the F1 handover flow. Changes: - Add a preliminary check in `nr_rrc_trigger_f1_ho()` to verify at least one DRB exists in ue->drbs - Abort F1 HO trigger early when no DRB is present, with warning
This commit is contained in:
@@ -272,6 +272,12 @@ void nr_rrc_trigger_f1_ho(gNB_RRC_INST *rrc,
|
||||
DevAssert(rrc != NULL);
|
||||
DevAssert(ue != NULL);
|
||||
|
||||
/* 3GPP TS 38.473, clause 8.3.1.2: The gNB-CU shall only initiate UeContextSetupRequest
|
||||
* for handover when at least one DRB is setup for the UE. */
|
||||
if (!seq_arr_size(&ue->drbs)) {
|
||||
LOG_W(NR_RRC, "UE %u: no DRB configured, cannot trigger handover\n", ue->rrc_ue_id);
|
||||
return;
|
||||
}
|
||||
uint8_t buf[NR_RRC_BUF_SIZE];
|
||||
int size = do_NR_HandoverPreparationInformation(ue->ue_cap_buffer.buf, ue->ue_cap_buffer.len, buf, sizeof buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user