Commit b876600f authored by Tien Thinh NGUYEN's avatar Tien Thinh NGUYEN

Fix issue for supporting UE rel 16

parent 10489c93
...@@ -4401,11 +4401,8 @@ bool amf_n1::check_requested_nssai(const std::shared_ptr<nas_context>& nc) { ...@@ -4401,11 +4401,8 @@ bool amf_n1::check_requested_nssai(const std::shared_ptr<nas_context>& nc) {
bool result = false; bool result = false;
for (auto p : amf_cfg.plmn_list) { for (auto p : amf_cfg.plmn_list) {
// Check PLMN/TAC // Check PLMN/TAC
if ((uc.get()->tai.mcc.compare(p.mcc) != 0) or if ((uc->tai.mcc.compare(p.mcc) != 0) or
(uc.get()->tai.mnc.compare(p.mnc) != 0) (uc->tai.mnc.compare(p.mnc) != 0) or (uc->tai.tac != p.tac)) {
// or (uc.get()->tai.tac != p.tac) //TTN:disable this check for CU/DU
// testing
) {
continue; continue;
} }
...@@ -4449,11 +4446,8 @@ bool amf_n1::check_subscribed_nssai( ...@@ -4449,11 +4446,8 @@ bool amf_n1::check_subscribed_nssai(
for (auto p : amf_cfg.plmn_list) { for (auto p : amf_cfg.plmn_list) {
// Check PLMN/TAC // Check PLMN/TAC
if ((uc.get()->tai.mcc.compare(p.mcc) != 0) or if ((uc->tai.mcc.compare(p.mcc) != 0) or
(uc.get()->tai.mnc.compare(p.mnc) != 0) (uc->tai.mnc.compare(p.mnc) != 0) or (uc->tai.tac != p.tac)) {
// or(uc.get()->tai.tac != p.tac) //TTN:disable this check for CU/DU
// testing
) {
continue; continue;
} }
......
...@@ -218,8 +218,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) { ...@@ -218,8 +218,6 @@ int NSSAI::decodefrombuffer(uint8_t* buf, int len, bool is_option) {
length_tmp--; length_tmp--;
} break; } break;
} }
// TTN for CU-DU testing
if (a.sd == 0) a.sd = SD_NO_VALUE;
S_NSSAIs.insert(S_NSSAIs.end(), a); S_NSSAIs.insert(S_NSSAIs.end(), a);
a = {0, 0, 0, 0}; a = {0, 0, 0, 0};
......
...@@ -131,7 +131,8 @@ void RegistrationAccept::setEquivalent_PLMNs( ...@@ -131,7 +131,8 @@ void RegistrationAccept::setEquivalent_PLMNs(
} }
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void RegistrationAccept::setALLOWED_NSSAI(std::vector<struct SNSSAI_s> nssai) { void RegistrationAccept::setALLOWED_NSSAI(
const std::vector<struct SNSSAI_s>& nssai) {
if (nssai.size() > 0) { if (nssai.size() > 0) {
ie_allowed_nssai = new NSSAI(0x15, nssai); ie_allowed_nssai = new NSSAI(0x15, nssai);
} }
...@@ -139,7 +140,7 @@ void RegistrationAccept::setALLOWED_NSSAI(std::vector<struct SNSSAI_s> nssai) { ...@@ -139,7 +140,7 @@ void RegistrationAccept::setALLOWED_NSSAI(std::vector<struct SNSSAI_s> nssai) {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void RegistrationAccept::setRejected_NSSAI( void RegistrationAccept::setRejected_NSSAI(
std::vector<Rejected_SNSSAI>& nssai) { const std::vector<Rejected_SNSSAI>& nssai) {
if (nssai.size() > 0) { if (nssai.size() > 0) {
ie_rejected_nssai = new Rejected_NSSAI(0x11); ie_rejected_nssai = new Rejected_NSSAI(0x11);
ie_rejected_nssai->setRejectedSNSSAIs(nssai); ie_rejected_nssai->setRejectedSNSSAIs(nssai);
...@@ -148,7 +149,7 @@ void RegistrationAccept::setRejected_NSSAI( ...@@ -148,7 +149,7 @@ void RegistrationAccept::setRejected_NSSAI(
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void RegistrationAccept::setCONFIGURED_NSSAI( void RegistrationAccept::setCONFIGURED_NSSAI(
std::vector<struct SNSSAI_s> nssai) { const std::vector<struct SNSSAI_s>& nssai) {
if (nssai.size() > 0) { if (nssai.size() > 0) {
ie_configured_nssai = new NSSAI(0x31, nssai); ie_configured_nssai = new NSSAI(0x31, nssai);
} }
......
...@@ -58,9 +58,9 @@ class RegistrationAccept { ...@@ -58,9 +58,9 @@ class RegistrationAccept {
/*** belongs to _5GSMobilityIdentity**/ /*** belongs to _5GSMobilityIdentity**/
void setEquivalent_PLMNs( void setEquivalent_PLMNs(
uint8_t MNC_MCC1, uint8_t MNC_MCC2, uint8_t MNC_MCC3); uint8_t MNC_MCC1, uint8_t MNC_MCC2, uint8_t MNC_MCC3);
void setALLOWED_NSSAI(std::vector<struct SNSSAI_s> nssai); void setALLOWED_NSSAI(const std::vector<struct SNSSAI_s>& nssai);
void setRejected_NSSAI(std::vector<Rejected_SNSSAI>& nssai); void setRejected_NSSAI(const std::vector<Rejected_SNSSAI>& nssai);
void setCONFIGURED_NSSAI(std::vector<struct SNSSAI_s> nssai); void setCONFIGURED_NSSAI(const std::vector<struct SNSSAI_s>& nssai);
void set_5GS_Network_Feature_Support(uint8_t value, uint8_t value2); void set_5GS_Network_Feature_Support(uint8_t value, uint8_t value2);
void setPDU_session_status(uint16_t value); void setPDU_session_status(uint16_t value);
void setPDU_session_reactivation_result(uint16_t value); void setPDU_session_reactivation_result(uint16_t value);
......
...@@ -76,7 +76,7 @@ void RegistrationReject::setEAP_Message(bstring eap) { ...@@ -76,7 +76,7 @@ void RegistrationReject::setEAP_Message(bstring eap) {
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
void RegistrationReject::setRejected_NSSAI( void RegistrationReject::setRejected_NSSAI(
std::vector<Rejected_SNSSAI>& nssai) { const std::vector<Rejected_SNSSAI>& nssai) {
ie_rejected_nssai = new Rejected_NSSAI(0x69); ie_rejected_nssai = new Rejected_NSSAI(0x69);
ie_rejected_nssai->setRejectedSNSSAIs(nssai); ie_rejected_nssai->setRejectedSNSSAIs(nssai);
} }
......
...@@ -44,7 +44,7 @@ class RegistrationReject { ...@@ -44,7 +44,7 @@ class RegistrationReject {
void setGPRS_Timer_2_3346(uint8_t value); void setGPRS_Timer_2_3346(uint8_t value);
void setGPRS_Timer_2_3502(uint8_t value); void setGPRS_Timer_2_3502(uint8_t value);
void setEAP_Message(bstring eap); void setEAP_Message(bstring eap);
void setRejected_NSSAI(std::vector<Rejected_SNSSAI>& nssai); void setRejected_NSSAI(const std::vector<Rejected_SNSSAI>& nssai);
public: public:
NasMmPlainHeader* plain_header; NasMmPlainHeader* plain_header;
......
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