fix bug when parsing cipher algo config for SS

This commit is contained in:
Andre Puschmann 2020-02-10 21:57:58 +01:00
parent 8a69772ebc
commit 72c5b381e4
1 changed files with 2 additions and 2 deletions

View File

@ -447,9 +447,9 @@ private:
std::string cipher_algo_string = as_sec["StartRestart"]["Ciphering"]["Algorithm"].GetString();
if (cipher_algo_string == "eea0") {
cipher_algo = srslte::CIPHERING_ALGORITHM_ID_EEA0;
} else if (int_algo_string == "eea1") {
} else if (cipher_algo_string == "eea1") {
cipher_algo = srslte::CIPHERING_ALGORITHM_ID_128_EEA1;
} else if (int_algo_string == "eea2") {
} else if (cipher_algo_string == "eea2") {
cipher_algo = srslte::CIPHERING_ALGORITHM_ID_128_EEA2;
} else {
log->error("Unsupported ciphering algorithm %s\n", cipher_algo_string.c_str());