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
ZhouShuya
OpenXG-RAN
Commits
9e84ca4c
Commit
9e84ca4c
authored
Oct 25, 2018
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revise function for determine SIBs TBS
parent
183644ca
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
3 deletions
+39
-3
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
+38
-2
openair2/LAYER2/MAC/proto_NB_IoT.h
openair2/LAYER2/MAC/proto_NB_IoT.h
+1
-1
No files found.
openair2/LAYER2/MAC/eNB_scheduler_bch_NB_IoT.c
View file @
9e84ca4c
...
...
@@ -19,6 +19,43 @@ char str[6][7] = { "SIBs_1", "SIBs_2", "SIBs_3", "SIBs_4", "SIBs_5", "SIBs_6" };
extern
int
extend_space
[
num_flags
];
extern
int
extend_alpha_offset
[
num_flags
];
uint8_t
get_SIB23_size
(
void
)
{
rrc_config_NB_IoT_t
*
mac_config
=
&
mac_inst
->
rrc_config
;
uint8_t
size_SIB23_in_MAC
=
0
;
switch
(
mac_config
->
sibs_NB_IoT_sched
[
0
].
si_tb
)
{
case
si_TB_56
:
size_SIB23_in_MAC
=
56
;
break
;
case
si_TB_120
:
size_SIB23_in_MAC
=
120
;
break
;
case
si_TB_208
:
size_SIB23_in_MAC
=
208
;
break
;
case
si_TB_256
:
size_SIB23_in_MAC
=
256
;
break
;
case
si_TB_328
:
size_SIB23_in_MAC
=
328
;
break
;
case
si_TB_440
:
size_SIB23_in_MAC
=
440
;
break
;
case
si_TB_556
:
size_SIB23_in_MAC
=
556
;
break
;
case
SI_TB_680
:
size_SIB23_in_MAC
=
680
;
break
;
default:
LOG_E
(
MAC
,
"No index for SIB23 size from SIB1!
\n
"
);
break
;
return
size_SIB23_in_MAC
;
}
}
void
schedule_sibs
(
eNB_MAC_INST_NB_IoT
*
mac_inst
,
uint32_t
sibs_order
,
int
start_subframe1
){
available_resource_DL_t
*
pt
[
8
]
=
{
(
available_resource_DL_t
*
)
0
};
...
...
@@ -79,10 +116,9 @@ void schedule_sibs(eNB_MAC_INST_NB_IoT *mac_inst, uint32_t sibs_order, int start
if
((
available_resource_DL_t
*
)
0
!=
pt
[
k
]){
new_node
=
(
schedule_result_t
*
)
malloc
(
sizeof
(
schedule_result_t
));
// fill new node
SIB23_size
=
get_
NB_IoT_
SIB23_size
();
SIB23_size
=
get_SIB23_size
();
new_node
->
output_subframe
=
first_subframe
[
k
];
new_node
->
end_subframe
=
(
j
==
i
)
?
last_subframe
:
j
+
9
;
SIB23_size
=
680
;
// For SIBs setting, from TS 36.331, we should use either 256 or 680 byte to pack it
new_node
->
sdu_length
=
SIB23_size
;
new_node
->
DLSCH_pdu
=
SIB23_pdu
;
new_node
->
direction
=
DL
;
...
...
openair2/LAYER2/MAC/proto_NB_IoT.h
View file @
9e84ca4c
...
...
@@ -77,7 +77,7 @@ void rrc_mac_config_req_NB_IoT(
uint8_t
ded_flag
,
uint8_t
ue_list_ded_num
);
uint8_t
get_SIB23_size
(
void
);
///system
...
...
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