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
常顺宇
OpenXG-RAN
Commits
7785b5aa
Commit
7785b5aa
authored
Oct 31, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5951
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
13483270
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
openair2/LAYER2/MAC/defs.h
openair2/LAYER2/MAC/defs.h
+1
-1
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
+3
-2
No files found.
openair2/LAYER2/MAC/defs.h
View file @
7785b5aa
...
@@ -646,7 +646,7 @@ typedef struct {
...
@@ -646,7 +646,7 @@ typedef struct {
///subband bitmap coniguration (for ALU icic algo purpose), in test phase
///subband bitmap coniguration (for ALU icic algo purpose), in test phase
typedef
struct
{
typedef
struct
{
uint8_t
sbmap
[
NUMBER_OF_SUBBANDS
];
//13 = number of SB MAX for 100 PRB
uint8_t
sbmap
[
NUMBER_OF_SUBBANDS
_MAX
];
//13 = number of SB MAX for 100 PRB
uint8_t
periodicity
;
uint8_t
periodicity
;
uint8_t
first_subframe
;
uint8_t
first_subframe
;
uint8_t
sb_size
;
uint8_t
sb_size
;
...
...
openair2/LAYER2/MAC/eNB_scheduler_primitives.c
View file @
7785b5aa
...
@@ -714,12 +714,13 @@ uint32_t allocate_prbs_sub(int nb_rb, uint8_t *rballoc) {
...
@@ -714,12 +714,13 @@ uint32_t allocate_prbs_sub(int nb_rb, uint8_t *rballoc) {
LOG_T
(
MAC
,
"*****Check1RBALLOC****: %d%d%d%d (nb_rb %d,N_RBG %d)
\n
"
,
LOG_T
(
MAC
,
"*****Check1RBALLOC****: %d%d%d%d (nb_rb %d,N_RBG %d)
\n
"
,
rballoc
[
3
],
rballoc
[
2
],
rballoc
[
1
],
rballoc
[
0
],
nb_rb
,
mac_xface
->
lte_frame_parms
->
N_RBG
);
rballoc
[
3
],
rballoc
[
2
],
rballoc
[
1
],
rballoc
[
0
],
nb_rb
,
mac_xface
->
lte_frame_parms
->
N_RBG
);
while
((
nb_rb
>
0
)
&&
(
check
<
mac_xface
->
lte_frame_parms
->
N_RBG
)){
while
((
nb_rb
>
0
)
&&
(
check
<
mac_xface
->
lte_frame_parms
->
N_RBG
)){
//printf("rballoc[%d] %d\n",check,rballoc[check]);
//printf("rballoc[%d] %d\n",check,rballoc[check]);
if
(
rballoc
[
check
]
==
1
){
if
(
rballoc
[
check
]
==
1
){
rballoc_dci
|=
(
1
<<
((
mac_xface
->
lte_frame_parms
->
N_RBG
-
1
)
-
check
));
rballoc_dci
|=
(
1
<<
((
mac_xface
->
lte_frame_parms
->
N_RBG
-
1
)
-
check
));
switch
(
mac_xface
->
lte_frame_parms
->
N_RB_DL
)
{
switch
(
mac_xface
->
lte_frame_parms
->
N_RB_DL
)
{
case
6
:
case
6
:
nb_rb
--
;
nb_rb
--
;
break
;
case
25
:
case
25
:
if
((
check
==
mac_xface
->
lte_frame_parms
->
N_RBG
-
1
))
if
((
check
==
mac_xface
->
lte_frame_parms
->
N_RBG
-
1
))
nb_rb
--
;
nb_rb
--
;
...
@@ -737,7 +738,7 @@ uint32_t allocate_prbs_sub(int nb_rb, uint8_t *rballoc) {
...
@@ -737,7 +738,7 @@ uint32_t allocate_prbs_sub(int nb_rb, uint8_t *rballoc) {
break
;
break
;
}
}
}
}
//printf("rb_alloc %x\n",rballoc_dci);
//
printf("rb_alloc %x\n",rballoc_dci);
check
=
check
+
1
;
check
=
check
+
1
;
// check1 = check1+2;
// check1 = check1+2;
}
}
...
...
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