Use TX_COUNT in RLC AM stress test. Avoids issue with re-using SNs within the test

This commit is contained in:
Pedro Alvarez 2021-02-15 16:13:53 +00:00
parent 2e39e103f8
commit 2ed8dceddf
1 changed files with 2 additions and 2 deletions

View File

@ -362,7 +362,7 @@ public:
private:
void run_thread()
{
uint16_t pdcp_sn = 0;
uint32_t pdcp_sn = 0;
byte_buffer_pool* pool = byte_buffer_pool::get_instance();
while (run_enable) {
unique_byte_buffer_t pdu = srslte::make_byte_buffer();
@ -372,7 +372,7 @@ private:
usleep(1000);
continue;
}
pdu->md.pdcp_sn = pdcp_sn & 0x0FFF; // 12-bit SN
pdu->md.pdcp_sn = pdcp_sn;
for (uint32_t i = 0; i < args.sdu_size; i++) {
pdu->msg[i] = pdcp_sn & 0xFF;
}