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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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-RAN
Commits
dd4eb9f8
Commit
dd4eb9f8
authored
Jun 13, 2024
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix regression in ue-scan-carrier option
parent
297ef9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
common/utils/nr/nr_common.c
common/utils/nr/nr_common.c
+8
-4
No files found.
common/utils/nr/nr_common.c
View file @
dd4eb9f8
...
...
@@ -389,7 +389,10 @@ uint16_t get_band(uint64_t downlink_frequency, int32_t delta_duplex)
printf
(
"DL frequency %"
PRIu64
": band %d, UL frequency %"
PRIu64
"
\n
"
,
downlink_frequency
,
current_band
,
downlink_frequency
+
delta_duplex
);
AssertFatal
(
current_band
!=
0
,
"Can't find EUTRA band for frequency %"
PRIu64
" and duplex_spacing %u
\n
"
,
downlink_frequency
,
delta_duplex
);
AssertFatal
(
current_band
!=
0
,
"Can't find EUTRA band for frequency %"
PRIu64
" and duplex_spacing %d
\n
"
,
downlink_frequency
,
delta_duplex
);
return
current_band
;
}
...
...
@@ -1030,13 +1033,13 @@ uint32_t get_ssb_offset_to_pointA(uint32_t absoluteFrequencySSB,
static
double
get_start_freq
(
const
double
fc
,
const
int
nbRB
,
const
int
mu
)
{
const
int
scs
=
MU_SCS
(
mu
)
*
1000
;
return
fc
-
(
nbRB
/
2
*
NR_NB_SC_PER_RB
*
scs
);
return
fc
-
(
(
double
)
nbRB
/
2
*
NR_NB_SC_PER_RB
*
scs
);
}
static
double
get_stop_freq
(
const
double
fc
,
const
int
nbRB
,
const
int
mu
)
{
int
scs
=
MU_SCS
(
mu
)
*
1000
;
return
fc
+
(
nbRB
/
2
*
NR_NB_SC_PER_RB
*
scs
);
return
fc
+
(
(
double
)
nbRB
/
2
*
NR_NB_SC_PER_RB
*
scs
);
}
static
void
compute_M_and_N
(
const
int
gscn
,
int
*
rM
,
int
*
rN
)
...
...
@@ -1101,6 +1104,7 @@ static void find_gscn_to_scan(const double startFreq,
*
scanGscnStart
=
g
;
break
;
}
*
scanGscnStop
=
*
scanGscnStart
;
for
(
int
g
=
gscn
.
last_gscn
;
g
>
gscn
.
first_gscn
;
g
-=
gscn
.
step_gscn
)
{
const
double
centerSSBFreq
=
get_ssref_from_gscn
(
g
);
...
...
@@ -1138,7 +1142,7 @@ int get_scan_ssb_first_sc(const double fc, const int nbRB, const int nrBand, con
find_gscn_to_scan
(
startFreq
,
stopFreq
,
tmpRaster
,
&
scanGscnStart
,
&
scanGscnStop
);
const
double
scs
=
MU_SCS
(
mu
)
*
1e3
;
const
double
pointA
=
fc
-
(
nbRB
/
2
*
scs
*
NR_NB_SC_PER_RB
);
const
double
pointA
=
fc
-
(
(
double
)
nbRB
/
2
*
scs
*
NR_NB_SC_PER_RB
);
int
numGscn
=
0
;
for
(
int
g
=
scanGscnStart
;
(
g
<=
scanGscnStop
)
&&
(
numGscn
<
MAX_GSCN_BAND
);
g
+=
tmpRaster
.
step_gscn
)
{
ssbInfo
[
numGscn
].
ssRef
=
get_ssref_from_gscn
(
g
);
...
...
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