fix packing/unpacking of esm info request msg

master
Andre Puschmann 7 years ago
parent 258785e7de
commit 4fe5258a23

@ -9962,7 +9962,7 @@ LIBLTE_ERROR_ENUM srslte_mme_pack_esm_information_request_msg(LIBLTE_MME_ESM_INF
if(LIBLTE_MME_SECURITY_HDR_TYPE_PLAIN_NAS != sec_hdr_type) if(LIBLTE_MME_SECURITY_HDR_TYPE_PLAIN_NAS != sec_hdr_type)
{ {
// Protocol Discriminator and Security Header Type // Protocol Discriminator and Security Header Type
*msg_ptr = (sec_hdr_type << 4) | (LIBLTE_MME_PD_EPS_SESSION_MANAGEMENT); *msg_ptr = (sec_hdr_type << 4) | (LIBLTE_MME_PD_EPS_MOBILITY_MANAGEMENT);
msg_ptr++; msg_ptr++;
// MAC will be filled in later // MAC will be filled in later
@ -10160,7 +10160,7 @@ LIBLTE_ERROR_ENUM srslte_mme_unpack_esm_information_response_msg(LIBLTE_BYTE_MSG
{ {
msg_ptr++; msg_ptr++;
}else{ }else{
msg_ptr += 7; msg_ptr += 6;
} }
// EPS Bearer ID // EPS Bearer ID
esm_info_resp->eps_bearer_id = (*msg_ptr >> 4); esm_info_resp->eps_bearer_id = (*msg_ptr >> 4);

Loading…
Cancel
Save