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
Michael Black
OpenXG-RAN
Commits
aa308ab2
Commit
aa308ab2
authored
Sep 14, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in get_nr_table_idx
parent
1dd51287
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+8
-2
No files found.
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
aa308ab2
...
...
@@ -1986,10 +1986,16 @@ int get_nr_table_idx(int nr_bandP, uint8_t scs_index)
AssertFatal
(
nr_bandP
<=
nr_bandtable
[
nr_bandtable_size
-
1
].
band
,
"NR band %d exceeds NR bands table maximum limit %d
\n
"
,
nr_bandP
,
nr_bandtable
[
nr_bandtable_size
-
1
].
band
);
for
(
i
=
0
;
i
<
nr_bandtable_size
&&
nr_bandtable
[
i
].
band
!=
nr_bandP
;
i
++
);
// selection of correct Deltaf raster according to SCS
if
((
nr_bandtable
[
i
].
deltaf_raster
!=
100
)
&&
(
nr_bandtable
[
i
].
deltaf_raster
!=
scs_khz
))
// In frequency bands with two deltaFRaster,
// the higher deltaFRaster applies to channels using only the SCS that is equal to or larger than the higher deltaFRaster
// and SSB SCS is equal to the higher deltaFRaster.
while
(((
i
+
1
)
<
nr_bandtable_size
)
&&
(
nr_bandtable
[
i
+
1
].
band
==
nr_bandtable
[
i
].
band
)
&&
(
nr_bandtable
[
i
].
deltaf_raster
!=
scs_khz
))
{
i
++
;
}
AssertFatal
(
nr_bandtable
[
i
].
band
==
nr_bandP
,
"Found band table %d does not correspond to the input one %d
\n
"
,
nr_bandtable
[
i
].
band
,
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
);
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