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

Fix issue for NSSAI

parent e7de4a97
...@@ -140,11 +140,12 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -140,11 +140,12 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
decoded_size++; decoded_size++;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
a.sd &= 0x00ffffff;
decoded_size++; decoded_size++;
a.mHplmnSst = -1; a.mHplmnSst = -1;
a.mHplmnSd = -1; a.mHplmnSd = -1;
...@@ -154,11 +155,12 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -154,11 +155,12 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
decoded_size++; decoded_size++;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
a.sd &= 0x00ffffff;
decoded_size++; decoded_size++;
a.mHplmnSst = *(buf + decoded_size); a.mHplmnSst = *(buf + decoded_size);
decoded_size++; decoded_size++;
...@@ -169,20 +171,21 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -169,20 +171,21 @@ int S_NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
decoded_size++; decoded_size++;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.sd << 8; a.sd = a.sd << 8;
a.sd |= *(buf + decoded_size); a.sd |= *(buf + decoded_size);
a.sd &= 0x00ffffff;
decoded_size++; decoded_size++;
a.mHplmnSst = *(buf + decoded_size); a.mHplmnSst = *(buf + decoded_size);
decoded_size++; decoded_size++;
a.mHplmnSd |= *(buf + decoded_size); a.mHplmnSd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.mHplmnSd << 16; a.mHplmnSd = a.mHplmnSd << 8;
a.mHplmnSd |= *(buf + decoded_size); a.mHplmnSd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
a.mHplmnSd << 8; a.mHplmnSd = a.mHplmnSd << 8;
a.mHplmnSd |= *(buf + decoded_size); a.mHplmnSd |= *(buf + decoded_size);
decoded_size++; decoded_size++;
} break; } break;
......
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