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
promise
OpenXG-RAN
Commits
81f7ef4d
Commit
81f7ef4d
authored
Aug 07, 2020
by
kn.raju
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed initial prach_id frame&slot number
parent
8ad840cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
openair1/PHY/NR_TRANSPORT/nr_prach.c
openair1/PHY/NR_TRANSPORT/nr_prach.c
+8
-2
No files found.
openair1/PHY/NR_TRANSPORT/nr_prach.c
View file @
81f7ef4d
...
@@ -43,7 +43,10 @@ extern const char *prachfmt[9];
...
@@ -43,7 +43,10 @@ extern const char *prachfmt[9];
void
init_prach_list
(
PHY_VARS_gNB
*
gNB
)
{
void
init_prach_list
(
PHY_VARS_gNB
*
gNB
)
{
AssertFatal
(
gNB
!=
NULL
,
"gNB is null
\n
"
);
AssertFatal
(
gNB
!=
NULL
,
"gNB is null
\n
"
);
for
(
int
i
=
0
;
i
<
NUMBER_OF_NR_PRACH_MAX
;
i
++
)
gNB
->
prach_vars
.
list
[
i
].
frame
=-
1
;
for
(
int
i
=
0
;
i
<
NUMBER_OF_NR_PRACH_MAX
;
i
++
){
gNB
->
prach_vars
.
list
[
i
].
frame
=
-
1
;
gNB
->
prach_vars
.
list
[
i
].
slot
=
-
1
;
}
}
}
void
free_nr_prach_entry
(
PHY_VARS_gNB
*
gNB
,
int
prach_id
)
{
void
free_nr_prach_entry
(
PHY_VARS_gNB
*
gNB
,
int
prach_id
)
{
...
@@ -93,7 +96,10 @@ void nr_fill_prach(PHY_VARS_gNB *gNB,
...
@@ -93,7 +96,10 @@ void nr_fill_prach(PHY_VARS_gNB *gNB,
void
init_prach_ru_list
(
RU_t
*
ru
)
{
void
init_prach_ru_list
(
RU_t
*
ru
)
{
AssertFatal
(
ru
!=
NULL
,
"ruis null
\n
"
);
AssertFatal
(
ru
!=
NULL
,
"ruis null
\n
"
);
for
(
int
i
=
0
;
i
<
NUMBER_OF_NR_RU_PRACH_MAX
;
i
++
)
ru
->
prach_list
[
i
].
frame
=-
1
;
for
(
int
i
=
0
;
i
<
NUMBER_OF_NR_RU_PRACH_MAX
;
i
++
)
{
ru
->
prach_list
[
i
].
frame
=
-
1
;
ru
->
prach_list
[
i
].
slot
=
-
1
;
}
pthread_mutex_init
(
&
ru
->
prach_list_mutex
,
NULL
);
pthread_mutex_init
(
&
ru
->
prach_list_mutex
,
NULL
);
}
}
...
...
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