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
spbro
OpenXG-RAN
Commits
2c289c45
Commit
2c289c45
authored
Jan 10, 2022
by
Guido Casati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes after code review
parent
8202180a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+8
-8
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+1
-1
No files found.
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
2c289c45
...
...
@@ -42,14 +42,14 @@ void set_tdd_config_nr_ue(fapi_nr_config_request_t *cfg,
int
mu
,
NR_TDD_UL_DL_ConfigCommon_t
*
tdd_config
)
{
int
nrofDownlinkSlots
=
tdd_config
->
pattern1
.
nrofDownlinkSlots
;
int
nrofDownlinkSymbols
=
tdd_config
->
pattern1
.
nrofDownlinkSymbols
;
int
nrofUplinkSlots
=
tdd_config
->
pattern1
.
nrofUplinkSlots
;
int
nrofUplinkSymbols
=
tdd_config
->
pattern1
.
nrofUplinkSymbols
;
const
int
nrofDownlinkSlots
=
tdd_config
->
pattern1
.
nrofDownlinkSlots
;
const
int
nrofDownlinkSymbols
=
tdd_config
->
pattern1
.
nrofDownlinkSymbols
;
const
int
nrofUplinkSlots
=
tdd_config
->
pattern1
.
nrofUplinkSlots
;
const
int
nrofUplinkSymbols
=
tdd_config
->
pattern1
.
nrofUplinkSymbols
;
int
slot_number
=
0
;
int
nb_periods_per_frame
=
get_nb_periods_per_frame
(
tdd_config
->
pattern1
.
dl_UL_TransmissionPeriodicity
);
int
nb_slots_to_set
=
TDD_CONFIG_NB_FRAMES
*
(
1
<<
mu
)
*
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
;
int
nb_slots_per_period
=
((
1
<<
mu
)
*
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
)
/
nb_periods_per_frame
;
const
int
nb_periods_per_frame
=
get_nb_periods_per_frame
(
tdd_config
->
pattern1
.
dl_UL_TransmissionPeriodicity
);
const
int
nb_slots_to_set
=
TDD_CONFIG_NB_FRAMES
*
(
1
<<
mu
)
*
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
;
const
int
nb_slots_per_period
=
((
1
<<
mu
)
*
NR_NUMBER_OF_SUBFRAMES_PER_FRAME
)
/
nb_periods_per_frame
;
cfg
->
tdd_table
.
tdd_period_in_slots
=
nb_slots_per_period
;
if
(
(
nrofDownlinkSymbols
+
nrofUplinkSymbols
)
==
0
)
...
...
@@ -105,7 +105,7 @@ void set_tdd_config_nr_ue(fapi_nr_config_request_t *cfg,
}
}
LOG_I
(
NR_MAC
,
"TDD has been properly configur
at
ed
\n
"
);
LOG_I
(
NR_MAC
,
"TDD has been properly configured
\n
"
);
}
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
2c289c45
...
...
@@ -422,7 +422,7 @@ void nr_schedule_msg2(uint16_t rach_frame, uint16_t rach_slot,
}
else
{
if
(
frame_type
==
TDD
)
AssertFatal
(
1
==
0
,
"Dynamic TDD not handled yet
\n
"
);
AssertFatal
(
frame_type
==
FDD
,
"Dynamic TDD not handled yet
\n
"
);
}
...
...
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