Commit a11d605f authored by gauthier's avatar gauthier
Browse files

Clean

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6051 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e576ee40
...@@ -243,9 +243,6 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP) ...@@ -243,9 +243,6 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP)
list_init (&rlc_pP->input_sdus, NULL); list_init (&rlc_pP->input_sdus, NULL);
rlc_pP->protocol_state = RLC_NULL_STATE; 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; //rlc_pP->vt_us = 0;
...@@ -262,16 +259,7 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP) ...@@ -262,16 +259,7 @@ rlc_um_init (rlc_um_entity_t * const rlc_pP)
rlc_pP->tx_sn_length = 10; rlc_pP->tx_sn_length = 10;
rlc_pP->tx_header_min_length_in_bytes = 2; 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) { if (rlc_pP->dar_buffer == NULL) {
rlc_pP->dar_buffer = calloc (1, 1024 * sizeof (void *)); 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) ...@@ -286,9 +274,7 @@ rlc_um_reset_state_variables (rlc_um_entity_t * const rlc_pP)
{ {
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
rlc_pP->buffer_occupancy = 0; rlc_pP->buffer_occupancy = 0;
//rlc_pP->nb_sdu = 0;
//rlc_pP->next_sdu_index = 0;
//rlc_pP->current_sdu_index = 0;
// TX SIDE // TX SIDE
rlc_pP->vt_us = 0; rlc_pP->vt_us = 0;
...@@ -307,15 +293,6 @@ rlc_um_cleanup (rlc_um_entity_t * const rlc_pP) ...@@ -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->pdus_to_mac_layer);
list_free (&rlc_pP->input_sdus); 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 // RX SIDE
list_free (&rlc_pP->pdus_from_mac_layer); list_free (&rlc_pP->pdus_from_mac_layer);
if ((rlc_pP->output_sdu_in_construction)) { if ((rlc_pP->output_sdu_in_construction)) {
......
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