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
d201d89c
Commit
d201d89c
authored
Dec 21, 2023
by
Ejaz Ahmed
Committed by
Deokseong "David" Kim
Dec 21, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue with reception of PSBCH
parent
5cc6d9e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
+13
-12
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
+11
-10
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+2
-2
No files found.
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
View file @
d201d89c
...
...
@@ -85,16 +85,17 @@ void nr_fill_sl_rx_indication(sl_nr_rx_indication_t *rx_ind,
sl_nr_ue_phy_params_t
*
sl_phy_params
=
&
ue
->
SL_UE_PHY_PARAMS
;
switch
(
pdu_type
){
case
SL_NR_RX_PDU_TYPE_SLSCH
:
sl_nr_slsch_pdu_t
*
rx_slsch_pdu
=
&
rx_ind
->
rx_indication_body
[
n_pdus
-
1
].
rx_slsch_pdu
;
slsch_status_t
*
slsch_status
=
(
slsch_status_t
*
)
typeSpecific
;
rx_slsch_pdu
->
pdu
=
slsch_status
->
rdata
->
ulsch_harq
->
b
;
rx_slsch_pdu
->
pdu_length
=
slsch_status
->
rdata
->
ulsch_harq
->
TBS
;
rx_slsch_pdu
->
harq_pid
=
slsch_status
->
rdata
->
harq_pid
;
rx_slsch_pdu
->
ack_nack
=
(
slsch_status
->
rxok
==
true
)
?
1
:
0
;
if
(
slsch_status
->
rxok
==
true
)
ue
->
SL_UE_PHY_PARAMS
.
pssch
.
rx_ok
++
;
else
ue
->
SL_UE_PHY_PARAMS
.
pssch
.
rx_errors
[
0
]
++
;
case
SL_NR_RX_PDU_TYPE_SLSCH
:
{
sl_nr_slsch_pdu_t
*
rx_slsch_pdu
=
&
rx_ind
->
rx_indication_body
[
n_pdus
-
1
].
rx_slsch_pdu
;
slsch_status_t
*
slsch_status
=
(
slsch_status_t
*
)
typeSpecific
;
rx_slsch_pdu
->
pdu
=
slsch_status
->
rdata
->
ulsch_harq
->
b
;
rx_slsch_pdu
->
pdu_length
=
slsch_status
->
rdata
->
ulsch_harq
->
TBS
;
rx_slsch_pdu
->
harq_pid
=
slsch_status
->
rdata
->
harq_pid
;
rx_slsch_pdu
->
ack_nack
=
(
slsch_status
->
rxok
==
true
)
?
1
:
0
;
if
(
slsch_status
->
rxok
==
true
)
ue
->
SL_UE_PHY_PARAMS
.
pssch
.
rx_ok
++
;
else
ue
->
SL_UE_PHY_PARAMS
.
pssch
.
rx_errors
[
0
]
++
;
}
break
;
case
FAPI_NR_RX_PDU_TYPE_SSB
:
{
sl_nr_ssb_pdu_t
*
ssb_pdu
=
&
rx_ind
->
rx_indication_body
[
n_pdus
-
1
].
ssb_pdu
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
d201d89c
...
...
@@ -3571,10 +3571,10 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
}
if
(
sl_ind
->
slot_type
==
SIDELINK_SLOT_TYPE_TX
||
sl_ind
->
phy_data
==
NULL
)
rx_allowed
=
false
;
if
(((
get_nrUE_params
()
->
sync_ref
&&
sl_ind
->
slot_rx
>
9
)
||
(
!
get_nrUE_params
()
->
sync_ref
&&
sl_ind
->
slot_rx
<
10
))
&&
rx_allowed
)
{
(
!
get_nrUE_params
()
->
sync_ref
&&
sl_ind
->
slot_rx
<
10
))
&&
rx_allowed
&&
!
is_psbch_slot
)
{
LOG_D
(
NR_MAC
,
"Scheduling PSCCH RX processing slot %d, sync_ref %d
\n
"
,
slot
,
get_nrUE_params
()
->
sync_ref
);
nr_ue_sl_pscch_rx_scheduler
(
sl_ind
,
mac
->
sl_bwp
,
mac
->
sl_rx_res_pool
,
&
rx_config
,
&
tti_action
);
}
}
if
(
!
is_psbch_slot
&&
tx_allowed
)
{
//Check if reserved slot or a sidelink resource configured in Rx/Tx resource pool timeresource bitmap
nr_ue_sl_pssch_scheduler
(
mac
,
sl_ind
,
mac
->
sl_bwp
,
mac
->
sl_tx_res_pool
,
&
tx_config
,
&
tti_action
);
...
...
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