mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
fix (gNB RRC): skip CU-UP notify on re-estab without DRBs
Avoid E1 bearer modification when the UE has no DRBs left (e.g. after PDU session release). (TS 38.331 clause 5.3.5.6.5 DRB with reestablishPDCP) Changes: - cuup_notify_reestablishment(): return early if drbs is empty Fixes: #148 Signed-off-by: Guido Casati <guido.casati@openairinterface.org>
This commit is contained in:
@@ -1092,9 +1092,8 @@ static DRB_nGRAN_to_mod_t get_e1_drb_mod_reestablishment(const drb_t *drb, const
|
||||
return drb_e1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Notify E1 re-establishment to CU-UP
|
||||
*/
|
||||
/** @brief Re-establish DRB PDCP on CU-UP (TS 38.331 clause 5.3.5.6.5, TS 38.463 bearer mod).
|
||||
* Sends pDCP_Reestablishment and updated KUP keys after KgNB derivation. */
|
||||
static void cuup_notify_reestablishment(gNB_RRC_INST *rrc, gNB_RRC_UE_t *ue_p)
|
||||
{
|
||||
// Quit if no CU-UP is associated
|
||||
@@ -1102,6 +1101,10 @@ static void cuup_notify_reestablishment(gNB_RRC_INST *rrc, gNB_RRC_UE_t *ue_p)
|
||||
return;
|
||||
}
|
||||
|
||||
/* TS 38.331 §5.3.5.6.5: no DRB/PDU session (e.g. after release) means nothing to do. */
|
||||
if (seq_arr_size(&ue_p->drbs) == 0)
|
||||
return;
|
||||
|
||||
e1ap_bearer_mod_req_t req = {
|
||||
.gNB_cu_cp_ue_id = ue_p->rrc_ue_id,
|
||||
.gNB_cu_up_ue_id = ue_p->rrc_ue_id,
|
||||
|
||||
Reference in New Issue
Block a user