Add more logic to PDCP NR tx logic.

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

@ -33,8 +33,8 @@
namespace srslte { namespace srslte {
/**************************************************************************** /****************************************************************************
* PDCP Entity interface * NR PDCP Entity
* Common interface for all PDCP entities * PDCP entity for 5G NR
***************************************************************************/ ***************************************************************************/
class pdcp_entity_nr : public pdcp_entity_base 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"); (do_integrity) ? "true" : "false", (do_encryption) ? "true" : "false");
// Start discard timer TODO // Start discard timer TODO
// Perform header compression TODO
// // Integrity protection and ciphering
uint32_t count = tx_next; 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]);
//integrity_generate(sdu);
// Write PDCP header info
write_header(pdu, tx_next);
// Write to lower layers
rlc->write_sdu(lcid, std::move(sdu), blocking);
} }
// RLC interface // RLC interface

Loading…
Cancel
Save