nr pdcp: minor: fix spacing
This commit is contained in:
@@ -88,7 +88,6 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
|
|||||||
entity->stats.rxpdu_dd_pkts++;
|
entity->stats.rxpdu_dd_pkts++;
|
||||||
entity->stats.rxpdu_dd_bytes += size;
|
entity->stats.rxpdu_dd_bytes += size;
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -120,7 +119,6 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
|
|||||||
entity->stats.rxpdu_dd_pkts++;
|
entity->stats.rxpdu_dd_pkts++;
|
||||||
entity->stats.rxpdu_dd_bytes += size;
|
entity->stats.rxpdu_dd_bytes += size;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -130,7 +128,6 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
|
|||||||
entity->stats.rxpdu_dd_pkts++;
|
entity->stats.rxpdu_dd_pkts++;
|
||||||
entity->stats.rxpdu_dd_bytes += size;
|
entity->stats.rxpdu_dd_bytes += size;
|
||||||
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,7 +155,6 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
|
|||||||
entity->stats.txsdu_pkts++;
|
entity->stats.txsdu_pkts++;
|
||||||
entity->stats.txsdu_bytes += cur->size;
|
entity->stats.txsdu_bytes += cur->size;
|
||||||
|
|
||||||
|
|
||||||
nr_pdcp_free_sdu(cur);
|
nr_pdcp_free_sdu(cur);
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
@@ -232,11 +228,10 @@ static int nr_pdcp_entity_process_sdu(nr_pdcp_entity_t *entity,
|
|||||||
entity->rb_id, count, entity->is_gnb ? 1 : 0);
|
entity->rb_id, count, entity->is_gnb ? 1 : 0);
|
||||||
|
|
||||||
memcpy((unsigned char *)buf + header_size + size, integrity, 4);
|
memcpy((unsigned char *)buf + header_size + size, integrity, 4);
|
||||||
}
|
} else if (integrity_size == 4) {
|
||||||
|
|
||||||
// set MAC-I to 0 for SRBs with integrity not active
|
// set MAC-I to 0 for SRBs with integrity not active
|
||||||
else if (integrity_size == 4)
|
|
||||||
memset(buf + header_size + size, 0, 4);
|
memset(buf + header_size + size, 0, 4);
|
||||||
|
}
|
||||||
|
|
||||||
if (entity->has_ciphering && (entity->is_gnb || entity->security_mode_completed)) {
|
if (entity->has_ciphering && (entity->is_gnb || entity->security_mode_completed)) {
|
||||||
entity->cipher(entity->security_context,
|
entity->cipher(entity->security_context,
|
||||||
|
|||||||
Reference in New Issue
Block a user