Cleanup handover required transfer IE
Previously, the RRC layer was incorrectly allocating stack memory for the ho_required_transfer field and passing it to NGAP, however it was not used. The IE is mandatory but contains only 1 optional IE, therefore is encoded in the NG message with empty content. Changes: - Remove unnecessary ho_required_transfer field from pdusession_resource_t definition, the IE is encoded anyway with empty content. If Direct Forwarding Path Availability is needed at any stage in the future it can be added to pdusession_resource_t and filled in RRC. - Add clarifying comment about empty HandoverRequiredTransfer structure
This commit is contained in:
@@ -88,7 +88,9 @@ NGAP_NGAP_PDU_t *encode_ng_handover_required(const ngap_handover_required_t *msg
|
||||
asn1cSequenceAdd(ie6->value.choice.PDUSessionResourceListHORqd.list, NGAP_PDUSessionResourceItemHORqd_t, hoRequiredPduSession);
|
||||
// PDU Session ID (M)
|
||||
hoRequiredPduSession->pDUSessionID = msg->pdusessions[i].pdusession_id;
|
||||
// Handover Required Transfer (M)
|
||||
// Handover Required Transfer (M) - ASN.1 encoding of empty transfer structure
|
||||
// This is a mandatory field in the NGAP Handover Required message, however it contains
|
||||
// only Direct Forwarding Path Availability IE, which is optional and is not sent
|
||||
NGAP_HandoverRequiredTransfer_t hoRequiredTransfer = {0};
|
||||
uint8_t ho_req_transfer_transparent_container_buffer[128] = {0};
|
||||
if (LOG_DEBUGFLAG(DEBUG_ASN1))
|
||||
|
||||
Reference in New Issue
Block a user