Making sure NAS message is added to the initial context setup request.

master
Pedro Alvarez 6 years ago
parent cdc72b8164
commit d76053e7ec

@ -786,7 +786,7 @@ nas::pack_attach_accept(srslte::byte_buffer_t *nas_buffer)
); );
memcpy(&nas_buffer->msg[1],mac,4); memcpy(&nas_buffer->msg[1],mac,4);
m_nas_log->info("Packed Attach Complete\n"); m_nas_log->info("Packed Attach Accept\n");
//Add nas message to context setup request //Add nas message to context setup request
//erab_ctxt->nAS_PDU_present = true; //erab_ctxt->nAS_PDU_present = true;

@ -155,7 +155,12 @@ s1ap_ctx_mngmt_proc::send_initial_context_setup_request(nas *nas_ctx, uint16_t e
//Attach procedure initiated from an attach request //Attach procedure initiated from an attach request
m_s1ap_log->console("Adding attach accept to Initial Context Setup Request\n"); m_s1ap_log->console("Adding attach accept to Initial Context Setup Request\n");
m_s1ap_log->info("Adding attach accept to Initial Context Setup Request\n"); m_s1ap_log->info("Adding attach accept to Initial Context Setup Request\n");
nas_ctx->pack_attach_accept(nas_buffer); nas_ctx->pack_attach_accept(nas_buffer);
//Add nas message to context setup request
erab_ctx_req->nAS_PDU_present = true;
memcpy(erab_ctx_req->nAS_PDU.buffer, nas_buffer->msg, nas_buffer->N_bytes);
erab_ctx_req->nAS_PDU.n_octets = nas_buffer->N_bytes;
} }
srslte::byte_buffer_t *reply_buffer = m_pool->allocate(); srslte::byte_buffer_t *reply_buffer = m_pool->allocate();

Loading…
Cancel
Save