NGAP: refactor PDU Session Resource Modify struct definition
This commit refactors the PDU Session Resource Modify Response message structures to improve naming, documentation, and compliance with 3GPP TS 38.413 9.2.1.6. Changes in NGAP: - Rename qos_flow_tobe_modified_t to qos_flow_addmod_response_item_t to better reflect its purpose as a QoS Flow Add or Modify Response Item IE (as per specs) - Add mandatory AMF UE NGAP ID field to ngap_pdusession_modify_resp_t structure - Optimize field types: change nb_of_pdusessions and nb_of_pdusessions_failed from uint16_t to uint8_t (NGAP_MAX_PDU_SESSION limit) (ref 3GPP TS 38.413, 9.2.1.6) - Update PDU Session Modify Response encoder to use amf_ue_ngap_id from the message structure (pdusession_modify_resp_p->amf_ue_ngap_id) instead of retrieving it from UE context (ue_context_p->amf_ue_ngap_id) - Add comprehensive comments with 3GPP TS 38.413 section references throughout Changes in RRC/NGAP: - Populate amf_ue_ngap_id field in PDU Session Modify Response message from UE context - Update type reference to qos_flow_addmod_response_item_t
This commit is contained in:
@@ -1084,7 +1084,7 @@ int ngap_gNB_pdusession_modify_resp(instance_t instance, ngap_pdusession_modify_
|
||||
ie->id = NGAP_ProtocolIE_ID_id_AMF_UE_NGAP_ID;
|
||||
ie->criticality = NGAP_Criticality_ignore;
|
||||
ie->value.present = NGAP_PDUSessionResourceModifyResponseIEs__value_PR_AMF_UE_NGAP_ID;
|
||||
asn_uint642INTEGER(&ie->value.choice.AMF_UE_NGAP_ID, ue_context_p->amf_ue_ngap_id);
|
||||
asn_uint642INTEGER(&ie->value.choice.AMF_UE_NGAP_ID, pdusession_modify_resp_p->amf_ue_ngap_id);
|
||||
asn1cSeqAdd(&out->protocolIEs.list, ie);
|
||||
}
|
||||
/* mandatory */
|
||||
|
||||
Reference in New Issue
Block a user