Unverified Commit 797e78e0 authored by Ali Güngör's avatar Ali Güngör Committed by GitHub

Merge pull request #413 from namssob/master

Change Request type IE Value in the NAS PDU session release request and NAS PDU session release complete
parents 857b1cde 57835f08
......@@ -632,6 +632,7 @@ enum class ERequestType
INITIAL_EMERGENCY_REQUEST = 0b011,
EXISTING_EMERGENCY_PDU_SESSION = 0b100,
MODIFICATION_REQUEST = 0b101,
RESERVED=0b111,
};
enum class EAllowedType
......@@ -754,4 +755,4 @@ enum class EQoSOperationCode
Json ToJson(const EPduSessionType &v);
} // namespace nas
\ No newline at end of file
} // namespace nas
......@@ -69,6 +69,10 @@ void NasSm::sendSmMessage(int psi, const nas::SmMessage &msg)
m.requestType = nas::IERequestType{};
m.requestType->requestType =
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)
{
......@@ -156,4 +160,4 @@ void NasSm::receiveForwardingFailure(const nas::SmMessage &msg, nas::EMmCause ca
abortProcedureByPti(msg.pti);
}
} // namespace nr::ue
\ No newline at end of file
} // namespace nr::ue
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