From b9c50a93a86145402fec2412083ccfc1ec84dfaf Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Mon, 18 Jun 2018 20:03:57 +0100 Subject: [PATCH] Fixed bug in writing OPc into user_db.csv. --- srsepc/src/hss/hss.cc | 3 ++- srsue/src/main.cc | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/srsepc/src/hss/hss.cc b/srsepc/src/hss/hss.cc index fa4c89bd9..77a7bd825 100644 --- a/srsepc/src/hss/hss.cc +++ b/srsepc/src/hss/hss.cc @@ -246,11 +246,12 @@ bool hss::write_db_file(std::string db_filename) m_db_file << ","; if(it->second->op_configured){ m_db_file << "op,"; + m_db_file << hex_string(it->second->op, 16); } else{ m_db_file << "opc,"; + m_db_file << hex_string(it->second->opc, 16); } - m_db_file << hex_string(it->second->op, 16); m_db_file << ","; m_db_file << hex_string(it->second->amf, 2); m_db_file << ","; diff --git a/srsue/src/main.cc b/srsue/src/main.cc index ccf7ae88d..353921dbf 100644 --- a/srsue/src/main.cc +++ b/srsue/src/main.cc @@ -136,16 +136,16 @@ void parse_args(all_args_t *args, int argc, char *argv[]) { ("usim.k", bpo::value(&args->usim.k), "USIM K") ("usim.pin", bpo::value(&args->usim.pin), "PIN in case real SIM card is used") ("usim.reader", bpo::value(&args->usim.reader)->default_value(""), "Force specifiy PCSC reader. Default: Try all available readers.") - + /* Expert section */ ("expert.ip_netmask", bpo::value(&args->expert.ip_netmask)->default_value("255.255.255.0"), "Netmask of the tun_srsue device") - + ("expert.mbms_service", bpo::value(&args->expert.mbms_service)->default_value(-1), "automatically starts an mbms service of the number given") - + ("expert.phy.worker_cpu_mask", bpo::value(&args->expert.phy.worker_cpu_mask)->default_value(-1), "cpu bit mask (eg 255 = 1111 1111)")