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
Model registry
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
oai
openairinterface5G
Commits
141577c8
Commit
141577c8
authored
8 months ago
by
Robert Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Refactor code and make shorter through ternary operator
parent
279bd179
No related branches found
No related tags found
2 merge requests
!2839
Integration: `2024.w27`
,
!2835
Demote logs for NR band and duplex spacing
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/utils/nr/nr_common.c
+1
-7
1 addition, 7 deletions
common/utils/nr/nr_common.c
with
1 addition
and
7 deletions
common/utils/nr/nr_common.c
+
1
−
7
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.
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