mirror of
https://gitlab.eurecom.fr/oai/openairinterface5g.git
synced 2026-07-13 04:30:28 +00:00
A UE RRCSetupRequest with establishmentCause in the spare range (10–15) could abort nr-softmodem: RRC asserted on cause >= NGAP_RRC_CAUSE_LAST, and cause 11 failed NGAP ASN.1 encode when passed through by index. NR RRC (TS 38.331) and NGAP RRCEstablishmentCause (TS 38.413 §9.3.1.111) do not share one integer namespace: spare values must not be sent as NGAP causes. Remove the RRC AssertFatal on causes. When building InitialUEMessage, map RRC indices 0–9 to the matching NGAP cause and map anything else to notAvailable, as specified for unmapped UE causes. Changes: - Drop establishment-cause range AssertFatal in rrc_gNB_send_NGAP_NAS_FIRST_REQ - Add rrc2ngap_establishment_cause() and use it for InitialUEMessage RRCEstablishmentCause - Remove redundant DevCheck on establishment_cause in ngap_gNB_handle_nas_first_req - Adopt mapping logic in rrc_gNB_send_NGAP_NAS_FIRST_REQ Closes: #127 Signed-off-by: Guido Casati <guido.casati@openairinterface.org>