Merge remote-tracking branch 'origin/develop-SA-CBRA' into NR_SA_F1AP_5GRECORDS
Conflicts: cmake_targets/CMakeLists.txt openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c openair2/LAYER2/nr_pdcp/nr_pdcp_entity.h openair2/LAYER2/nr_pdcp/nr_pdcp_entity_drb_am.c openair2/LAYER2/nr_pdcp/nr_pdcp_sdu.h openair2/RRC/NR/rrc_gNB.c openair2/RRC/NR_UE/rrc_UE.c
This commit is contained in:
@@ -190,7 +190,6 @@ int decode_attach_accept(attach_accept_msg *attach_accept, uint8_t *buffer, uint
|
||||
default:
|
||||
errorCodeDecoder = TLV_DECODE_UNEXPECTED_IEI;
|
||||
LOG_TRACE(WARNING, "DECODE_UNEXPECTED_IEI %x (4 bits)", ieiDecoded);
|
||||
AssertFatal(0, " ");
|
||||
return TLV_DECODE_UNEXPECTED_IEI;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,13 +43,17 @@ int decode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t
|
||||
CHECK_LENGTH_DECODER(len - decoded, ielen);
|
||||
supportedcodeclist->systemidentification = *(buffer + decoded);
|
||||
decoded++;
|
||||
ielen--;
|
||||
supportedcodeclist->lengthofbitmap = *(buffer + decoded);
|
||||
decoded++;
|
||||
ielen--;
|
||||
//IES_DECODE_U16(supportedcodeclist->codecbitmap, *(buffer + decoded));
|
||||
IES_DECODE_U16(buffer, decoded, supportedcodeclist->codecbitmap);
|
||||
ielen=ielen -2;
|
||||
#if defined (NAS_DEBUG)
|
||||
dump_supported_codec_list_xml(supportedcodeclist, iei);
|
||||
#endif
|
||||
decoded = decoded + ielen;
|
||||
return decoded;
|
||||
}
|
||||
int encode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t iei, uint8_t *buffer, uint32_t len)
|
||||
|
||||
@@ -443,14 +443,14 @@ static int _emm_as_data_ind(nas_user_t *user, const emm_as_data_t *msg, int *emm
|
||||
EPS_MOBILITY_MANAGEMENT_MESSAGE) {
|
||||
/* Process EMM data */
|
||||
rc = _emm_as_recv(user, plain_msg, bytes, emm_cause);
|
||||
free(plain_msg);
|
||||
} else if (header.protocol_discriminator ==
|
||||
EPS_SESSION_MANAGEMENT_MESSAGE) {
|
||||
const OctetString data = {bytes, (uint8_t *)plain_msg};
|
||||
/* Foward ESM data to EPS session management */
|
||||
rc = lowerlayer_data_ind(user, &data);
|
||||
free(plain_msg);
|
||||
}
|
||||
|
||||
free(plain_msg);
|
||||
}
|
||||
} else {
|
||||
/* Process successfull lower layer transfer indication */
|
||||
|
||||
@@ -296,16 +296,16 @@ int emm_proc_security_mode_command(nas_user_t *user, int native_ksi, int ksi,
|
||||
else {
|
||||
/* Setup EMM cause code */
|
||||
emm_cause = EMM_CAUSE_SECURITY_MODE_REJECTED;
|
||||
|
||||
/* Release security mode control internal data */
|
||||
if (security_data->kenb.value) {
|
||||
free(security_data->kenb.value);
|
||||
security_data->kenb.value = NULL;
|
||||
security_data->kenb.length = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Release security mode control internal data */
|
||||
if (security_data->kenb.value) {
|
||||
free(security_data->kenb.value);
|
||||
security_data->kenb.value = NULL;
|
||||
security_data->kenb.length = 0;
|
||||
}
|
||||
|
||||
/* Setup EMM procedure handler to be executed upon receiving
|
||||
* lower layer notification */
|
||||
rc = emm_proc_lowerlayer_initialize(user->lowerlayer_data, NULL, NULL, NULL, NULL);
|
||||
|
||||
Reference in New Issue
Block a user