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
spbro
OpenXG-RAN
Commits
051fa6ec
Commit
051fa6ec
authored
Sep 21, 2022
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address review comments
parent
2931884d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+28
-23
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+1
-1
No files found.
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
051fa6ec
...
...
@@ -847,31 +847,37 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
srs_est
=
-
1
;
}
T
(
T_GNB_PHY_UL_FREQ_CHANNEL_ESTIMATE
,
T_INT
(
0
),
T_INT
(
srs_pdu
->
rnti
),
T_INT
(
frame_rx
),
T_INT
(
0
),
T_INT
(
0
),
T_BUFFER
(
srs_estimated_channel_freq
[
0
][
0
],
frame_parms
->
ofdm_symbol_size
*
sizeof
(
int32_t
)));
T
(
T_GNB_PHY_UL_FREQ_CHANNEL_ESTIMATE
,
T_INT
(
0
),
T_INT
(
srs_pdu
->
rnti
),
T_INT
(
frame_rx
),
T_INT
(
0
),
T_INT
(
0
),
T_BUFFER
(
srs_estimated_channel_freq
[
0
][
0
],
frame_parms
->
ofdm_symbol_size
*
sizeof
(
int32_t
)));
T
(
T_GNB_PHY_UL_TIME_CHANNEL_ESTIMATE
,
T_INT
(
0
),
T_INT
(
srs_pdu
->
rnti
),
T_INT
(
frame_rx
),
T_INT
(
0
),
T_INT
(
0
),
T_BUFFER
(
srs_estimated_channel_time_shifted
[
0
][
0
],
frame_parms
->
ofdm_symbol_size
*
sizeof
(
int32_t
)));
T
(
T_GNB_PHY_UL_TIME_CHANNEL_ESTIMATE
,
T_INT
(
0
),
T_INT
(
srs_pdu
->
rnti
),
T_INT
(
frame_rx
),
T_INT
(
0
),
T_INT
(
0
),
T_BUFFER
(
srs_estimated_channel_time_shifted
[
0
][
0
],
frame_parms
->
ofdm_symbol_size
*
sizeof
(
int32_t
)));
const
uint16_t
num_srs
=
gNB
->
UL_INFO
.
srs_ind
.
number_of_pdus
;
gNB
->
UL_INFO
.
srs_ind
.
pdu_list
=
&
gNB
->
srs_pdu_list
[
0
];
gNB
->
UL_INFO
.
srs_ind
.
sfn
=
frame_rx
;
gNB
->
UL_INFO
.
srs_ind
.
slot
=
slot_rx
;
gNB
->
srs_pdu_list
[
num_srs
].
handle
=
srs_pdu
->
handle
;
gNB
->
srs_pdu_list
[
num_srs
].
rnti
=
srs_pdu
->
rnti
;
gNB
->
srs_pdu_list
[
num_srs
].
timing_advance
=
srs_est
>=
0
?
nr_est_timing_advance_srs
(
frame_parms
,
srs_estimated_channel_time
[
0
])
:
0xFFFF
;
gNB
->
srs_pdu_list
[
num_srs
].
num_symbols
=
1
<<
srs_pdu
->
num_symbols
;
gNB
->
srs_pdu_list
[
num_srs
].
wide_band_snr
=
srs_est
>=
0
?
(
snr
+
64
)
<<
1
:
0xFF
;
// 0xFF will be set if this field is invalid
gNB
->
srs_pdu_list
[
num_srs
].
num_reported_symbols
=
1
<<
srs_pdu
->
num_symbols
;
if
(
!
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
)
{
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
=
(
nfapi_nr_srs_indication_reported_symbol_t
*
)
calloc
(
1
,
gNB
->
srs_pdu_list
[
num_srs
].
num_reported_symbols
*
sizeof
(
nfapi_nr_srs_indication_reported_symbol_t
));
nfapi_nr_srs_indication_pdu_t
*
srs_indication
=
&
gNB
->
srs_pdu_list
[
gNB
->
UL_INFO
.
srs_ind
.
number_of_pdus
];
srs_indication
->
handle
=
srs_pdu
->
handle
;
srs_indication
->
rnti
=
srs_pdu
->
rnti
;
srs_indication
->
timing_advance
=
srs_est
>=
0
?
nr_est_timing_advance_srs
(
frame_parms
,
srs_estimated_channel_time
[
0
])
:
0xFFFF
;
srs_indication
->
num_symbols
=
1
<<
srs_pdu
->
num_symbols
;
srs_indication
->
wide_band_snr
=
srs_est
>=
0
?
(
snr
+
64
)
<<
1
:
0xFF
;
// 0xFF will be set if this field is invalid
srs_indication
->
num_reported_symbols
=
1
<<
srs_pdu
->
num_symbols
;
if
(
!
srs_indication
->
reported_symbol_list
)
{
srs_indication
->
reported_symbol_list
=
(
nfapi_nr_srs_indication_reported_symbol_t
*
)
calloc
(
1
,
srs_indication
->
num_reported_symbols
*
sizeof
(
nfapi_nr_srs_indication_reported_symbol_t
));
}
fill_srs_reported_symbol_list
(
&
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
],
srs_pdu
,
frame_parms
->
N_RB_UL
,
snr_per_rb
,
srs_est
);
fill_srs_reported_symbol_list
(
&
srs_indication
->
reported_symbol_list
[
0
],
srs_pdu
,
frame_parms
->
N_RB_UL
,
snr_per_rb
,
srs_est
);
gNB
->
UL_INFO
.
srs_ind
.
number_of_pdus
+=
1
;
...
...
@@ -884,9 +890,8 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
LOG_I
(
NR_PHY
,
"gNB->srs_pdu_list[%i].wide_band_snr = %i
\n
"
,
num_srs
,
gNB
->
srs_pdu_list
[
num_srs
].
wide_band_snr
);
LOG_I
(
NR_PHY
,
"gNB->srs_pdu_list[%i].num_reported_symbols = %i
\n
"
,
num_srs
,
gNB
->
srs_pdu_list
[
num_srs
].
num_reported_symbols
);
LOG_I
(
NR_PHY
,
"gNB->srs_pdu_list[%i].reported_symbol_list[0].num_rbs = %i
\n
"
,
num_srs
,
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
].
num_rbs
);
for
(
int
rb
=
0
;
rb
<
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
].
num_rbs
;
rb
++
)
{
LOG_I
(
NR_PHY
,
"gNB->srs_pdu_list[%i].reported_symbol_list[0].rb_list[%3i].rb_snr = %i
\n
"
,
num_srs
,
rb
,
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
].
rb_list
[
rb
].
rb_snr
);
for
(
int
rb
=
0
;
rb
<
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
].
num_rbs
;
rb
++
)
{
LOG_I
(
NR_PHY
,
"gNB->srs_pdu_list[%i].reported_symbol_list[0].rb_list[%3i].rb_snr = %i
\n
"
,
num_srs
,
rb
,
gNB
->
srs_pdu_list
[
num_srs
].
reported_symbol_list
[
0
].
rb_list
[
rb
].
rb_snr
);
}
#endif
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
051fa6ec
...
...
@@ -815,7 +815,7 @@ void handle_nr_srs_measurements(const module_id_t module_id,
NR_UE_info_t
*
UE
=
find_nr_UE
(
&
RC
.
nrmac
[
module_id
]
->
UE_info
,
rnti
);
if
(
!
UE
)
{
LOG_
W
(
NR_MAC
,
"Could not find UE for RNTI %04x
\n
"
,
rnti
);
LOG_
E
(
NR_MAC
,
"Could not find UE for RNTI %04x
\n
"
,
rnti
);
return
;
}
...
...
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