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
......
...@@ -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)
{ {
......
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