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
28f2129d
Commit
28f2129d
authored
Jan 25, 2024
by
Ejaz Ahmed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added harq_feedback condition; Added more logs
parent
238a7837
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
60 additions
and
59 deletions
+60
-59
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+1
-1
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_slsch_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_slsch_scheduler.c
+2
-2
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures_sl.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures_sl.c
+46
-46
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+8
-7
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
+2
-2
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
28f2129d
...
@@ -2280,7 +2280,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
...
@@ -2280,7 +2280,7 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
LOG_D
(
NR_PHY
,
"calling sl_indication: RX %d.%d TX %d.%d %s
\n
"
,
proc
->
frame_rx
,
proc
->
nr_slot_rx
,
proc
->
frame_tx
,
proc
->
nr_slot_tx
,
__FUNCTION__
);
LOG_D
(
NR_PHY
,
"calling sl_indication: RX %d.%d TX %d.%d %s
\n
"
,
proc
->
frame_rx
,
proc
->
nr_slot_rx
,
proc
->
frame_tx
,
proc
->
nr_slot_tx
,
__FUNCTION__
);
nr_fill_sl_indication
(
&
sl_indication
,
NULL
,
&
sci_ind
,
proc
,
ue
,
phy_data
);
nr_fill_sl_indication
(
&
sl_indication
,
NULL
,
&
sci_ind
,
proc
,
ue
,
phy_data
);
ue
->
if_inst
->
sl_indication
(
&
sl_indication
);
ue
->
if_inst
->
sl_indication
(
&
sl_indication
);
LOG_
I
(
NR_PHY
,
"Returning from SCI2 SL indication
\n
"
);
LOG_
D
(
NR_PHY
,
"Returning from SCI2 SL indication
\n
"
);
//
//
}
}
}
// (not ML || nrOfLayers==1 ) AND pssch and sci2 REs to handle
}
// (not ML || nrOfLayers==1 ) AND pssch and sci2 REs to handle
...
...
openair1/SCHED_NR_UE/phy_procedures_nr_ue_sl.c
View file @
28f2129d
...
@@ -746,7 +746,7 @@ int phy_procedures_nrUE_SL_TX(PHY_VARS_NR_UE *ue,
...
@@ -746,7 +746,7 @@ int phy_procedures_nrUE_SL_TX(PHY_VARS_NR_UE *ue,
&
phy_data
->
nr_sl_psfch_pdu
);
&
phy_data
->
nr_sl_psfch_pdu
);
sl_phy_params
->
psfch
.
num_psfch_tx
++
;
sl_phy_params
->
psfch
.
num_psfch_tx
++
;
tx_action
=
1
;
tx_action
=
1
;
LOG_
I
(
NR_PHY
,
"Sending SL data frame %d slot %d
\n
"
,
frame_tx
,
slot_tx
);
LOG_
D
(
NR_PHY
,
"Sending SL data frame %d slot %d
\n
"
,
frame_tx
,
slot_tx
);
}
}
if
(
tx_action
)
{
if
(
tx_action
)
{
nr_ue_pusch_common_procedures
(
ue
,
nr_ue_pusch_common_procedures
(
ue
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_slsch_scheduler.c
View file @
28f2129d
...
@@ -64,13 +64,13 @@ bool nr_schedule_slsch(NR_UE_MAC_INST_t *mac, int frameP,int slotP, nr_sci_pdu_t
...
@@ -64,13 +64,13 @@ bool nr_schedule_slsch(NR_UE_MAC_INST_t *mac, int frameP,int slotP, nr_sci_pdu_t
sci_pdu
->
beta_offset_indicator
=
0
;
sci_pdu
->
beta_offset_indicator
=
0
;
// Fill SCI2A
// Fill SCI2A
sci2_pdu
->
harq_pid
=
slotP
;
// slotP FIXIT - The value should only be 0-15 which can be in 4-bits
sci2_pdu
->
harq_pid
=
slotP
%
16
;
// slotP FIXIT - The value should only be 0-15 which can be in 4-bits
sci2_pdu
->
ndi
=
(
1
-
sci2_pdu
->
ndi
)
&
1
;
sci2_pdu
->
ndi
=
(
1
-
sci2_pdu
->
ndi
)
&
1
;
sci2_pdu
->
rv_index
=
0
;
sci2_pdu
->
rv_index
=
0
;
sci2_pdu
->
source_id
=
0x12
;
sci2_pdu
->
source_id
=
0x12
;
sci2_pdu
->
dest_id
=
0xabcd
;
sci2_pdu
->
dest_id
=
0xabcd
;
sci2_pdu
->
harq_feedback
=
1
;
sci2_pdu
->
harq_feedback
=
1
;
sci2_pdu
->
cast_type
=
2
;
sci2_pdu
->
cast_type
=
1
;
if
(
format2
==
NR_SL_SCI_FORMAT_2C
||
format2
==
NR_SL_SCI_FORMAT_2A
)
if
(
format2
==
NR_SL_SCI_FORMAT_2C
||
format2
==
NR_SL_SCI_FORMAT_2A
)
sci2_pdu
->
csi_req
=
1
;
sci2_pdu
->
csi_req
=
1
;
if
(
format2
==
NR_SL_SCI_FORMAT_2B
)
if
(
format2
==
NR_SL_SCI_FORMAT_2B
)
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures_sl.c
View file @
28f2129d
...
@@ -645,7 +645,7 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
...
@@ -645,7 +645,7 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
return
;
return
;
}
}
LOG_D
(
NR_MAC
,
"Filling psfch pdu %d
\n
"
,
module_idP
);
if
(
mac
->
sci_pdu_rx
.
harq_feedback
)
{
NR_SL_PSFCH_Config_r16_t
*
sl_psfch_config
=
mac
->
sl_tx_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
;
NR_SL_PSFCH_Config_r16_t
*
sl_psfch_config
=
mac
->
sl_tx_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
;
const
uint8_t
time_gap
[]
=
{
2
,
3
};
const
uint8_t
time_gap
[]
=
{
2
,
3
};
uint8_t
psfch_min_time_gap
=
time_gap
[
*
sl_psfch_config
->
sl_MinTimeGapPSFCH_r16
];
uint8_t
psfch_min_time_gap
=
time_gap
[
*
sl_psfch_config
->
sl_MinTimeGapPSFCH_r16
];
...
@@ -661,14 +661,14 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
...
@@ -661,14 +661,14 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
sched_frame
=
frame
;
sched_frame
=
frame
;
if
(
sched_slot
>=
NR_MAX_SLOTS_PER_FRAME
)
{
if
(
sched_slot
>=
NR_MAX_SLOTS_PER_FRAME
)
{
sched_slot
%=
NR_MAX_SLOTS_PER_FRAME
;
sched_slot
%=
NR_MAX_SLOTS_PER_FRAME
;
sched_frame
=
(
sched_frame
+
1
)
%
1024
;
sched_frame
=
(
sched_frame
+
1
)
%
1024
;
}
}
harq_proc
->
feedback_slot
=
sched_slot
;
harq_proc
->
feedback_slot
=
sched_slot
;
harq_proc
->
feedback_frame
=
sched_frame
;
harq_proc
->
feedback_frame
=
sched_frame
;
harq_proc
->
is_active
=
true
;
harq_proc
->
is_active
=
true
;
LOG_I
(
NR_MAC
,
"harq pid: %p:%d:%d psfch_period %d, delta_slots %d, feedback frame:slot %d:%d, frame:slot %d:%d, time_gap %d
\n
"
,
harq_proc
,
harq_pid
,
mac
->
sl_info
.
list
[
0
]
->
UE_sched_ctrl
.
sl_harq_processes
[
harq_pid
].
is_active
,
psfch_period
,
delta_slots
,
harq_proc
->
feedback_frame
,
harq_proc
->
feedback_slot
,
frame
,
slot
,
psfch_min_time_gap
);
LOG_D
(
NR_MAC
,
"harq pid: %p:%d:%d psfch_period %d, delta_slots %d, feedback frame:slot %d:%d, frame:slot %d:%d, time_gap %d, harq feedback %d
\n
"
,
harq_proc
,
harq_pid
,
mac
->
sl_info
.
list
[
0
]
->
UE_sched_ctrl
.
sl_harq_processes
[
harq_pid
].
is_active
,
psfch_period
,
delta_slots
,
harq_proc
->
feedback_frame
,
harq_proc
->
feedback_slot
,
frame
,
slot
,
psfch_min_time_gap
,
mac
->
sci_pdu_rx
.
harq_feedback
);
uint8_t
ack_nack
=
(
rx_ind
->
rx_indication_body
+
pdu_id
)
->
rx_slsch_pdu
.
ack_nack
;
uint8_t
ack_nack
=
(
rx_ind
->
rx_indication_body
+
pdu_id
)
->
rx_slsch_pdu
.
ack_nack
;
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
=
calloc
(
1
,
sizeof
(
sl_nr_tx_config_psfch_pdu_t
));
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
=
calloc
(
1
,
sizeof
(
sl_nr_tx_config_psfch_pdu_t
));
...
@@ -693,7 +693,7 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
...
@@ -693,7 +693,7 @@ void nr_ue_process_mac_sl_pdu(int module_idP,
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
->
psfch_payload
=
1
;
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
->
psfch_payload
=
1
;
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
->
bit_len_harq
=
1
;
mac
->
sl_tx_config_psfch_pdu
[
harq_pid
]
->
bit_len_harq
=
1
;
LOG_I
(
NR_MAC
,
"Filled psfch pdu
\n
"
);
LOG_I
(
NR_MAC
,
"Filled psfch pdu
\n
"
);
}
if
((
rx_ind
->
rx_indication_body
+
pdu_id
)
->
rx_slsch_pdu
.
ack_nack
==
0
)
if
((
rx_ind
->
rx_indication_body
+
pdu_id
)
->
rx_slsch_pdu
.
ack_nack
==
0
)
return
;
return
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
28f2129d
...
@@ -3293,6 +3293,7 @@ bool nr_ue_sl_pssch_scheduler(NR_UE_MAC_INST_t *mac,
...
@@ -3293,6 +3293,7 @@ bool nr_ue_sl_pssch_scheduler(NR_UE_MAC_INST_t *mac,
NR_SL_SCI_FORMAT_2A
);
NR_SL_SCI_FORMAT_2A
);
int
buflen
=
tx_config
->
tx_config_list
[
0
].
tx_pscch_pssch_config_pdu
.
tb_size
;
int
buflen
=
tx_config
->
tx_config_list
[
0
].
tx_pscch_pssch_config_pdu
.
tb_size
;
LOG_I
(
NR_MAC
,
"
\n
"
,
tx_config
->
tx_config_list
[
0
].
tx_pscch_pssch_config_pdu
.
sci2_payload
);
NR_UE_MAC_CE_INFO
mac_ce_info
=
{
0
};
NR_UE_MAC_CE_INFO
mac_ce_info
=
{
0
};
NR_UE_MAC_CE_INFO
*
mac_ce_p
=&
mac_ce_info
;
NR_UE_MAC_CE_INFO
*
mac_ce_p
=&
mac_ce_info
;
...
@@ -3539,11 +3540,10 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
...
@@ -3539,11 +3540,10 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
if
(
sl_ind
->
slot_type
==
SIDELINK_SLOT_TYPE_TX
)
{
if
(
sl_ind
->
slot_type
==
SIDELINK_SLOT_TYPE_TX
)
{
frame
=
sl_ind
->
frame_tx
;
frame
=
sl_ind
->
frame_tx
;
slot
=
sl_ind
->
slot_tx
;
slot
=
sl_ind
->
slot_tx
;
LOG_D
(
NR_PHY
,
"frame: %d, slot %d, type: %d
\n
"
,
frame
,
slot
,
sl_ind
->
slot_type
);
}
}
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
mod_id
);
NR_UE_MAC_INST_t
*
mac
=
get_mac_inst
(
mod_id
);
LOG_
D
(
NR_MAC
,
"harq feedback %d
\n
"
,
mac
->
sci_pdu_rx
.
harq_feedback
);
LOG_
I
(
NR_MAC
,
"frame: %d, slot %d, slot type: %d, harq feedback %d
\n
"
,
frame
,
slot
,
sl_ind
->
slot_type
,
mac
->
sci_pdu_rx
.
harq_feedback
);
sl_nr_ue_mac_params_t
*
sl_mac
=
mac
->
SL_MAC_PARAMS
;
sl_nr_ue_mac_params_t
*
sl_mac
=
mac
->
SL_MAC_PARAMS
;
sl_nr_phy_config_request_t
*
sl_cfg
=
&
sl_mac
->
sl_phy_config
.
sl_config_req
;
sl_nr_phy_config_request_t
*
sl_cfg
=
&
sl_mac
->
sl_phy_config
.
sl_config_req
;
...
@@ -3607,7 +3607,7 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
...
@@ -3607,7 +3607,7 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
//Check if reserved slot or a sidelink resource configured in Rx/Tx resource pool timeresource bitmap
//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
);
nr_ue_sl_pssch_scheduler
(
mac
,
sl_ind
,
mac
->
sl_bwp
,
mac
->
sl_tx_res_pool
,
&
tx_config
,
&
tti_action
);
}
}
// harq_feedback value has issue, more often it is displaying as zero
//
FIXIT:
harq_feedback value has issue, more often it is displaying as zero
if
(
sl_ind
->
slot_type
==
SIDELINK_SLOT_TYPE_TX
&&
mac
->
sci_pdu_rx
.
harq_feedback
)
{
if
(
sl_ind
->
slot_type
==
SIDELINK_SLOT_TYPE_TX
&&
mac
->
sci_pdu_rx
.
harq_feedback
)
{
NR_SL_PSFCH_Config_r16_t
*
sl_psfch_config
=
mac
->
sl_tx_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
;
NR_SL_PSFCH_Config_r16_t
*
sl_psfch_config
=
mac
->
sl_tx_res_pool
->
sl_PSFCH_Config_r16
->
choice
.
setup
;
const
uint8_t
psfch_periods
[]
=
{
0
,
1
,
2
,
4
};
const
uint8_t
psfch_periods
[]
=
{
0
,
1
,
2
,
4
};
...
@@ -3617,23 +3617,24 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
...
@@ -3617,23 +3617,24 @@ void nr_ue_sidelink_scheduler(nr_sidelink_indication_t *sl_ind) {
if
(
slot
%
psfch_period
==
0
)
{
if
(
slot
%
psfch_period
==
0
)
{
for
(
int
harq_pid
=
0
;
harq_pid
<
16
;
harq_pid
++
)
{
for
(
int
harq_pid
=
0
;
harq_pid
<
16
;
harq_pid
++
)
{
current_harq
=
&
mac
->
sl_info
.
list
[
0
]
->
UE_sched_ctrl
.
sl_harq_processes
[
harq_pid
];
current_harq
=
&
mac
->
sl_info
.
list
[
0
]
->
UE_sched_ctrl
.
sl_harq_processes
[
harq_pid
];
//if (current_harq->is_active)
LOG_D
(
NR_MAC
,
"harq is active %p:%d
\n
"
,
current_harq
,
current_harq
->
is_active
);
LOG_D
(
NR_MAC
,
"harq is active %p:%d
\n
"
,
current_harq
,
current_harq
->
is_active
);
sl_ind
->
slot_tx
=
current_harq
->
feedback_slot
;
sl_ind
->
slot_tx
=
current_harq
->
feedback_slot
;
sl_ind
->
frame_tx
=
current_harq
->
feedback_frame
;
sl_ind
->
frame_tx
=
current_harq
->
feedback_frame
;
if
(
current_harq
->
feedback_slot
>
0
&&
current_harq
->
feedback_frame
>
0
&&
current_harq
->
is_active
)
{
LOG_D
(
NR_MAC
,
"Feedback frame %d:%d HARQ is_active %d
\n
"
,
current_harq
->
feedback_frame
,
current_harq
->
feedback_slot
,
current_harq
->
is_active
);
if
(
current_harq
->
is_active
)
{
LOG_D
(
NR_MAC
,
"harq pid %d, sl_ind->frame_tx %d, sl_ind->slot_tx %d, frame %d, slot %d
\n
"
,
harq_pid
,
sl_ind
->
frame_tx
,
sl_ind
->
slot_tx
,
frame
,
slot
);
LOG_D
(
NR_MAC
,
"harq pid %d, sl_ind->frame_tx %d, sl_ind->slot_tx %d, frame %d, slot %d
\n
"
,
harq_pid
,
sl_ind
->
frame_tx
,
sl_ind
->
slot_tx
,
frame
,
slot
);
if
(
current_harq
->
feedback_slot
==
slot
&&
current_harq
->
feedback_frame
==
frame
&&
current_harq
->
is_active
)
{
if
(
current_harq
->
feedback_slot
==
slot
&&
current_harq
->
feedback_frame
==
frame
&&
current_harq
->
is_active
)
{
LOG_
I
(
NR_MAC
,
"Scheduling PSFCH transmission at frame %d slot %d for harq_pid %d
\n
"
,
current_harq
->
feedback_frame
,
current_harq
->
feedback_slot
,
harq_pid
);
LOG_
D
(
NR_MAC
,
"Scheduling PSFCH transmission at frame %d slot %d for harq_pid %d
\n
"
,
current_harq
->
feedback_frame
,
current_harq
->
feedback_slot
,
harq_pid
);
nr_ue_sl_psfch_scheduler
(
mac
,
sl_ind
,
mac
->
sl_bwp
,
mac
->
sl_tx_res_pool
,
&
tx_config
,
&
tti_action
);
nr_ue_sl_psfch_scheduler
(
mac
,
sl_ind
,
mac
->
sl_bwp
,
mac
->
sl_tx_res_pool
,
&
tx_config
,
&
tti_action
);
current_harq
->
is_active
=
false
;
current_harq
->
is_active
=
false
;
current_harq
->
feedback_slot
=
-
1
;
current_harq
->
feedback_frame
=
-
1
;
break
;
break
;
}
}
}
}
}
}
}
}
}
}
//}
if
(
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSBCH
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSCCH
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSSCH_SCI
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSSCH_SLSCH
)
{
if
(
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSBCH
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSCCH
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSSCH_SCI
||
tti_action
==
SL_NR_CONFIG_TYPE_RX_PSSCH_SLSCH
)
{
fill_scheduled_response
(
&
scheduled_response
,
NULL
,
NULL
,
NULL
,
&
rx_config
,
NULL
,
mod_id
,
0
,
frame
,
slot
,
sl_ind
->
phy_data
);
fill_scheduled_response
(
&
scheduled_response
,
NULL
,
NULL
,
NULL
,
&
rx_config
,
NULL
,
mod_id
,
0
,
frame
,
slot
,
sl_ind
->
phy_data
);
}
}
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_sci_slsch.c
View file @
28f2129d
...
@@ -816,7 +816,7 @@ int nr_ue_process_sci2_indication_pdu(NR_UE_MAC_INST_t *mac,module_id_t mod_id,f
...
@@ -816,7 +816,7 @@ int nr_ue_process_sci2_indication_pdu(NR_UE_MAC_INST_t *mac,module_id_t mod_id,f
sci
->
sci_format_type
,
sci
->
Nid
,
sci
->
subch_index
,
sci
->
sci_payloadlen
,
*
(
unsigned
long
long
*
)
sci
->
sci_payloadBits
);
sci
->
sci_format_type
,
sci
->
Nid
,
sci
->
subch_index
,
sci
->
sci_payloadlen
,
*
(
unsigned
long
long
*
)
sci
->
sci_payloadBits
);
AssertFatal
(
sci
->
sci_format_type
==
SL_SCI_FORMAT_2_ON_PSSCH
,
"need to have format 2 here only
\n
"
);
AssertFatal
(
sci
->
sci_format_type
==
SL_SCI_FORMAT_2_ON_PSSCH
,
"need to have format 2 here only
\n
"
);
extract_pssch_sci_pdu
((
uint64_t
*
)
sci
->
sci_payloadBits
,
sci
->
sci_payloadlen
,
sl_bwp
,
sl_res_pool
,
sci_pdu
);
extract_pssch_sci_pdu
((
uint64_t
*
)
sci
->
sci_payloadBits
,
sci
->
sci_payloadlen
,
sl_bwp
,
sl_res_pool
,
sci_pdu
);
LOG_
D
(
NR_MAC
,
"SCI2A: harq_pid %d ndi %d RV %d SRC %x DST %x HARQ_FB %d Cast %d CSI_Req %d
\n
"
,
sci_pdu
->
harq_pid
,
sci_pdu
->
ndi
,
sci_pdu
->
rv_index
,
sci_pdu
->
source_id
,
sci_pdu
->
dest_id
,
sci_pdu
->
harq_feedback
,
sci_pdu
->
cast_type
,
sci_pdu
->
csi_req
);
LOG_
I
(
NR_MAC
,
"SCI2A: harq_pid %d ndi %d RV %d SRC %x DST %x HARQ_FB %d Cast %d CSI_Req %d
\n
"
,
sci_pdu
->
harq_pid
,
sci_pdu
->
ndi
,
sci_pdu
->
rv_index
,
sci_pdu
->
source_id
,
sci_pdu
->
dest_id
,
sci_pdu
->
harq_feedback
,
sci_pdu
->
cast_type
,
sci_pdu
->
csi_req
);
// send schedule response
// send schedule response
sl_nr_rx_config_request_t
rx_config
;
sl_nr_rx_config_request_t
rx_config
;
...
@@ -882,7 +882,7 @@ extract_pssch_sci_pdu(uint64_t *sci2_payload, int len,
...
@@ -882,7 +882,7 @@ extract_pssch_sci_pdu(uint64_t *sci2_payload, int len,
fsize
=
1
;
fsize
=
1
;
pos
+=
fsize
;
pos
+=
fsize
;
sci_pdu
->
harq_feedback
=
*
sci2_payload
>>
(
sci2_size
-
pos
)
&
((
1
<<
fsize
)
-
1
);
sci_pdu
->
harq_feedback
=
*
sci2_payload
>>
(
sci2_size
-
pos
)
&
((
1
<<
fsize
)
-
1
);
LOG_
D
(
NR_MAC
,
"harq_feedback (%d) in pos %d
\n
"
,
sci_pdu
->
harq_feedback
,
pos
-
fsize
);
LOG_
I
(
NR_MAC
,
"harq_feedback (%d) in pos %d sci2_payload %lu, (sci2_size-pos) %d, mask %d
\n
"
,
sci_pdu
->
harq_feedback
,
pos
-
fsize
,
*
sci2_payload
,
(
sci2_size
-
pos
),
((
1
<<
fsize
)
-
1
)
);
//cast_type // 2 bits formac 2A
//cast_type // 2 bits formac 2A
fsize
=
2
;
fsize
=
2
;
...
...
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