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
0f1723a4
Commit
0f1723a4
authored
Oct 26, 2021
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly calling init_tun and nas_conf for SA and NSA
parent
99183b17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
+7
-13
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
+7
-13
No files found.
openair2/LAYER2/nr_pdcp/nr_pdcp_oai_api.c
View file @
0f1723a4
...
...
@@ -413,24 +413,18 @@ uint64_t nr_pdcp_module_init(uint64_t _pdcp_optmask, int id)
nas_getparams
();
if
(
UE_NAS_USE_TUN
)
{
char
*
ifsuffix_ue
=
get_softmodem_params
()
->
nsa
?
"nrue"
:
"ue"
;
int
num_if
=
(
NFAPI_MODE
==
NFAPI_UE_STUB_PNF
||
IS_SOFTMODEM_SIML1
||
NFAPI_MODE
==
NFAPI_MODE_STANDALONE_PNF
)
?
MAX_MOBILES_PER_ENB
:
1
;
netlink_init_tun
(
"nrue"
,
num_if
,
id
);
netlink_init_tun
(
ifsuffix_ue
,
num_if
,
id
);
//Add --nr-ip-over-lte option check for next line
if
(
IS_SOFTMODEM_NOS1
&&
get_softmodem_params
()
->
nsa
)
nas_config
(
1
,
1
,
3
,
"nrue"
);
else
if
(
IS_SOFTMODEM_NOS1
)
nas_config
(
1
,
1
,
2
,
"ue"
);
if
(
IS_SOFTMODEM_NOS1
)
nas_config
(
1
,
1
,
!
get_softmodem_params
()
->
nsa
?
2
:
3
,
ifsuffix_ue
);
LOG_I
(
PDCP
,
"UE pdcp will use tun interface
\n
"
);
start_pdcp_tun_ue
();
}
else
if
(
ENB_NAS_USE_TUN
)
{
if
(
get_softmodem_params
()
->
nsa
)
{
netlink_init_tun
(
"gnb"
,
1
,
id
);
nas_config
(
1
,
1
,
1
,
"gnb"
);
}
else
{
netlink_init_tun
(
"enb"
,
1
,
id
);
nas_config
(
1
,
1
,
1
,
"enb"
);
}
char
*
ifsuffix_base_s
=
get_softmodem_params
()
->
nsa
?
"gnb"
:
"enb"
;
netlink_init_tun
(
ifsuffix_base_s
,
1
,
id
);
nas_config
(
1
,
1
,
1
,
ifsuffix_base_s
);
LOG_I
(
PDCP
,
"ENB pdcp will use tun interface
\n
"
);
start_pdcp_tun_enb
();
}
else
{
...
...
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