• Robert Schmidt's avatar
    Send RRC UECapabilityEnquiry after reconfig, trigger UE update if necessary · 4a7d7975
    Robert Schmidt authored
    We used to trigger the UECapabilityEnquiry right after
    SecurityModeComplete, and before the RRCReconfiguration (which we call
    "default" reconfiguration). However, 38.401 tells us that we should send
    the RRCReconfiguration right after the SecurityModeComplete. In fact,
    even though we get the UE capabilities, we cannot use them during this
    reconfiguration, as we would first need to update the DU with a UE
    Context Modification Request, which we cannot, as we just sent the UE
    Context Setup Request, and the DU relies on first getting the
    RRCReconfiguration.
    
    Since we rely on a subsequent reconfiguration anyway, we can safely
    trigger the UECapabilityEnquiry after RRCReconfigurationComplete.
    (38.331 also says we can send UECapabilityEnquiry at any point.)
    
    To cater for the possibility that there might not be any reconfiguration
    coming afterwards, we check if a DRB has been set up. If not, we assume
    a reconfiguration will come, and do not trigger one only for the UE
    capabilities (this is what we do before this commit). If we already have
    DRBs set up, they might have been set up during the "default" RRC
    Reconfiguration, and another reconfiguration might not follow soon; in
    this case, we trigger the reconfiguration by sending the UE capabilities
    to the DU right away.
    4a7d7975
rrc_gNB.c 113 KB