Commit bbf325ab authored by aligungr's avatar aligungr

Request Type IE handling improvement

parent 5b365a37
......@@ -73,15 +73,15 @@ 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 (!session->isEmergency)
{
if (session->sNssai.has_value())
m.sNssai = nas::utils::SNssaiFrom(*session->sNssai);
if (!session->isEmergency)
{
if (session->sNssai.has_value())
m.sNssai = nas::utils::SNssaiFrom(*session->sNssai);
if (session->apn.has_value())
m.dnn = nas::utils::DnnFromApn(*session->apn);
if (session->apn.has_value())
m.dnn = nas::utils::DnnFromApn(*session->apn);
}
}
m_mm->deliverUlTransport(m, MapMsgTypeToHint(msg.messageType));
......
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