From b7100efd848a2f12fc35f0b06882ce5dd2f5fd36 Mon Sep 17 00:00:00 2001 From: Matan Perelman Date: Sun, 4 Dec 2022 09:27:57 +0200 Subject: [PATCH] epc: Match lac and tac config with enb rr --- srsepc/src/main.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/srsepc/src/main.cc b/srsepc/src/main.cc index 8ce483996..7f4eaed66 100644 --- a/srsepc/src/main.cc +++ b/srsepc/src/main.cc @@ -215,16 +215,8 @@ void parse_args(all_args_t* args, int argc, char* argv[]) sstr >> tmp; args->mme_args.s1ap_args.mme_code = tmp; } - { - std::stringstream sstr; - sstr << std::hex << vm["mme.tac"].as(); - sstr >> args->mme_args.s1ap_args.tac; - } - { - std::stringstream sstr; - sstr << std::hex << vm["mme.lac"].as(); - sstr >> args->mme_args.s1ap_args.lac; - } + args->mme_args.s1ap_args.tac = std::stoi(vm["mme.tac"].as(), nullptr, 0); + args->mme_args.s1ap_args.lac = std::stoi(vm["mme.lac"].as(), nullptr, 0); // Convert MCC/MNC strings if (!srsran::string_to_mcc(mcc, &args->mme_args.s1ap_args.mcc)) {