mirror of https://github.com/PentHertz/srsLTE.git
lib,pdcp_nr: make sure MAC-I is computed on SRBs, even when integrity is not active yet
This commit is contained in:
parent
c015540f54
commit
02cb2532f8
|
@ -121,7 +121,7 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, int sn)
|
|||
|
||||
// Integrity protection
|
||||
uint8_t mac[4] = {};
|
||||
if (is_drb() && (integrity_direction == DIRECTION_TX || integrity_direction == DIRECTION_TXRX)) {
|
||||
if (is_srb() || (is_drb() && (integrity_direction == DIRECTION_TX || integrity_direction == DIRECTION_TXRX))) {
|
||||
integrity_generate(sdu->msg, sdu->N_bytes, tx_next, mac);
|
||||
}
|
||||
// Ciphering
|
||||
|
|
Loading…
Reference in New Issue