Commit 8814bc18 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix decode SD/HPLMNSD in NAS

parent 8c47adea
...@@ -138,8 +138,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -138,8 +138,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
length = *(buf + decoded_size); length = *(buf + decoded_size);
decoded_size++; decoded_size++;
int length_tmp = length; int length_tmp = length;
a.sd = SD_NO_VALUE; // Default value
a.mHplmnSd = SD_NO_VALUE; // Default value
while (length_tmp) { while (length_tmp) {
switch (*(buf + decoded_size)) { switch (*(buf + decoded_size)) {
...@@ -230,9 +228,7 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -230,9 +228,7 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
} }
S_NSSAI.insert(S_NSSAI.end(), a); S_NSSAI.insert(S_NSSAI.end(), a);
a = {0, 0, 0, 0}; a = {0, 0, 0, 0};
a.sd = SD_NO_VALUE; // Default value
a.mHplmnSd = SD_NO_VALUE; // Default value
} }
for (int i = 0; i < S_NSSAI.size(); i++) { for (int i = 0; i < S_NSSAI.size(); i++) {
......
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