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
canghaiwuhen
OpenXG-RAN
Commits
465168d2
Commit
465168d2
authored
Feb 22, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Integrated sf triggering to MAC layer and fixed bugs in creation of sf trigger message
parent
991e9950
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
openair2/ENB_APP/enb_agent_mac.c
openair2/ENB_APP/enb_agent_mac.c
+4
-4
openair2/LAYER2/MAC/eNB_scheduler.c
openair2/LAYER2/MAC/eNB_scheduler.c
+9
-1
No files found.
openair2/ENB_APP/enb_agent_mac.c
View file @
465168d2
...
...
@@ -918,7 +918,7 @@ int enb_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Progran
if
(
dl_info
==
NULL
)
goto
error
;
//Fill the status of the current HARQ process for each UE
for
(
i
=
0
;
i
++
;
i
<
sf_trigger_msg
->
n_dl_info
)
{
for
(
i
=
0
;
i
<
sf_trigger_msg
->
n_dl_info
;
i
++
)
{
dl_info
[
i
]
=
malloc
(
sizeof
(
Protocol__PrpDlInfo
));
if
(
dl_info
[
i
]
==
NULL
)
goto
error
;
...
...
@@ -934,7 +934,7 @@ int enb_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Progran
/*TODO: fill in the status of the HARQ process (2 TBs)*/
dl_info
[
i
]
->
n_harq_status
=
2
;
dl_info
[
i
]
->
harq_status
=
malloc
(
sizeof
(
uint32_t
)
*
dl_info
[
i
]
->
n_harq_status
);
for
(
j
=
0
;
j
<
dl_info
[
j
]
->
n_harq_status
;
j
++
)
{
for
(
j
=
0
;
j
<
dl_info
[
i
]
->
n_harq_status
;
j
++
)
{
// TODO: This should be different per TB
dl_info
[
i
]
->
harq_status
[
j
]
=
harq_status
;
}
...
...
@@ -958,7 +958,7 @@ int enb_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Progran
if
(
ul_info
==
NULL
)
goto
error
;
//Fill the reception info for each transmitting UE
for
(
i
=
0
;
i
++
;
i
<
sf_trigger_msg
->
n_ul_info
)
{
for
(
i
=
0
;
i
<
sf_trigger_msg
->
n_ul_info
;
i
++
)
{
ul_info
[
i
]
=
malloc
(
sizeof
(
Protocol__PrpUlInfo
));
if
(
ul_info
[
i
]
==
NULL
)
goto
error
;
...
...
@@ -978,7 +978,7 @@ int enb_agent_mac_sf_trigger(mid_t mod_id, const void *params, Protocol__Progran
given logical channel*/
ul_info
[
i
]
->
n_ul_reception
=
11
;
ul_info
[
i
]
->
ul_reception
=
malloc
(
sizeof
(
uint32_t
)
*
ul_info
[
i
]
->
n_ul_reception
);
for
(
j
=
0
;
j
<
ul_info
[
j
]
->
n_ul_reception
;
j
++
)
{
for
(
j
=
0
;
j
<
ul_info
[
i
]
->
n_ul_reception
;
j
++
)
{
ul_info
[
i
]
->
ul_reception
[
j
]
=
100
;
}
/*TODO: Fill in the reception status for each UEs data*/
...
...
openair2/LAYER2/MAC/eNB_scheduler.c
View file @
465168d2
...
...
@@ -71,6 +71,7 @@
#define ENABLE_MAC_PAYLOAD_DEBUG
#define DEBUG_eNB_SCHEDULER 1
#define ENABLE_ENB_AGENT_DL_SCHEDULER
//#define DISABLE_SF_TRIGGER
//#define DEBUG_HEADER_PARSING 1
//#define DEBUG_PACKET_TRACE 1
...
...
@@ -207,7 +208,14 @@ void eNB_dlsch_ulsch_scheduler(module_id_t module_idP,uint8_t cooperation_flag,
}
#ifndef DISABLE_SF_TRIGGER
//Send subframe trigger to the controller
if
(
mac_agent_registered
[
module_idP
])
{
agent_mac_xface
[
module_idP
]
->
enb_agent_send_sf_trigger
(
module_idP
);
}
#endif
//if (subframeP%5 == 0)
//#ifdef EXMIMO
PROTOCOL_CTXT_SET_BY_MODULE_ID
(
&
ctxt
,
module_idP
,
ENB_FLAG_YES
,
NOT_A_RNTI
,
frameP
,
0
,
module_idP
);
...
...
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