Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
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-RAN
Commits
b15f1f18
Commit
b15f1f18
authored
Jan 12, 2022
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix number of RRCSetup encoded bytes
parent
4f50fcce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
13 deletions
+21
-13
openair2/RRC/LTE/rrc_defs.h
openair2/RRC/LTE/rrc_defs.h
+1
-1
openair2/RRC/NR/MESSAGES/asn1_msg.c
openair2/RRC/NR/MESSAGES/asn1_msg.c
+1
-1
openair2/RRC/NR/MESSAGES/asn1_msg.h
openair2/RRC/NR/MESSAGES/asn1_msg.h
+1
-1
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+18
-10
No files found.
openair2/RRC/LTE/rrc_defs.h
View file @
b15f1f18
...
...
@@ -484,7 +484,7 @@ typedef struct MEASUREMENT_INFO_s {
typedef
struct
{
char
Payload
[
RRC_BUFFER_SIZE_MAX
];
char
Header
[
RRC_HEADER_SIZE_MAX
];
char
payload_size
;
uint16_t
payload_size
;
}
RRC_BUFFER
;
#define RRC_BUFFER_SIZE sizeof(RRC_BUFFER)
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.c
View file @
b15f1f18
...
...
@@ -2059,7 +2059,7 @@ void fill_initial_cellGroupConfig(rnti_t rnti,
}
//------------------------------------------------------------------------------
uint8
_t
do_RRCSetup
(
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
int16
_t
do_RRCSetup
(
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
uint8_t
*
const
buffer
,
const
uint8_t
transaction_id
,
OCTET_STRING_t
*
masterCellGroup_from_DU
,
...
...
openair2/RRC/NR/MESSAGES/asn1_msg.h
View file @
b15f1f18
...
...
@@ -116,7 +116,7 @@ void fill_initial_cellGroupConfig(rnti_t rnti,
void
fill_mastercellGroupConfig
(
NR_CellGroupConfig_t
*
cellGroupConfig
,
NR_CellGroupConfig_t
*
ue_context_mastercellGroup
);
uint8
_t
do_RRCSetup
(
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
int16
_t
do_RRCSetup
(
rrc_gNB_ue_context_t
*
const
ue_context_pP
,
uint8_t
*
const
buffer
,
const
uint8_t
transaction_id
,
OCTET_STRING_t
*
masterCellGroup_from_DU
,
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
b15f1f18
...
...
@@ -399,11 +399,15 @@ rrc_gNB_generate_RRCSetup(
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
gNB_RRC_INST
*
rrc
=
RC
.
nrrrc
[
ctxt_pP
->
module_id
];
NR_ServingCellConfig_t
*
servingcellconfigdedicated
=
rrc
->
configuration
.
scd
;
ue_p
->
Srb0
.
Tx_buffer
.
payload_size
=
do_RRCSetup
(
ue_context_pP
,
(
uint8_t
*
)
ue_p
->
Srb0
.
Tx_buffer
.
Payload
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
),
masterCellGroup_from_DU
,
scc
,
servingcellconfigdedicated
,
&
rrc
->
carrier
);
int16_t
ret
=
do_RRCSetup
(
ue_context_pP
,
(
uint8_t
*
)
ue_p
->
Srb0
.
Tx_buffer
.
Payload
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
),
masterCellGroup_from_DU
,
scc
,
servingcellconfigdedicated
,
&
rrc
->
carrier
);
AssertFatal
(
ret
>
0
,
"Error generating RRCSetup for RRCSetupRequest
\n
"
);
ue_p
->
Srb0
.
Tx_buffer
.
payload_size
=
ret
;
LOG_DUMPMSG
(
NR_RRC
,
DEBUG_RRC
,
(
char
*
)(
ue_p
->
Srb0
.
Tx_buffer
.
Payload
),
...
...
@@ -519,11 +523,15 @@ rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(
ue_context_pP
=
rrc_gNB_get_next_free_ue_context
(
ctxt_pP
,
rrc_instance_p
,
0
);
gNB_RRC_UE_t
*
ue_p
=
&
ue_context_pP
->
ue_context
;
ue_p
->
Srb0
.
Tx_buffer
.
payload_size
=
do_RRCSetup
(
ue_context_pP
,
(
uint8_t
*
)
ue_p
->
Srb0
.
Tx_buffer
.
Payload
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
),
NULL
,
scc
,
servingcellconfigdedicated
,
&
rrc_instance_p
->
carrier
);
int16_t
ret
=
do_RRCSetup
(
ue_context_pP
,
(
uint8_t
*
)
ue_p
->
Srb0
.
Tx_buffer
.
Payload
,
rrc_gNB_get_next_transaction_identifier
(
ctxt_pP
->
module_id
),
NULL
,
scc
,
servingcellconfigdedicated
,
&
rrc_instance_p
->
carrier
);
AssertFatal
(
ret
>
0
,
"Error generating RRCSetup for RRCReestablishmentRequest
\n
"
);
ue_p
->
Srb0
.
Tx_buffer
.
payload_size
=
ret
;
LOG_DUMPMSG
(
NR_RRC
,
DEBUG_RRC
,
(
char
*
)(
ue_p
->
Srb0
.
Tx_buffer
.
Payload
),
...
...
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