upon starting the RRC Security Mode command. This allows the gNB to
pass this message only after the SM procedure is complete.
Also made sure that the RRC notifies the NGAP upon the end of the
reconfiguration procedure, to make sure that the NGAP sends the UE
context setup response.
The SecurityModeCommand procedure was previously initiated by the
RRCSetupComplete msg. However, it should be trigger by the NGAP
through the InitialContextSetupRequest msg.
This commit implements this change and fills in the function of
the NGAP interface that starts the SecurityModeCommand procedure
Signed-off-by: Carlo Galiotto <carlo@srs.io>