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
lizhongxiao
OpenXG-RAN
Commits
61a2f398
Commit
61a2f398
authored
May 10, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add LOGs of SRS indication in handle_nr_srs_measurements
parent
99b262d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+18
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
61a2f398
...
...
@@ -37,6 +37,8 @@
#include "LAYER2/NR_MAC_COMMON/nr_mac_extern.h"
//#define SRS_IND_DEBUG
int
get_dci_format
(
NR_UE_sched_ctrl_t
*
sched_ctrl
)
{
int
dci_format
=
sched_ctrl
->
search_space
&&
sched_ctrl
->
search_space
->
searchSpaceType
&&
...
...
@@ -887,7 +889,23 @@ void handle_nr_srs_measurements(const module_id_t module_id,
const
uint8_t
wide_band_snr
,
const
uint8_t
num_reported_symbols
,
nfapi_nr_srs_indication_reported_symbol_t
*
reported_symbol_list
)
{
LOG_I
(
NR_MAC
,
"(%d.%d) Received SRS indication for rnti: 0x%04x
\n
"
,
frame
,
slot
,
rnti
);
#ifdef SRS_IND_DEBUG
LOG_I
(
NR_MAC
,
"frame = %i
\n
"
,
frame
);
LOG_I
(
NR_MAC
,
"slot = %i
\n
"
,
slot
);
LOG_I
(
NR_MAC
,
"rnti = 0x%04x
\n
"
,
rnti
);
LOG_I
(
NR_MAC
,
"timing_advance = %i
\n
"
,
timing_advance
);
LOG_I
(
NR_MAC
,
"num_symbols = %i
\n
"
,
num_symbols
);
LOG_I
(
NR_MAC
,
"wide_band_snr = %i (%i dB)
\n
"
,
wide_band_snr
,
(
wide_band_snr
>>
1
)
-
64
);
LOG_I
(
NR_MAC
,
"num_reported_symbols = %i
\n
"
,
num_reported_symbols
);
LOG_I
(
NR_MAC
,
"reported_symbol_list[0].num_rbs = %i
\n
"
,
reported_symbol_list
[
0
].
num_rbs
);
for
(
int
rb
=
0
;
rb
<
reported_symbol_list
[
0
].
num_rbs
;
rb
++
)
{
LOG_I
(
NR_MAC
,
"reported_symbol_list[0].rb_list[%3i].rb_snr = %i (%i dB)
\n
"
,
rb
,
reported_symbol_list
[
0
].
rb_list
[
rb
].
rb_snr
,
(
reported_symbol_list
[
0
].
rb_list
[
rb
].
rb_snr
>>
1
)
-
64
);
}
#endif
}
long
get_K2
(
NR_ServingCellConfigCommon_t
*
scc
,
...
...
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