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
lizhongxiao
OpenXG-RAN
Commits
0a92f6ff
Commit
0a92f6ff
authored
Jun 02, 2017
by
Cedric Roux
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/fix-cce-allocation-w22' into develop
parents
9bef36f2
b67847c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
13 deletions
+12
-13
openair1/PHY/LTE_TRANSPORT/dci.c
openair1/PHY/LTE_TRANSPORT/dci.c
+2
-1
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
+0
-0
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+10
-12
No files found.
openair1/PHY/LTE_TRANSPORT/dci.c
View file @
0a92f6ff
...
...
@@ -2653,7 +2653,8 @@ int get_nCCE_offset_l1(int *CCE_table,
search_space_free
=
1
;
for
(
l
=
0
;
l
<
L
;
l
++
)
{
if
(
CCE_table
[(((
Yk
+
m
)
%
(
nCCE
/
L
))
*
L
)
+
l
]
==
1
)
{
int
cce
=
(((
Yk
+
m
)
%
(
nCCE
/
L
))
*
L
)
+
l
;
if
(
cce
>=
nCCE
||
CCE_table
[
cce
]
==
1
)
{
search_space_free
=
0
;
break
;
}
...
...
openair2/LAYER2/MAC/eNB_scheduler_dlsch.c
100755 → 100644
View file @
0a92f6ff
File mode changed from 100755 to 100644
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
0a92f6ff
...
...
@@ -990,7 +990,8 @@ int get_nCCE_offset(int *CCE_table,
search_space_free
=
1
;
for
(
l
=
0
;
l
<
L
;
l
++
)
{
if
(
CCE_table
[(((
Yk
+
m
)
%
(
nCCE
/
L
))
*
L
)
+
l
]
==
1
)
{
int
cce
=
(((
Yk
+
m
)
%
(
nCCE
/
L
))
*
L
)
+
l
;
if
(
cce
>=
nCCE
||
CCE_table
[
cce
]
==
1
)
{
search_space_free
=
0
;
break
;
}
...
...
@@ -1079,13 +1080,8 @@ try_again:
dci_alloc
->
rnti
,
1
<<
dci_alloc
->
L
,
nCCE
,
nCCE_max
,
DCI_pdu
->
num_pdcch_symbols
);
if
(
nCCE
+
(
1
<<
dci_alloc
->
L
)
>
nCCE_max
)
{
if
(
DCI_pdu
->
num_pdcch_symbols
==
3
)
goto
failed
;
DCI_pdu
->
num_pdcch_symbols
++
;
nCCE_max
=
mac_xface
->
get_nCCE_max
(
module_idP
,
CC_idP
,
DCI_pdu
->
num_pdcch_symbols
,
subframeP
);
goto
try_again
;
}
if
(
nCCE
+
(
1
<<
dci_alloc
->
L
)
>
nCCE_max
)
goto
failed
;
// number of CCEs left can potentially hold this allocation
fCCE
=
get_nCCE_offset
(
CCE_table
,
...
...
@@ -1095,9 +1091,11 @@ try_again:
dci_alloc
->
rnti
,
subframeP
);
if
(
fCCE
==
-
1
)
{
failed:
if
(
DCI_pdu
->
num_pdcch_symbols
==
3
)
{
LOG_I
(
MAC
,
"subframe %d: Dropping Allocation for RNTI %x
\n
"
,
subframeP
,
dci_alloc
->
rnti
);
LOG_I
(
MAC
,
"subframe %d: Dropping Allocation for RNTI %x (DCI %d/%d)
\n
"
,
subframeP
,
dci_alloc
->
rnti
,
i
,
DCI_pdu
->
Num_common_dci
+
DCI_pdu
->
Num_ue_spec_dci
);
for
(
j
=
0
;
j
<=
i
;
j
++
){
LOG_I
(
MAC
,
"DCI %d/%d (%d,%d) : rnti %x dci format %d, aggreg %d nCCE %d / %d (num_pdcch_symbols %d)
\n
"
,
j
,
DCI_pdu
->
Num_common_dci
+
DCI_pdu
->
Num_ue_spec_dci
,
...
...
@@ -1107,7 +1105,7 @@ try_again:
nCCE
,
nCCE_max
,
DCI_pdu
->
num_pdcch_symbols
);
}
//dump_CCE_table(CCE_table,nCCE_max,subframeP,dci_alloc->rnti,1<<dci_alloc->L);
goto
fa
iled
;
goto
fa
tal
;
}
DCI_pdu
->
num_pdcch_symbols
++
;
nCCE_max
=
mac_xface
->
get_nCCE_max
(
module_idP
,
CC_idP
,
DCI_pdu
->
num_pdcch_symbols
,
subframeP
);
...
...
@@ -1125,7 +1123,7 @@ try_again:
return
0
;
fa
iled
:
fa
tal
:
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