From 4eb9d1abacd124d737f01070ac85870c3c3ddb78 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 19 Jun 2018 18:11:26 +0100 Subject: [PATCH] Revert "fix USIM test by replacing OP with OPc" This reverts commit 16b2172e3683d6db8c1f3985bdd74e1f0e678d37. --- srsue/test/upper/usim_test.cc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/srsue/test/upper/usim_test.cc b/srsue/test/upper/usim_test.cc index c3b13a09c..9e49dc173 100644 --- a/srsue/test/upper/usim_test.cc +++ b/srsue/test/upper/usim_test.cc @@ -27,6 +27,7 @@ #include #include "srsue/hdr/upper/usim.h" #include "srslte/common/log_filter.h" +#include using namespace srsue; @@ -67,8 +68,6 @@ uint16 mnc = 93; int main(int argc, char **argv) { srslte::log_filter usim_log("USIM"); - usim_log.set_level(srslte::LOG_LEVEL_DEBUG); - usim_log.set_hex_limit(100000); bool net_valid; uint8_t res[16]; int res_len; @@ -79,17 +78,10 @@ int main(int argc, char **argv) args.imei = "356092040793011"; args.imsi = "208930000000001"; args.k = "8BAF473F2F8FD09487CCCBD7097C6862"; - args.op = "8e27b6af0e692e750f32667a3b14605d"; // OPc + args.op = "11111111111111111111111111111111"; srsue::usim usim; usim.init(&args, &usim_log); - if (usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, res, &res_len, k_asme) != AUTH_OK) { - printf("USIM test failed.\n"); - return -1; - }; - - printf("USIM test ok.\n"); - - return 0; + //assert(usim.generate_authentication_response(rand_enb, autn_enb, mcc, mnc, res, &res_len, k_asme) == AUTH_OK); }