Duplicated NAS message in RRC Reconfiguration to UE
I am currently testing the OAI gNB with an UE emulator, and have been able to connect multiple UE instances to the gNB. However, with release 2024.w05 (and onwards), the UE's keep getting released after RRC reconfiguration (during PDU session setup). The release was triggered by a duplicated Dedicated NAS Message in RRC Configuration, causing the UE emulator to report protocol error and initiated the UE release. When I examine the OAI code, I noticed there are two calls to add ASN1c Sequence (line 652 and 656) to dedicatedNAS_MessageList in
rrc_gNB_generate_dedicatedRRCReconfiguration() in openair/RRC/NR/rrc_gNB.c
After I removed one of the sequence add, the UE emulator can then connect to gNB successfully.