Starting to add handle_data_pdu to RLC NR entity.

This commit is contained in:
Pedro Alvarez 2021-08-03 11:45:48 +01:00
parent 7121152cff
commit be9bb344a4
1 changed files with 18 additions and 1 deletions

View File

@ -182,7 +182,24 @@ bool rlc_am_nr_rx::configure(const rlc_config_t& cfg_)
return true;
}
void rlc_am_nr_rx::handle_data_pdu(uint8_t* payload, uint32_t nof_bytes) {}
void rlc_am_nr_rx::handle_data_pdu(uint8_t* payload, uint32_t nof_bytes)
{
// Get AMD PDU Header
rlc_am_nr_pdu_header_t header = {};
rlc_am_nr_read_data_pdu_header(payload, nof_bytes, rlc_am_nr_sn_size_t::size12bits, &header);
// Check poll bit
if (header.p != 0) {
logger->info("%s Status packet requested through polling bit", parent->rb_name);
bool do_status = true;
// 36.322 v10 Section 5.2.3
// if (RX_MOD_BASE(header.sn) < RX_MOD_BASE(vr_ms) || RX_MOD_BASE(header.sn) >= RX_MOD_BASE(vr_mr)) {
// do_status = true;
//}
// else delay for reordering timer
}
}
void rlc_am_nr_rx::stop() {}