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
canghaiwuhen
OpenXG-RAN
Commits
16b80425
Commit
16b80425
authored
Oct 29, 2020
by
Shweta Shrivastava
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small fix
parent
c0d123b9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+2
-2
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
16b80425
...
@@ -2508,7 +2508,7 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
...
@@ -2508,7 +2508,7 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
// Get the numerology to calculate the Tx frame and slot
// Get the numerology to calculate the Tx frame and slot
mu
=
mac
->
ULbwp
[
0
]
->
bwp_Common
->
genericParameters
.
subcarrierSpacing
;
mu
=
mac
->
ULbwp
[
0
]
->
bwp_Common
->
genericParameters
.
subcarrierSpacing
;
// Get slot offset K2 which will be used to calculate TX slot
// Get slot offset K2 which will be used to calculate TX slot
k2
=
get_k2
(
mac
,
dci
->
frequency_hopping_flag
.
val
);
k2
=
get_k2
(
mac
,
dci
->
time_domain_assignment
.
val
);
// Calculate TX slot and frame
// Calculate TX slot and frame
slot_tx
=
(
slot
+
k2
)
%
nr_slots_per_frame
[
mu
];
slot_tx
=
(
slot
+
k2
)
%
nr_slots_per_frame
[
mu
];
frame_tx
=
((
slot
+
k2
)
>
nr_slots_per_frame
[
mu
])
?
(
frame
+
1
)
%
1024
:
frame
;
frame_tx
=
((
slot
+
k2
)
>
nr_slots_per_frame
[
mu
])
?
(
frame
+
1
)
%
1024
:
frame
;
...
@@ -2597,7 +2597,7 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
...
@@ -2597,7 +2597,7 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
// Get the numerology to calculate the Tx frame and slot
// Get the numerology to calculate the Tx frame and slot
mu
=
mac
->
ULbwp
[
0
]
->
bwp_Common
->
genericParameters
.
subcarrierSpacing
;
mu
=
mac
->
ULbwp
[
0
]
->
bwp_Common
->
genericParameters
.
subcarrierSpacing
;
// Get slot offset K2 which will be used to calculate TX slot
// Get slot offset K2 which will be used to calculate TX slot
k2
=
get_k2
(
mac
,
dci
->
frequency_hopping_flag
.
val
);
k2
=
get_k2
(
mac
,
dci
->
time_domain_assignment
.
val
);
// Calculate TX slot and frame
// Calculate TX slot and frame
slot_tx
=
(
slot
+
k2
)
%
nr_slots_per_frame
[
mu
];
slot_tx
=
(
slot
+
k2
)
%
nr_slots_per_frame
[
mu
];
frame_tx
=
((
slot
+
k2
)
>
nr_slots_per_frame
[
mu
])
?
(
frame
+
1
)
%
1024
:
frame
;
frame_tx
=
((
slot
+
k2
)
>
nr_slots_per_frame
[
mu
])
?
(
frame
+
1
)
%
1024
:
frame
;
...
...
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