Commit 22d573c6 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN Committed by Raphael Defosseux

Fix issue for Full DNN (APN Operator Identifier)

parent 5e4bb129
......@@ -68,7 +68,10 @@ std::string Utility::home_network_gprs(const plmn_t& plmn) {
if (mnc < 10) s.append("0");
s.append(std::to_string(mnc));
s.append(".mcc");
s.append(std::to_string(mcc));
std::string mcc_str = std::to_string(mcc);
if (mcc_str.size() == 1) s.append("00");
if (mcc_str.size() == 2) s.append("0");
s.append(mcc_str);
s.append(".gprs");
return s;
......
......@@ -42,6 +42,9 @@ int decode_procedure_transaction_identity(
ProcedureTransactionIdentity* proceduretransactionidentity, uint8_t iei,
uint8_t* buffer, uint32_t len) {
int decoded = 0;
DECODE_U8(buffer + decoded, proceduretransactionidentity, decoded);
uint8_t pti = 0;
// TODO: should remove raw pointer
DECODE_U8(buffer + decoded, pti, decoded);
*proceduretransactionidentity = pti;
return decoded;
}
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