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
6d7d075d
Commit
6d7d075d
authored
Apr 22, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor NR MAC config: mark unimplemented functions as such
parent
f2a8b5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
35 deletions
+11
-35
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+11
-35
No files found.
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
6d7d075d
...
...
@@ -99,48 +99,28 @@ static void process_rlcBearerConfig(struct NR_CellGroupConfig__rlc_BearerToAddMo
static
void
process_drx_Config
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
NR_SetupRelease_DRX_Config_t
*
drx_Config
)
{
if
(
!
drx_Config
)
return
;
AssertFatal
(
drx_Config
->
present
!=
NR_SetupRelease_DRX_Config_PR_NOTHING
,
"Cannot have NR_SetupRelease_DRX_Config_PR_NOTHING
\n
"
);
if
(
drx_Config
->
present
==
NR_SetupRelease_DRX_Config_PR_setup
)
{
LOG_I
(
NR_MAC
,
"Adding DRX config
\n
"
);
}
else
{
LOG_I
(
NR_MAC
,
"Removing DRX config
\n
"
);
}
AssertFatal
(
false
,
"%s() not implemented
\n
"
,
__func__
);
AssertFatal
(
drx_Config
->
present
!=
NR_SetupRelease_DRX_Config_PR_NOTHING
,
"Cannot have NR_SetupRelease_DRX_Config_PR_NOTHING
\n
"
);
}
static
void
process_schedulingRequestConfig
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
NR_SchedulingRequestConfig_t
*
schedulingRequestConfig
)
{
if
(
!
schedulingRequestConfig
)
return
;
LOG_I
(
NR_MAC
,
"Adding SchedulingRequestconfig
\n
"
);
AssertFatal
(
false
,
"%s() not implemented
\n
"
,
__func__
);
}
static
void
process_bsrConfig
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
NR_BSR_Config_t
*
bsr_Config
)
{
if
(
!
bsr_Config
)
return
;
LOG_I
(
NR_MAC
,
"Adding BSR config
\n
"
);
AssertFatal
(
false
,
"%s() not implemented
\n
"
,
__func__
);
}
static
void
process_tag_Config
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
NR_TAG_Config_t
*
tag_Config
)
{
if
(
!
tag_Config
)
return
;
LOG_I
(
NR_MAC
,
"Adding TAG config
\n
"
);
AssertFatal
(
false
,
"%s() not implemented
\n
"
,
__func__
);
}
static
void
process_phr_Config
(
NR_UE_sched_ctrl_t
*
sched_ctrl
,
NR_SetupRelease_PHR_Config_t
*
phr_Config
)
{
if
(
!
phr_Config
)
return
;
AssertFatal
(
phr_Config
->
present
!=
NR_SetupRelease_PHR_Config_PR_NOTHING
,
"Cannot have NR_SetupRelease_PHR_Config_PR_NOTHING
\n
"
);
if
(
phr_Config
->
present
==
NR_SetupRelease_PHR_Config_PR_setup
)
{
LOG_I
(
NR_MAC
,
"Adding PHR config
\n
"
);
}
else
{
LOG_I
(
NR_MAC
,
"Removing PHR config
\n
"
);
}
AssertFatal
(
false
,
"%s() not implemented
\n
"
,
__func__
);
}
void
process_CellGroup
(
NR_CellGroupConfig_t
*
CellGroup
,
NR_UE_sched_ctrl_t
*
sched_ctrl
)
...
...
@@ -149,15 +129,11 @@ void process_CellGroup(NR_CellGroupConfig_t *CellGroup, NR_UE_sched_ctrl_t *sche
NR_MAC_CellGroupConfig_t
*
mac_CellGroupConfig
=
CellGroup
->
mac_CellGroupConfig
;
if
(
mac_CellGroupConfig
)
{
process_drx_Config
(
sched_ctrl
,
mac_CellGroupConfig
->
drx_Config
);
process_schedulingRequestConfig
(
sched_ctrl
,
mac_CellGroupConfig
->
schedulingRequestConfig
);
process_bsrConfig
(
sched_ctrl
,
mac_CellGroupConfig
->
bsr_Config
);
process_tag_Config
(
sched_ctrl
,
mac_CellGroupConfig
->
tag_Config
);
process_phr_Config
(
sched_ctrl
,
mac_CellGroupConfig
->
phr_Config
);
}
else
{
// apply defaults
//process_drx_Config(sched_ctrl,mac_CellGroupConfig->drx_Config);
//process_schedulingRequestConfig(sched_ctrl,mac_CellGroupConfig->schedulingRequestConfig);
//process_bsrConfig(sched_ctrl,mac_CellGroupConfig->bsr_Config);
//process_tag_Config(sched_ctrl,mac_CellGroupConfig->tag_Config);
//process_phr_Config(sched_ctrl,mac_CellGroupConfig->phr_Config);
}
process_rlcBearerConfig
(
CellGroup
->
rlc_BearerToAddModList
,
CellGroup
->
rlc_BearerToReleaseList
,
sched_ctrl
);
...
...
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