Commit 45a1370f authored by Laurent THOMAS's avatar Laurent THOMAS

force UE DRB no integrity

parent 26f4a16d
...@@ -66,8 +66,9 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity, ...@@ -66,8 +66,9 @@ static void nr_pdcp_entity_recv_pdu(nr_pdcp_entity_t *entity,
header_size = 3; header_size = 3;
} }
/* SRBs always have MAC-I, even if integrity is not active */ /* SRBs always have MAC-I, even if integrity is not active */
if (entity->has_integrity if ( // FIXME: DRB creation is with integrity, but we don't receive it
|| entity->type == NR_PDCP_SRB) { // entity->has_integrity ||
entity->type == NR_PDCP_SRB) {
integrity_size = 4; integrity_size = 4;
} else { } else {
integrity_size = 0; integrity_size = 0;
......
...@@ -425,7 +425,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size) ...@@ -425,7 +425,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size)
int is_enb; int is_enb;
/* is it SRB? */ /* is it SRB? */
for (i = 0; i < 2; i++) { for (i = 0; i < sizeofArray(ue->srb); i++) {
if (entity == ue->srb[i]) { if (entity == ue->srb[i]) {
is_srb = 1; is_srb = 1;
rb_id = i+1; rb_id = i+1;
...@@ -434,7 +434,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size) ...@@ -434,7 +434,7 @@ static void deliver_sdu(void *_ue, nr_rlc_entity_t *entity, char *buf, int size)
} }
/* maybe DRB? */ /* maybe DRB? */
for (i = 0; i < 5; i++) { for (i = 0; i < sizeofArray(ue->drb) ; i++) {
if (entity == ue->drb[i]) { if (entity == ue->drb[i]) {
is_srb = 0; is_srb = 0;
rb_id = i+1; rb_id = i+1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment