Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
a11d605f
Commit
a11d605f
authored
Nov 20, 2014
by
gauthier
Browse files
Clean
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@6051
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
e576ee40
Changes
1
Hide whitespace changes
Inline
Side-by-side
openair2/LAYER2/RLC/UM_v9.3.0/rlc_um_control_primitives.c
View file @
a11d605f
...
...
@@ -243,9 +243,6 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP)
list_init
(
&
rlc_pP
->
input_sdus
,
NULL
);
rlc_pP
->
protocol_state
=
RLC_NULL_STATE
;
//rlc_pP->nb_sdu = 0;
//rlc_pP->next_sdu_index = 0;
//rlc_pP->current_sdu_index = 0;
//rlc_pP->vt_us = 0;
...
...
@@ -262,16 +259,7 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP)
rlc_pP
->
tx_sn_length
=
10
;
rlc_pP
->
tx_header_min_length_in_bytes
=
2
;
// SPARE : not 3GPP
/*#ifdef JUMBO_FRAME
rlc_pP->size_input_sdus_buffer =1024;
#else
rlc_pP->size_input_sdus_buffer =128;
#endif*/
/*if ((rlc_pP->input_sdus == NULL) && (rlc_pP->size_input_sdus_buffer > 0)) {
rlc_pP->input_sdus = calloc(1 , rlc_pP->size_input_sdus_buffer * sizeof (void *));
}*/
if
(
rlc_pP
->
dar_buffer
==
NULL
)
{
rlc_pP
->
dar_buffer
=
calloc
(
1
,
1024
*
sizeof
(
void
*
));
}
...
...
@@ -286,9 +274,7 @@ rlc_um_reset_state_variables (rlc_um_entity_t * const rlc_pP)
{
//-----------------------------------------------------------------------------
rlc_pP
->
buffer_occupancy
=
0
;
//rlc_pP->nb_sdu = 0;
//rlc_pP->next_sdu_index = 0;
//rlc_pP->current_sdu_index = 0;
// TX SIDE
rlc_pP
->
vt_us
=
0
;
...
...
@@ -307,15 +293,6 @@ rlc_um_cleanup (rlc_um_entity_t * const rlc_pP)
list_free
(
&
rlc_pP
->
pdus_to_mac_layer
);
list_free
(
&
rlc_pP
->
input_sdus
);
/*if (rlc_pP->input_sdus) {
for (index = 0; index < rlc_pP->size_input_sdus_buffer; index++) {
if (rlc_pP->input_sdus[index]) {
free_mem_block (rlc_pP->input_sdus[index]);
}
}
free (rlc_pP->input_sdus);
rlc_pP->input_sdus = NULL;
}*/
// RX SIDE
list_free
(
&
rlc_pP
->
pdus_from_mac_layer
);
if
((
rlc_pP
->
output_sdu_in_construction
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment