Skip to content

Commit de4230b

Browse files
AlaiaLcodebot
authored andcommitted
fapi_adaptor: pass the TA to the MAC in the CRC indication
1 parent 3124ea3 commit de4230b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/fapi_adaptor/mac/fapi_to_mac_data_msg_translator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ void fapi_to_mac_data_msg_translator::on_crc_indication(const fapi::crc_indicati
116116
pdu.rnti = fapi_pdu.rnti;
117117
pdu.tb_crc_success = fapi_pdu.tb_crc_status_ok;
118118
pdu.ul_sinr_metric = convert_fapi_to_mac_ul_sinr(fapi_pdu.ul_sinr_metric);
119+
if (fapi_pdu.timing_advance_offset_ns != std::numeric_limits<decltype(fapi_pdu.timing_advance_offset_ns)>::min()) {
120+
pdu.ta = phy_time_unit::from_seconds(fapi_pdu.timing_advance_offset_ns * 1e-9);
121+
}
119122
}
120123

121124
crc_handler.get().handle_crc(indication);

0 commit comments

Comments
 (0)