Skip to content

Commit 22cbb6b

Browse files
committed
mac: forward dtx to scheduler in case of PUCCH format2 or PUSCH UCI
1 parent 0d3b162 commit 22cbb6b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/fapi_adaptor/mac/fapi_to_mac_data_msg_translator.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ static void convert_fapi_to_mac_pusch_uci_ind(mac_uci_pdu::pusch_type& mac_pusch
183183
if (fapi_pusch.pdu_bitmap.test(fapi::uci_pusch_pdu::HARQ_BIT)) {
184184
mac_uci_pdu::pusch_type::harq_information& harq = mac_pusch.harq_info.emplace();
185185
harq.harq_status = fapi_pusch.harq.detection_status;
186-
harq.payload = fapi_pusch.harq.payload;
186+
if (fapi_pusch.harq.payload.size() > 0) {
187+
harq.payload = fapi_pusch.harq.payload;
188+
} else {
189+
harq.payload.resize(fapi_pusch.harq.expected_bit_length);
190+
harq.payload.reset();
191+
}
187192
}
188193

189194
// Fill CSI Part 1.

0 commit comments

Comments
 (0)