Add more logic to PDCP NR tx logic.

master
Pedro Alvarez 5 years ago committed by Andre Puschmann
parent 2081b22465
commit 8e8a7a4154

@ -33,8 +33,8 @@
namespace srslte {
/****************************************************************************
* PDCP Entity interface
* Common interface for all PDCP entities
* NR PDCP Entity
* PDCP entity for 5G NR
***************************************************************************/
class pdcp_entity_nr : public pdcp_entity_base
{

@ -74,13 +74,17 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, bool blocking)
(do_integrity) ? "true" : "false", (do_encryption) ? "true" : "false");
// Start discard timer TODO
// Perform header compression TODO
//
uint32_t count = tx_next;
//integrity_generate(sdu);
// Integrity protection and ciphering
integrity_generate(sdu->msg, sdu->N_bytes - 4, tx_next, &sdu->msg[sdu->N_bytes - 4]);
ciphering_generate(sdu->msg, sdu->N_bytes - 4, tx_next, &sdu->msg[sdu->N_bytes - 4]);
// Write PDCP header info
write_header(pdu, tx_next);
// Write to lower layers
rlc->write_sdu(lcid, std::move(sdu), blocking);
}
// RLC interface

Loading…
Cancel
Save