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
141577c8
Commit
141577c8
authored
1 year ago
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor code and make shorter through ternary operator
parent
279bd179
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+1
-7
No files found.
common/utils/nr/nr_common.c
View file @
141577c8
...
@@ -644,14 +644,8 @@ int get_dmrs_port(int nl, uint16_t dmrs_ports)
...
@@ -644,14 +644,8 @@ int get_dmrs_port(int nl, uint16_t dmrs_ports)
frame_type_t
get_frame_type
(
uint16_t
current_band
,
uint8_t
scs_index
)
frame_type_t
get_frame_type
(
uint16_t
current_band
,
uint8_t
scs_index
)
{
{
frame_type_t
current_type
;
int32_t
delta_duplex
=
get_delta_duplex
(
current_band
,
scs_index
);
int32_t
delta_duplex
=
get_delta_duplex
(
current_band
,
scs_index
);
frame_type_t
current_type
=
delta_duplex
==
0
?
TDD
:
FDD
;
if
(
delta_duplex
==
0
)
current_type
=
TDD
;
else
current_type
=
FDD
;
LOG_D
(
NR_MAC
,
"NR band %d, duplex mode %s, duplex spacing = %d KHz
\n
"
,
current_band
,
duplex_mode
[
current_type
],
delta_duplex
);
LOG_D
(
NR_MAC
,
"NR band %d, duplex mode %s, duplex spacing = %d KHz
\n
"
,
current_band
,
duplex_mode
[
current_type
],
delta_duplex
);
return
current_type
;
return
current_type
;
}
}
...
...
This diff is collapsed.
Click to expand it.
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