X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=RSM%2F3rdparty%2Fasn1codec%2Fsrc%2Fresource_status_request_wrapper.c;fp=RSM%2F3rdparty%2Fasn1codec%2Fsrc%2Fresource_status_request_wrapper.c;h=0edd894904c85e63820884ef3868b92bd23ed086;hb=60652d98d51ee23c1eaca2e8bc2bf19c74c57658;hp=3b07d940bf8a9298cf4df4cda3c7949d7170b752;hpb=b8d3ff3abf409da49ecab244cd6d2c2124dbce7c;p=ric-plt%2Fresource-status-manager.git diff --git a/RSM/3rdparty/asn1codec/src/resource_status_request_wrapper.c b/RSM/3rdparty/asn1codec/src/resource_status_request_wrapper.c index 3b07d94..0edd894 100644 --- a/RSM/3rdparty/asn1codec/src/resource_status_request_wrapper.c +++ b/RSM/3rdparty/asn1codec/src/resource_status_request_wrapper.c @@ -42,8 +42,9 @@ static void assignEUTRANcellIdentifier (EUTRANCellIdentifier_t *eUTRANCellIdenti bool build_pack_resource_status_request( - uint8_t const* pLMN_Identity, - uint8_t const* eUTRANCellIdentifier, + uint8_t const** pLMN_Identities, + uint8_t const** eUTRANCellIdentifiers, + size_t nECGIs, Measurement_ID_t measurement_ID, Measurement_ID_t measurement_ID2, Registration_Request_t registration_Request /*Registration_Request_start,Registration_Request_stop,Registration_Request_partial_stop, Registration_Request_add*/, uint32_t reportCharacteristics, @@ -55,8 +56,9 @@ build_pack_resource_status_request( ) { return build_pack_resource_status_request_aux( - pLMN_Identity, - eUTRANCellIdentifier, + pLMN_Identities, + eUTRANCellIdentifiers, + nECGIs, measurement_ID, measurement_ID2, registration_Request, reportCharacteristics, @@ -70,8 +72,9 @@ build_pack_resource_status_request( bool build_pack_resource_status_request_aux( - uint8_t const* pLMN_Identity, - uint8_t const* eUTRANCellIdentifier, + uint8_t const** pLMN_Identities, + uint8_t const** eUTRANCellIdentifiers, + size_t nECGIs, Measurement_ID_t measurement_ID, Measurement_ID_t measurement_ID2, Registration_Request_t registration_Request /*Registration_Request_start,Registration_Request_stop,Registration_Request_partial_stop, Registration_Request_add*/, uint32_t reportCharacteristics, @@ -155,15 +158,17 @@ build_pack_resource_status_request_aux( cellToReport_List_ie->criticality = Criticality_ignore; cellToReport_List_ie->value.present = ResourceStatusRequest_IEs__value_PR_CellToReport_List; - CellToReport_ItemIEs_t *item = calloc(1, sizeof(CellToReport_ItemIEs_t)); - assert(item != 0); - ASN_SEQUENCE_ADD(&cellToReport_List_ie->value.choice.CellToReport_List, item); + for (size_t i = 0; i < nECGIs; i++){ + CellToReport_ItemIEs_t *item = calloc(1, sizeof(CellToReport_ItemIEs_t)); + assert(item != 0); + ASN_SEQUENCE_ADD(&cellToReport_List_ie->value.choice.CellToReport_List, item); - item->id = ProtocolIE_ID_id_CellToReport_Item; - item->criticality = Criticality_ignore; - item->value.present = CellToReport_ItemIEs__value_PR_CellToReport_Item; - assignPLMN_Identity(&item->value.choice.CellToReport_Item.cell_ID.pLMN_Identity, pLMN_Identity); - assignEUTRANcellIdentifier(&item->value.choice.CellToReport_Item.cell_ID.eUTRANcellIdentifier,eUTRANCellIdentifier); + item->id = ProtocolIE_ID_id_CellToReport_Item; + item->criticality = Criticality_ignore; + item->value.present = CellToReport_ItemIEs__value_PR_CellToReport_Item; + assignPLMN_Identity(&item->value.choice.CellToReport_Item.cell_ID.pLMN_Identity, pLMN_Identities[i]); + assignEUTRANcellIdentifier(&item->value.choice.CellToReport_Item.cell_ID.eUTRANcellIdentifier,eUTRANCellIdentifiers[i]); + } if (reportingPeriodicity >= 0){ ResourceStatusRequest_IEs_t *reportingPeriodicity_ie = calloc(1, sizeof(ResourceStatusRequest_IEs_t));