X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fcodec_utils%2Fcommon%2Fodu_common_codec.c;h=5ea3c8da6e0e8552e7d024818785b2a922a5d040;hb=d18338bde70b043c3dde28b7d88d128c0b138380;hp=1f353173aa89306469c843f47fd914b1dd5a005d;hpb=7c6820e987fadb1102e5891408ad33a8ce36ba95;p=o-du%2Fl2.git diff --git a/src/codec_utils/common/odu_common_codec.c b/src/codec_utils/common/odu_common_codec.c index 1f353173a..5ea3c8da6 100644 --- a/src/codec_utils/common/odu_common_codec.c +++ b/src/codec_utils/common/odu_common_codec.c @@ -28,40 +28,6 @@ int PrepFinalEncBuf(const void *buffer, size_t size, void *encodedBuf) return 0; } /* PrepFinalEncBuf */ -/******************************************************************* - * - * @brief Builds PLMN ID - * - * @details - * - * Function : plmnBuildId - * - * Functionality: Building the PLMN ID - * - * @params[in] PLMNID plmn - * OCTET_STRING_t *octe - * @return ROK - success - * RFAILED - failure - * - * ****************************************************************/ -uint8_t buildPlmnId(Plmn plmn, uint8_t *buf) -{ - uint8_t mncCnt; - mncCnt = 2; - buf[0] = ((plmn.mcc[1] << 4) | (plmn.mcc[0])); - if(mncCnt == 2) - { - buf[1] = ((0xf0) | (plmn.mcc[2])); - buf[2] = ((plmn.mnc[1] << 4) | (plmn.mnc[0])); - } - else - { - buf[1] = ((plmn.mnc[0] << 4) | (plmn.mcc[2])); - buf[2] = ((plmn.mnc[2] << 4) | (plmn.mnc[1])); - } - return ROK; -} - /******************************************************************* * * @brief Fills the RicId