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
e89a3533
Commit
e89a3533
authored
Jan 03, 2022
by
Laurent THOMAS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix get_nr_table_idx to make same as develop branch
parent
95ccc31e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+8
-2
No files found.
common/utils/nr/nr_common.c
View file @
e89a3533
...
@@ -459,7 +459,6 @@ uint16_t config_bandwidth(int mu, int nb_rb, int nr_band)
...
@@ -459,7 +459,6 @@ uint16_t config_bandwidth(int mu, int nb_rb, int nr_band)
int
get_nr_table_idx
(
int
nr_bandP
,
uint8_t
scs_index
)
{
int
get_nr_table_idx
(
int
nr_bandP
,
uint8_t
scs_index
)
{
int
scs_khz
=
15
<<
scs_index
;
int
scs_khz
=
15
<<
scs_index
;
int
supplementary_bands
[]
=
{
29
,
75
,
76
,
80
,
81
,
82
,
83
,
84
,
86
,
89
,
95
};
int
supplementary_bands
[]
=
{
29
,
75
,
76
,
80
,
81
,
82
,
83
,
84
,
86
,
89
,
95
};
for
(
int
j
=
0
;
j
<
sizeofArray
(
supplementary_bands
);
j
++
){
for
(
int
j
=
0
;
j
<
sizeofArray
(
supplementary_bands
);
j
++
){
if
(
nr_bandP
==
supplementary_bands
[
j
])
if
(
nr_bandP
==
supplementary_bands
[
j
])
AssertFatal
(
0
==
1
,
"Band %d is a supplementary band (%d). This is not supported yet.
\n
"
,
nr_bandP
,
supplementary_bands
[
j
]);
AssertFatal
(
0
==
1
,
"Band %d is a supplementary band (%d). This is not supported yet.
\n
"
,
nr_bandP
,
supplementary_bands
[
j
]);
...
@@ -471,7 +470,14 @@ int get_nr_table_idx(int nr_bandP, uint8_t scs_index) {
...
@@ -471,7 +470,14 @@ int get_nr_table_idx(int nr_bandP, uint8_t scs_index) {
break
;
break
;
}
}
AssertFatal
(
i
<
sizeofArray
(
nr_bandtable
),
"band is not existing: %d
\n
"
,
nr_bandP
);
if
(
i
==
sizeofArray
(
nr_bandtable
))
{
LOG_I
(
PHY
,
"not found same deltaf_raster == scs_khz, use only band and last deltaf_raster
\n
"
);
for
(
i
=
sizeofArray
(
nr_bandtable
)
-
1
;
i
>=
0
;
i
--
)
if
(
nr_bandtable
[
i
].
band
==
nr_bandP
)
break
;
}
AssertFatal
(
i
>
0
&&
i
<
sizeofArray
(
nr_bandtable
),
"band is not existing: %d
\n
"
,
nr_bandP
);
LOG_D
(
PHY
,
"NR band table index %d (Band %d, dl_min %lu, ul_min %lu)
\n
"
,
i
,
nr_bandtable
[
i
].
band
,
nr_bandtable
[
i
].
dl_min
,
nr_bandtable
[
i
].
ul_min
);
LOG_D
(
PHY
,
"NR band table index %d (Band %d, dl_min %lu, ul_min %lu)
\n
"
,
i
,
nr_bandtable
[
i
].
band
,
nr_bandtable
[
i
].
dl_min
,
nr_bandtable
[
i
].
ul_min
);
return
i
;
return
i
;
...
...
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