Commit f3b6a6bd authored by Alan Chang's avatar Alan Chang

Fix the pdu release IE request type should not be intial request

parent 8bf2f54b
...@@ -632,6 +632,7 @@ enum class ERequestType ...@@ -632,6 +632,7 @@ enum class ERequestType
INITIAL_EMERGENCY_REQUEST = 0b011, INITIAL_EMERGENCY_REQUEST = 0b011,
EXISTING_EMERGENCY_PDU_SESSION = 0b100, EXISTING_EMERGENCY_PDU_SESSION = 0b100,
MODIFICATION_REQUEST = 0b101, MODIFICATION_REQUEST = 0b101,
RESERVED=0b111,
}; };
enum class EAllowedType enum class EAllowedType
...@@ -754,4 +755,4 @@ enum class EQoSOperationCode ...@@ -754,4 +755,4 @@ enum class EQoSOperationCode
Json ToJson(const EPduSessionType &v); Json ToJson(const EPduSessionType &v);
} // namespace nas } // namespace nas
\ No newline at end of file
...@@ -69,6 +69,10 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg) ...@@ -69,6 +69,10 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg)
m.requestType = nas::IERequestType{}; m.requestType = nas::IERequestType{};
m.requestType->requestType = m.requestType->requestType =
session->isEmergency ? nas::ERequestType::INITIAL_EMERGENCY_REQUEST : nas::ERequestType::INITIAL_REQUEST; session->isEmergency ? nas::ERequestType::INITIAL_EMERGENCY_REQUEST : nas::ERequestType::INITIAL_REQUEST;
if (msg.messageType == nas::EMessageType::PDU_SESSION_RELEASE_REQUEST || msg.messageType == nas::EMessageType::PDU_SESSION_RELEASE_COMPLETE) {
m.requestType->requestType = nas::ERequestType::RESERVED;
}
if (!session->isEmergency) if (!session->isEmergency)
{ {
...@@ -156,4 +160,4 @@ void NasSm::receiveForwardingFailure(const nas::SmMessage &msg, nas::EMmCause ca ...@@ -156,4 +160,4 @@ void NasSm::receiveForwardingFailure(const nas::SmMessage &msg, nas::EMmCause ca
abortProcedureByPti(msg.pti); abortProcedureByPti(msg.pti);
} }
} // namespace nr::ue } // namespace nr::ue
\ No newline at end of file
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