Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Michael Black
OpenXG UE
Commits
79a85be4
Commit
79a85be4
authored
Jul 14, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Protect some xer_fprints by an if
parent
3e30544f
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
16 deletions
+24
-16
executables/nr-ru.c
executables/nr-ru.c
+0
-2
openair1/SCHED_NR/nr_ru_procedures.c
openair1/SCHED_NR/nr_ru_procedures.c
+6
-6
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+3
-1
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
+1
-1
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
+1
-0
openair2/RRC/NR_UE/rrc_UE.c
openair2/RRC/NR_UE/rrc_UE.c
+6
-4
openair3/NGAP/ngap_gNB_nas_procedures.c
openair3/NGAP/ngap_gNB_nas_procedures.c
+7
-2
No files found.
executables/nr-ru.c
View file @
79a85be4
...
...
@@ -1386,7 +1386,6 @@ void *ru_thread( void *param ) {
}
}
// At this point, all information for subframe has been received on FH interface
res
=
pullTpool
(
gNB
->
resp_L1
,
gNB
->
threadPool
);
syncMsg
=
(
processingData_L1_t
*
)
NotifiedFifoData
(
res
);
...
...
@@ -1399,7 +1398,6 @@ void *ru_thread( void *param ) {
res
->
key
=
proc
->
tti_rx
;
pushTpool
(
gNB
->
threadPool
,
res
);
}
printf
(
"Exiting ru_thread
\n
"
);
...
...
openair1/SCHED_NR/nr_ru_procedures.c
View file @
79a85be4
...
...
@@ -306,16 +306,16 @@ static void *nr_feptx_thread(void *param) {
if
(
ru
->
do_precoding
==
1
)
{
for
(
i
=
0
;
i
<
ru
->
nb_log_antennas
;
++
i
)
{
memcpy
((
void
*
)
&
ru
->
common
.
beam_id
[
i
][
slot
*
fp
->
symbols_per_slot
+
l
],
(
void
*
)
&
ru
->
gNB_list
[
0
]
->
common_vars
.
beam_id
[
i
][
slot
*
fp
->
symbols_per_slot
+
l
],
(
fp
->
symbols_per_slot
>>
1
)
*
sizeof
(
uint8_t
));
memcpy
((
void
*
)
&
ru
->
common
.
beam_id
[
i
][
slot
*
fp
->
symbols_per_slot
+
l
],
(
void
*
)
&
ru
->
gNB_list
[
0
]
->
common_vars
.
beam_id
[
i
][
slot
*
fp
->
symbols_per_slot
+
l
],
(
fp
->
symbols_per_slot
>>
1
)
*
sizeof
(
uint8_t
));
}
}
if
(
ru
->
nb_tx
==
1
&&
ru
->
nb_log_antennas
==
1
)
{
memcpy
((
void
*
)
&
ru
->
common
.
txdataF_BF
[
0
][
l
*
fp
->
ofdm_symbol_size
],
(
void
*
)
&
ru
->
gNB_list
[
0
]
->
common_vars
.
txdataF
[
0
][
txdataF_offset
+
l
*
fp
->
ofdm_symbol_size
],
(
fp
->
samples_per_slot_wCP
>>
1
)
*
sizeof
(
int32_t
));
memcpy
((
void
*
)
&
ru
->
common
.
txdataF_BF
[
0
][
l
*
fp
->
ofdm_symbol_size
],
(
void
*
)
&
ru
->
gNB_list
[
0
]
->
common_vars
.
txdataF
[
0
][
txdataF_offset
+
l
*
fp
->
ofdm_symbol_size
],
(
fp
->
samples_per_slot_wCP
>>
1
)
*
sizeof
(
int32_t
));
}
else
if
(
ru
->
do_precoding
==
0
)
{
int
gNB_tx
=
ru
->
gNB_list
[
0
]
->
frame_parms
.
nb_antennas_tx
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
79a85be4
...
...
@@ -2188,7 +2188,7 @@ uint16_t nr_generate_ulsch_pdu(uint8_t *sdus_payload,
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
F
=
0
;
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
LCID
=
sdu_lcids
[
i
];
((
NR_MAC_SUBHEADER_SHORT
*
)
mac_pdu_ptr
)
->
L
=
(
unsigned
char
)
sdu_lengths
[
i
];
mac_pdu_ptr
+=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
mac_pdu_ptr
+=
sizeof
(
NR_MAC_SUBHEADER_SHORT
);
}
else
{
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
R
=
0
;
((
NR_MAC_SUBHEADER_LONG
*
)
mac_pdu_ptr
)
->
F
=
1
;
...
...
@@ -2276,7 +2276,9 @@ uint16_t nr_generate_ulsch_pdu(uint8_t *sdus_payload,
if
(
buflen
>
0
)
// If the buflen is provided
padding_bytes
=
buflen
+
pdu
-
(
unsigned
char
*
)
mac_pdu_ptr
;
AssertFatal
(
padding_bytes
>=
0
,
""
);
// Compute final offset for padding
if
(
post_padding
||
padding_bytes
>
0
)
{
((
NR_MAC_SUBHEADER_FIXED
*
)
mac_pdu_ptr
)
->
R
=
0
;
...
...
openair2/LAYER2/nr_pdcp/nr_pdcp_entity.c
View file @
79a85be4
...
...
@@ -66,7 +66,7 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
}
/* SRBs always have MAC-I, even if integrity is not active */
if
(
entity
->
has_integrity
||
entity
->
type
==
NR_PDCP_SRB
)
{
if
(
entity
->
has_integrity
||
entity
->
type
==
NR_PDCP_SRB
)
{
integrity_size
=
4
;
}
else
{
integrity_size
=
0
;
...
...
openair2/LAYER2/nr_rlc/nr_rlc_oai_api.c
View file @
79a85be4
...
...
@@ -47,6 +47,7 @@ extern RAN_CONTEXT_t RC;
#include <stdint.h>
#include <executables/softmodem-common.h>
static
nr_rlc_ue_manager_t
*
nr_rlc_ue_manager
;
/* TODO: handle time a bit more properly */
...
...
openair2/RRC/NR_UE/rrc_UE.c
View file @
79a85be4
...
...
@@ -1257,7 +1257,10 @@ nr_rrc_ue_process_masterCellGroup(
(
void
**
)
&
cellGroupConfig
,
(
uint8_t
*
)
masterCellGroup
->
buf
,
masterCellGroup
->
size
,
0
,
0
);
xer_fprint
(
stdout
,
&
asn_DEF_NR_CellGroupConfig
,
(
const
void
*
)
cellGroupConfig
);
if
(
LOG_DEBUGFLAG
(
DEBUG_ASN1
)
)
{
xer_fprint
(
stdout
,
&
asn_DEF_NR_CellGroupConfig
,
(
const
void
*
)
cellGroupConfig
);
}
if
(
cellGroupConfig
->
spCellConfig
!=
NULL
&&
cellGroupConfig
->
spCellConfig
->
reconfigurationWithSync
!=
NULL
){
//TODO (perform Reconfiguration with sync according to 5.3.5.5.2)
...
...
@@ -2200,7 +2203,6 @@ nr_rrc_ue_establish_srb2(
ie
->
nonCriticalExtension
->
masterCellGroup
);
}
if
(
ie
->
radioBearerConfig
!=
NULL
)
{
LOG_I
(
NR_RRC
,
"radio Bearer Configuration is present
\n
"
);
nr_sa_rrc_ue_process_radioBearerConfig
(
ctxt_pP
,
gNB_index
,
ie
->
radioBearerConfig
);
...
...
@@ -2304,9 +2306,9 @@ nr_rrc_ue_establish_srb2(
return
-
1
;
}
//
if ( LOG_DEBUGFLAG(DEBUG_ASN1) ) {
if
(
LOG_DEBUGFLAG
(
DEBUG_ASN1
)
)
{
xer_fprint
(
stdout
,
&
asn_DEF_NR_DL_DCCH_Message
,(
void
*
)
dl_dcch_msg
);
//
}
}
if
(
dl_dcch_msg
->
message
.
present
==
NR_DL_DCCH_MessageType_PR_c1
)
{
switch
(
dl_dcch_msg
->
message
.
choice
.
c1
->
present
)
{
...
...
openair3/NGAP/ngap_gNB_nas_procedures.c
View file @
79a85be4
...
...
@@ -771,7 +771,10 @@ int ngap_gNB_initial_ctxt_resp(
//item->pDUSessionResourceSetupResponseTransfer.buf = res.buffer;
//item->pDUSessionResourceSetupResponseTransfer.size = res.result.encoded;
xer_fprint
(
stdout
,
&
asn_DEF_NGAP_PDUSessionResourceSetupResponseTransfer
,
pdusessionTransfer_p
);
if
(
asn1_xer_print
)
{
xer_fprint
(
stdout
,
&
asn_DEF_NGAP_PDUSessionResourceSetupResponseTransfer
,
pdusessionTransfer_p
);
}
memset
(
pdusessionTransfer_buffer
,
0
,
1000
);
asn_enc_rval_t
enc_rval
=
aper_encode_to_buffer
(
&
asn_DEF_NGAP_PDUSessionResourceSetupResponseTransfer
,
NULL
,
...
...
@@ -858,7 +861,9 @@ int ngap_gNB_initial_ctxt_resp(
ASN_SEQUENCE_ADD
(
&
out
->
protocolIEs
.
list
,
ie
);
}
xer_fprint
(
stdout
,
&
asn_DEF_NGAP_NGAP_PDU
,
&
pdu
);
if
(
asn1_xer_print
)
{
xer_fprint
(
stdout
,
&
asn_DEF_NGAP_NGAP_PDU
,
&
pdu
);
}
if
(
ngap_gNB_encode_pdu
(
&
pdu
,
&
buffer
,
&
length
)
<
0
)
{
NGAP_ERROR
(
"Failed to encode InitialContextSetupResponse
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment