Commit e0dd70cf authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Code cleanup

parent ab969441
......@@ -609,6 +609,8 @@ int _5GSMobilityIdentity::suci_decodefrombuffer(
decoded_size++;
supi_format_imsi->homeNetworkPKI = octet;
string msin = "";
// TODO: get MSIN according to Protection Scheme ID to support
// ECIES scheme profile A/B
int digit_low = 0, digit_high = 0, numMsin = ie_len - decoded_size;
for (int i = 0; i < numMsin; i++) {
octet = *(buf + decoded_size);
......
......@@ -92,15 +92,15 @@ int NSSAI::encode2buffer(uint8_t* buf, int len) {
*(buf + encoded_size) = (S_NSSAI.at(i).sd & 0x00ff0000) >> 16;
encoded_size++;
Logger::nas_mm().debug(
"Encoded NSSAI len (%x)", *(buf + encoded_size - 1));
"Encoded NSSAI SD first octet (%x)", *(buf + encoded_size - 1));
*(buf + encoded_size) = (S_NSSAI.at(i).sd & 0x0000ff00) >> 8;
encoded_size++;
Logger::nas_mm().debug(
"Encoded NSSAI len (%x)", *(buf + encoded_size - 1));
"Encoded NSSAI SD second octet (%x)", *(buf + encoded_size - 1));
*(buf + encoded_size) = S_NSSAI.at(i).sd & 0x000000ff;
encoded_size++;
Logger::nas_mm().debug(
"Encoded NSSAI len (%x)", *(buf + encoded_size - 1));
"Encoded NSSAI SD third octet (%x)", *(buf + encoded_size - 1));
}
if (S_NSSAI.at(i).mHplmnSst != -1) {
len_s_nssai += 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment