From 3b0eed2edcb2ef392c6545ec8c537783db6d1a64 Mon Sep 17 00:00:00 2001 From: Raymond Knopp Date: Wed, 7 Dec 2022 22:23:10 +0100 Subject: [PATCH] hotfix to avoid checking for sdu_sizeP=255 in nr_rrc_data_req. If ever the SDU has this size the function will return. This is an old piece of code where 255 meant -1 which was what was returned from the asn1c encoding function if the ASN.1 message was not encodable. --- openair2/RRC/NR/L2_nr_interface.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/openair2/RRC/NR/L2_nr_interface.c b/openair2/RRC/NR/L2_nr_interface.c index 74435b7837..0a5a28b0cb 100644 --- a/openair2/RRC/NR/L2_nr_interface.c +++ b/openair2/RRC/NR/L2_nr_interface.c @@ -70,10 +70,6 @@ nr_rrc_data_req( ) //------------------------------------------------------------------------------ { - if(sdu_sizeP == 255) { - LOG_D(RRC,"sdu_sizeP == 255"); - return false; - } MessageDef *message_p; // Uses a new buffer to avoid issue with PDCP buffer content that could be changed by PDCP (asynchronous message handling).