Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
OpenXG
OpenXG UE
Commits
2922285b
Commit
2922285b
authored
Jul 31, 2020
by
kn.raju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolving ra-rnti miss-match
parent
a952c94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+6
-9
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
2922285b
...
...
@@ -94,17 +94,16 @@ int16_t ssb_index_from_prach(module_id_t module_idP,
&
N_dur
,
&
RA_sfn_index
,
&
N_RA_slot
);
uint8_t
index
,
slot_index
=
0
;
uint8_t
index
=
0
,
slot_index
=
0
;
for
(
slot_index
=
0
;
slot_index
<
N_RA_slot
;
slot_index
++
)
{
if
(
N_RA_slot
<=
1
)
{
//1 PRACH slot in a subframe
if
((
mu
==
1
)
||
(
mu
==
3
))
slot_index
=
1
;
//For scs = 30khz and 120khz
}
for
(
index
=
0
;
index
<
N_t_slot
;
index
++
)
{
start_symbol
=
start_symbol
+
index
*
N_dur
+
14
*
slot_index
;
temp_start_symbol
=
start_symbol
%
14
;
for
(
int
i
=
0
;
i
<
N_t_slot
;
i
++
)
{
temp_start_symbol
=
(
start_symbol
+
i
*
N_dur
+
14
*
slot_index
)
%
14
;
if
(
symbol
==
temp_start_symbol
)
{
start_symbol_index
=
i
ndex
;
start_symbol_index
=
i
;
break
;
}
}
...
...
@@ -114,7 +113,6 @@ int16_t ssb_index_from_prach(module_id_t module_idP,
slot_index
=
0
;
//For scs = 30khz and 120khz
}
index
=
0
;
// prach_occasion_id = subframe_index * N_t_slot * N_RA_slot * fdm + N_RA_slot_index * N_t_slot * fdm + freq_index + fdm * start_symbol_index;
prach_occasion_id
=
(
RA_sfn_index
+
slot_index
)
*
N_t_slot
*
fdm
+
start_symbol_index
*
fdm
+
freq_index
;
//one RO is shared by one or more SSB
...
...
@@ -246,10 +244,9 @@ void schedule_nr_prach(module_id_t module_idP, frame_t frameP, sub_frame_t slotP
N_RA_slot
=
1
;
//For scs = 30khz and 120khz
}
// start_symbol = start_symbol + N_t_slot * N_dur + 14 * N_RA_slot;
// start_symbol = start_symbol
_from_configuration
+ N_t_slot * N_dur + 14 * N_RA_slot;
for
(
int
index
=
0
;
index
<
N_t_slot
;
index
++
)
{
start_symbol
=
start_symbol
+
index
*
N_dur
+
14
*
N_RA_slot
;
temp_start_symbol
=
start_symbol
%
14
;
temp_start_symbol
=
(
start_symbol
+
index
*
N_dur
+
14
*
N_RA_slot
)
%
14
;
UL_tti_req
->
SFN
=
frameP
;
UL_tti_req
->
Slot
=
slotP
;
...
...
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