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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
1c0640a2
Commit
1c0640a2
authored
Jun 11, 2021
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove SRB configuration from gNB in NSA
parent
09a6d825
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
38 deletions
+43
-38
openair2/RRC/NR/rrc_gNB_nsa.c
openair2/RRC/NR/rrc_gNB_nsa.c
+6
-6
openair2/RRC/NR/rrc_gNB_reconfig.c
openair2/RRC/NR/rrc_gNB_reconfig.c
+37
-32
No files found.
openair2/RRC/NR/rrc_gNB_nsa.c
View file @
1c0640a2
...
...
@@ -377,7 +377,7 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
nr_rrc_pdcp_config_asn1_req
(
&
ctxt
,
ue_context_p
->
ue_context
.
rb_config
->
srb_ToAddModList
,
(
NR_SRB_ToAddModList_t
*
)
NULL
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToAddModList
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToReleaseList
,
(
ue_context_p
->
ue_context
.
integrity_algorithm
<<
4
)
|
ue_context_p
->
ue_context
.
ciphering_algorithm
,
...
...
@@ -390,11 +390,11 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
ue_context_p
->
ue_context
.
secondaryCellGroup
->
rlc_BearerToAddModList
);
nr_rrc_rlc_config_asn1_req
(
&
ctxt
,
ue_context_p
->
ue_context
.
rb_config
->
srb_ToAddModList
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToAddModList
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToReleaseList
,
(
LTE_PMCH_InfoList_r9_t
*
)
NULL
,
ue_context_p
->
ue_context
.
secondaryCellGroup
->
rlc_BearerToAddModList
);
(
NR_SRB_ToAddModList_t
*
)
NULL
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToAddModList
,
ue_context_p
->
ue_context
.
rb_config
->
drb_ToReleaseList
,
(
LTE_PMCH_InfoList_r9_t
*
)
NULL
,
ue_context_p
->
ue_context
.
secondaryCellGroup
->
rlc_BearerToAddModList
);
LOG_D
(
RRC
,
"%s:%d: done RRC PDCP/RLC ASN1 request for UE rnti %x
\n
"
,
__FUNCTION__
,
__LINE__
,
ctxt
.
rnti
);
...
...
openair2/RRC/NR/rrc_gNB_reconfig.c
View file @
1c0640a2
...
...
@@ -164,23 +164,25 @@ void fill_default_secondaryCellGroup(NR_ServingCellConfigCommon_t *servingcellco
secondaryCellGroup
->
rlc_BearerToAddModList
=
calloc
(
1
,
sizeof
(
*
secondaryCellGroup
->
rlc_BearerToAddModList
));
ASN_SEQUENCE_ADD
(
&
secondaryCellGroup
->
rlc_BearerToAddModList
->
list
,
RLC_BearerConfig
);
NR_RLC_BearerConfig_t
*
RLC_BearerConfig_srb1
=
calloc
(
1
,
sizeof
(
*
RLC_BearerConfig_srb1
));
nr_rlc_bearer_init
(
RLC_BearerConfig_srb1
,
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
);
nr_drb_config
(
RLC_BearerConfig_srb1
->
rlc_Config
,
NR_RLC_Config_PR_am
);
nr_rlc_bearer_init_ul_spec
(
RLC_BearerConfig_srb1
->
mac_LogicalChannelConfig
);
// FIXME: this should be obtained in nr_rlc_bearer_init_ul_spec()
*
RLC_BearerConfig_srb1
->
mac_LogicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
=
0
;
ASN_SEQUENCE_ADD
(
&
secondaryCellGroup
->
rlc_BearerToAddModList
->
list
,
RLC_BearerConfig_srb1
);
NR_RLC_BearerConfig_t
*
RLC_BearerConfig_srb2
=
calloc
(
1
,
sizeof
(
*
RLC_BearerConfig_srb2
));
nr_rlc_bearer_init
(
RLC_BearerConfig_srb2
,
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
);
nr_drb_config
(
RLC_BearerConfig_srb2
->
rlc_Config
,
NR_RLC_Config_PR_am
);
nr_rlc_bearer_init_ul_spec
(
RLC_BearerConfig_srb2
->
mac_LogicalChannelConfig
);
// FIXME: this should be obtained in nr_rlc_bearer_init_ul_spec()
*
RLC_BearerConfig_srb2
->
mac_LogicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
=
0
;
RLC_BearerConfig_srb2
->
logicalChannelIdentity
=
2
;
RLC_BearerConfig_srb2
->
servedRadioBearer
->
choice
.
srb_Identity
=
2
;
ASN_SEQUENCE_ADD
(
&
secondaryCellGroup
->
rlc_BearerToAddModList
->
list
,
RLC_BearerConfig_srb2
);
if
(
0
)
{
NR_RLC_BearerConfig_t
*
RLC_BearerConfig_srb1
=
calloc
(
1
,
sizeof
(
*
RLC_BearerConfig_srb1
));
nr_rlc_bearer_init
(
RLC_BearerConfig_srb1
,
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
);
nr_drb_config
(
RLC_BearerConfig_srb1
->
rlc_Config
,
NR_RLC_Config_PR_am
);
nr_rlc_bearer_init_ul_spec
(
RLC_BearerConfig_srb1
->
mac_LogicalChannelConfig
);
// FIXME: this should be obtained in nr_rlc_bearer_init_ul_spec()
*
RLC_BearerConfig_srb1
->
mac_LogicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
=
0
;
ASN_SEQUENCE_ADD
(
&
secondaryCellGroup
->
rlc_BearerToAddModList
->
list
,
RLC_BearerConfig_srb1
);
NR_RLC_BearerConfig_t
*
RLC_BearerConfig_srb2
=
calloc
(
1
,
sizeof
(
*
RLC_BearerConfig_srb2
));
nr_rlc_bearer_init
(
RLC_BearerConfig_srb2
,
NR_RLC_BearerConfig__servedRadioBearer_PR_srb_Identity
);
nr_drb_config
(
RLC_BearerConfig_srb2
->
rlc_Config
,
NR_RLC_Config_PR_am
);
nr_rlc_bearer_init_ul_spec
(
RLC_BearerConfig_srb2
->
mac_LogicalChannelConfig
);
// FIXME: this should be obtained in nr_rlc_bearer_init_ul_spec()
*
RLC_BearerConfig_srb2
->
mac_LogicalChannelConfig
->
ul_SpecificParameters
->
logicalChannelGroup
=
0
;
RLC_BearerConfig_srb2
->
logicalChannelIdentity
=
2
;
RLC_BearerConfig_srb2
->
servedRadioBearer
->
choice
.
srb_Identity
=
2
;
ASN_SEQUENCE_ADD
(
&
secondaryCellGroup
->
rlc_BearerToAddModList
->
list
,
RLC_BearerConfig_srb2
);
}
secondaryCellGroup
->
mac_CellGroupConfig
=
calloc
(
1
,
sizeof
(
*
secondaryCellGroup
->
mac_CellGroupConfig
));
secondaryCellGroup
->
mac_CellGroupConfig
->
drx_Config
=
NULL
;
...
...
@@ -1275,21 +1277,24 @@ void fill_default_rbconfig(NR_RadioBearerConfig_t *rbconfig,
e_NR_CipheringAlgorithm
ciphering_algorithm
,
e_NR_SecurityConfig__keyToUse
key_to_use
)
{
rbconfig
->
srb_ToAddModList
=
calloc
(
1
,
sizeof
(
*
rbconfig
->
srb_ToAddModList
));
NR_SRB_ToAddMod_t
*
srb1_ToAddMod
=
calloc
(
1
,
sizeof
(
*
srb1_ToAddMod
));
srb1_ToAddMod
->
srb_Identity
=
1
;
srb1_ToAddMod
->
reestablishPDCP
=
NULL
;
srb1_ToAddMod
->
discardOnPDCP
=
NULL
;
srb1_ToAddMod
->
pdcp_Config
=
NULL
;
ASN_SEQUENCE_ADD
(
&
rbconfig
->
srb_ToAddModList
->
list
,
srb1_ToAddMod
);
NR_SRB_ToAddMod_t
*
srb2_ToAddMod
=
calloc
(
1
,
sizeof
(
*
srb2_ToAddMod
));
srb2_ToAddMod
->
srb_Identity
=
2
;
srb2_ToAddMod
->
reestablishPDCP
=
NULL
;
srb2_ToAddMod
->
discardOnPDCP
=
NULL
;
srb2_ToAddMod
->
pdcp_Config
=
NULL
;
ASN_SEQUENCE_ADD
(
&
rbconfig
->
srb_ToAddModList
->
list
,
srb2_ToAddMod
);
rbconfig
->
srb_ToAddModList
=
NULL
;
if
(
0
)
{
rbconfig
->
srb_ToAddModList
=
calloc
(
1
,
sizeof
(
*
rbconfig
->
srb_ToAddModList
));
NR_SRB_ToAddMod_t
*
srb1_ToAddMod
=
calloc
(
1
,
sizeof
(
*
srb1_ToAddMod
));
srb1_ToAddMod
->
srb_Identity
=
1
;
srb1_ToAddMod
->
reestablishPDCP
=
NULL
;
srb1_ToAddMod
->
discardOnPDCP
=
NULL
;
srb1_ToAddMod
->
pdcp_Config
=
NULL
;
ASN_SEQUENCE_ADD
(
&
rbconfig
->
srb_ToAddModList
->
list
,
srb1_ToAddMod
);
NR_SRB_ToAddMod_t
*
srb2_ToAddMod
=
calloc
(
1
,
sizeof
(
*
srb2_ToAddMod
));
srb2_ToAddMod
->
srb_Identity
=
2
;
srb2_ToAddMod
->
reestablishPDCP
=
NULL
;
srb2_ToAddMod
->
discardOnPDCP
=
NULL
;
srb2_ToAddMod
->
pdcp_Config
=
NULL
;
ASN_SEQUENCE_ADD
(
&
rbconfig
->
srb_ToAddModList
->
list
,
srb2_ToAddMod
);
}
rbconfig
->
srb3_ToRelease
=
NULL
;
rbconfig
->
drb_ToAddModList
=
calloc
(
1
,
sizeof
(
*
rbconfig
->
drb_ToAddModList
));
...
...
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