Commit 090858b7 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix for SST (uint8_t instead of string)

parent 68dab34e
...@@ -905,8 +905,8 @@ bool smf_sbi::get_sm_data( ...@@ -905,8 +905,8 @@ bool smf_sbi::get_sm_data(
// Verify SNSSAI // Verify SNSSAI
if (jsonData.find("singleNssai") == jsonData.end()) return false; if (jsonData.find("singleNssai") == jsonData.end()) return false;
if (jsonData["singleNssai"].find("sst") != jsonData["singleNssai"].end()) { if (jsonData["singleNssai"].find("sst") != jsonData["singleNssai"].end()) {
std::string sst = jsonData["singleNssai"]["sst"]; uint8_t sst = jsonData["singleNssai"]["sst"].get<uint8_t>();
if (sst.compare(std::to_string(snssai.sST)) != 0) { if (sst != snssai.sST) {
return false; return false;
} }
} }
......
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