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
6c316395
Commit
6c316395
authored
Aug 18, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only call NR_PHY_config_req when no (n)FAPI
parent
b712e775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
16 deletions
+13
-16
nfapi/oai_integration/nfapi_vnf.c
nfapi/oai_integration/nfapi_vnf.c
+0
-1
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+13
-15
No files found.
nfapi/oai_integration/nfapi_vnf.c
View file @
6c316395
...
...
@@ -1687,7 +1687,6 @@ int nr_config_resp_cb(nfapi_vnf_config_t *config, int p5_idx, nfapi_nr_config_re
nfapi_nr_start_request_scf_t
req
;
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] Received NFAPI_CONFIG_RESP idx:%d phy_id:%d
\n
"
,
p5_idx
,
resp
->
header
.
phy_id
);
NFAPI_TRACE
(
NFAPI_TRACE_INFO
,
"[VNF] Calling oai_enb_init()
\n
"
);
oai_enb_init
();
// TODO: change to gnb
memset
(
&
req
,
0
,
sizeof
(
req
));
req
.
header
.
message_id
=
NFAPI_NR_PHY_MSG_TYPE_START_REQUEST
;
req
.
header
.
phy_id
=
resp
->
header
.
phy_id
;
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
6c316395
...
...
@@ -489,23 +489,21 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
scc
);
LOG_D
(
NR_MAC
,
"%s() %s:%d RC.nrmac[Mod_idP]->if_inst->NR_PHY_config_req:%p
\n
"
,
__FUNCTION__
,
__FILE__
,
__LINE__
,
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
);
// if in nFAPI mode
if
(
(
NFAPI_MODE
==
NFAPI_MODE_PNF
||
NFAPI_MODE
==
NFAPI_MODE_VNF
)
&&
(
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
==
NULL
)
){
while
(
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
==
NULL
)
{
// DJP AssertFatal(RC.nrmac[Mod_idP]->if_inst->PHY_config_req != NULL,"if_inst->phy_config_request is null\n");
usleep
(
100
*
1000
);
printf
(
"Waiting for PHY_config_req
\n
"
);
}
if
(
NFAPI_MODE
==
NFAPI_MODE_PNF
||
NFAPI_MODE
==
NFAPI_MODE_VNF
)
{
// fake that the gNB is configured in nFAPI mode, which would normally be
// done in a NR_PHY_config_req, but in this mode, there is no PHY
RC
.
gNB
[
Mod_idP
]
->
configured
=
1
;
}
else
{
NR_PHY_Config_t
phycfg
=
{
.
Mod_id
=
Mod_idP
,
.
CC_id
=
0
,
.
cfg
=
&
RC
.
nrmac
[
Mod_idP
]
->
config
[
0
]
};
DevAssert
(
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
);
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
(
&
phycfg
);
}
RC
.
nrmac
[
Mod_idP
]
->
minRXTXTIMEpdsch
=
minRXTXTIMEpdsch
;
NR_PHY_Config_t
phycfg
;
phycfg
.
Mod_id
=
Mod_idP
;
phycfg
.
CC_id
=
0
;
phycfg
.
cfg
=
&
RC
.
nrmac
[
Mod_idP
]
->
config
[
0
];
if
(
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
)
RC
.
nrmac
[
Mod_idP
]
->
if_inst
->
NR_PHY_config_req
(
&
phycfg
);
RC
.
nrmac
[
Mod_idP
]
->
minRXTXTIMEpdsch
=
minRXTXTIMEpdsch
;
find_SSB_and_RO_available
(
Mod_idP
);
const
NR_TDD_UL_DL_Pattern_t
*
tdd
=
scc
->
tdd_UL_DL_ConfigurationCommon
?
&
scc
->
tdd_UL_DL_ConfigurationCommon
->
pattern1
:
NULL
;
...
...
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