Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
e3aa8400
Commit
e3aa8400
authored
Feb 04, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for progran dl_mac_config message destruction
parent
db255c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
1 deletion
+58
-1
openair2/ENB_APP/enb_agent_mac.c
openair2/ENB_APP/enb_agent_mac.c
+58
-1
No files found.
openair2/ENB_APP/enb_agent_mac.c
View file @
e3aa8400
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include "enb_agent_mac_internal.h"
#include "enb_agent_mac_internal.h"
#include "LAYER2/MAC/proto.h"
#include "LAYER2/MAC/proto.h"
#include "LAYER2/MAC/enb_agent_mac_proto.h"
#include "log.h"
#include "log.h"
...
@@ -1029,7 +1030,63 @@ int enb_agent_mac_create_empty_dl_config(mid_t mod_id, Protocol__ProgranMessage
...
@@ -1029,7 +1030,63 @@ int enb_agent_mac_create_empty_dl_config(mid_t mod_id, Protocol__ProgranMessage
}
}
int
enb_agent_mac_destroy_dl_config
(
Protocol__ProgranMessage
*
msg
)
{
int
enb_agent_mac_destroy_dl_config
(
Protocol__ProgranMessage
*
msg
)
{
//TODO: De-allocate the memory of the message
int
i
,
j
,
k
;
if
(
msg
->
msg_case
!=
PROTOCOL__PROGRAN_MESSAGE__MSG_DL_MAC_CONFIG_MSG
)
goto
error
;
Protocol__PrpDlDci
*
dl_dci
;
free
(
msg
->
dl_mac_config_msg
->
header
);
for
(
i
=
0
;
i
<
msg
->
dl_mac_config_msg
->
n_dl_ue_data
;
i
++
)
{
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
ce_bitmap
);
for
(
j
=
0
;
j
<
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
n_rlc_pdu
;
j
++
)
{
for
(
k
=
0
;
k
<
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
rlc_pdu
[
j
]
->
n_rlc_pdu_tb
;
k
++
)
{
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
rlc_pdu
[
j
]
->
rlc_pdu_tb
[
k
]);
}
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
rlc_pdu
[
j
]
->
rlc_pdu_tb
);
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
rlc_pdu
[
j
]);
}
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
rlc_pdu
);
dl_dci
=
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]
->
dl_dci
;
free
(
dl_dci
->
tbs_size
);
free
(
dl_dci
->
mcs
);
free
(
dl_dci
->
ndi
);
free
(
dl_dci
->
rv
);
free
(
dl_dci
);
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
[
i
]);
}
free
(
msg
->
dl_mac_config_msg
->
dl_ue_data
);
for
(
i
=
0
;
i
<
msg
->
dl_mac_config_msg
->
n_dl_rar
;
i
++
)
{
dl_dci
=
msg
->
dl_mac_config_msg
->
dl_rar
[
i
]
->
rar_dci
;
free
(
dl_dci
->
tbs_size
);
free
(
dl_dci
->
mcs
);
free
(
dl_dci
->
ndi
);
free
(
dl_dci
->
rv
);
free
(
dl_dci
);
free
(
msg
->
dl_mac_config_msg
->
dl_rar
[
i
]);
}
free
(
msg
->
dl_mac_config_msg
->
dl_rar
);
for
(
i
=
0
;
i
<
msg
->
dl_mac_config_msg
->
n_dl_broadcast
;
i
++
)
{
dl_dci
=
msg
->
dl_mac_config_msg
->
dl_broadcast
[
i
]
->
broad_dci
;
free
(
dl_dci
->
tbs_size
);
free
(
dl_dci
->
mcs
);
free
(
dl_dci
->
ndi
);
free
(
dl_dci
->
rv
);
free
(
dl_dci
);
free
(
msg
->
dl_mac_config_msg
->
dl_broadcast
[
i
]);
}
free
(
msg
->
dl_mac_config_msg
->
dl_broadcast
);
for
(
i
=
0
;
i
<
msg
->
dl_mac_config_msg
->
n_ofdm_sym
;
i
++
)
{
free
(
msg
->
dl_mac_config_msg
->
ofdm_sym
[
i
]);
}
free
(
msg
->
dl_mac_config_msg
->
ofdm_sym
);
return
0
;
error:
return
-
1
;
return
-
1
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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