Commit 10489c93 authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix for Allowed/Rejected/Configured NSSAI

parent 533a1ea9
......@@ -49,7 +49,7 @@ Rejected_SNSSAI::~Rejected_SNSSAI() {
//------------------------------------------------------------------------------
uint8_t Rejected_SNSSAI::getLength() {
return length_;
return (length_ + 1); // 1 for length + cause
}
//------------------------------------------------------------------------------
......
......@@ -132,20 +132,26 @@ void RegistrationAccept::setEquivalent_PLMNs(
//------------------------------------------------------------------------------
void RegistrationAccept::setALLOWED_NSSAI(std::vector<struct SNSSAI_s> nssai) {
ie_allowed_nssai = new NSSAI(0x15, nssai);
if (nssai.size() > 0) {
ie_allowed_nssai = new NSSAI(0x15, nssai);
}
}
//------------------------------------------------------------------------------
void RegistrationAccept::setRejected_NSSAI(
std::vector<Rejected_SNSSAI>& nssai) {
ie_rejected_nssai = new Rejected_NSSAI(0x11);
ie_rejected_nssai->setRejectedSNSSAIs(nssai);
if (nssai.size() > 0) {
ie_rejected_nssai = new Rejected_NSSAI(0x11);
ie_rejected_nssai->setRejectedSNSSAIs(nssai);
}
}
//------------------------------------------------------------------------------
void RegistrationAccept::setCONFIGURED_NSSAI(
std::vector<struct SNSSAI_s> nssai) {
ie_configured_nssai = new NSSAI(0x31, nssai);
if (nssai.size() > 0) {
ie_configured_nssai = new NSSAI(0x31, nssai);
}
}
//------------------------------------------------------------------------------
......
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