Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mingxuan Li
openairinterface5G
Commits
6c316395
Commit
6c316395
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Only call NR_PHY_config_req when no (n)FAPI
parent
b712e775
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nfapi/oai_integration/nfapi_vnf.c
+0
-1
0 additions, 1 deletion
nfapi/oai_integration/nfapi_vnf.c
openair2/LAYER2/NR_MAC_gNB/config.c
+13
-15
13 additions, 15 deletions
openair2/LAYER2/NR_MAC_gNB/config.c
with
13 additions
and
16 deletions
nfapi/oai_integration/nfapi_vnf.c
+
0
−
1
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
;
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/config.c
+
13
−
15
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment