force UE DRB no integrity

This commit is contained in:
Laurent THOMAS
2021-06-23 09:46:53 +02:00
parent 17775c7ecc
commit aa9837395e
2 changed files with 5 additions and 4 deletions
+3 -2
View File
@@ -66,8 +66,9 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
header_size = 3;
}
/* SRBs always have MAC-I, even if integrity is not active */
if (entity->has_integrity
|| entity->type == NR_PDCP_SRB) {
if ( // FIXME: DRB creation is with integrity, but we don't receive it
// entity->has_integrity ||
entity->type == NR_PDCP_SRB) {
integrity_size = 4;
} else {
integrity_size = 0;
+2 -2
View File
@@ -425,7 +425,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size)
int is_enb;
/* is it SRB? */
for (i = 0; i < 2; i++) {
for (i = 0; i < sizeofArray(ue->srb); i++) {
if (entity == ue->srb[i]) {
is_srb = 1;
rb_id = i+1;
@@ -434,7 +434,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size)
}
/* maybe DRB? */
for (i = 0; i < 5; i++) {
for (i = 0; i < sizeofArray(ue->drb) ; i++) {
if (entity == ue->drb[i]) {
is_srb = 0;
rb_id = i+1;