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
e0b60897
Commit
e0b60897
authored
Mar 06, 2019
by
Nick Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct contention resolution id
parent
fdbec2a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
+4
-2
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
+5
-6
No files found.
openair2/LAYER2/MAC/eNB_scheduler_RA_NB_IoT.c
View file @
e0b60897
...
...
@@ -986,7 +986,7 @@ int fill_msg4_NB_IoT(
// we have three subheader here: 1 for Control element of Contention resolution, 2 for CCCH
SCH_SUBHEADER_FIXED_NB_IoT
*
msg4_sub_1
=
(
SCH_SUBHEADER_FIXED_NB_IoT
*
)
dlsch_buffer
;
msg4_sub_1
->
R
=
0
;
msg4_sub_1
->
E
=
1
;
msg4_sub_1
->
E
=
0
;
msg4_sub_1
->
LCID
=
UE_CONTENTION_RESOLUTION
;
length
+=
1
;
...
...
@@ -1034,12 +1034,14 @@ int fill_msg4_NB_IoT_fixed(
int
length
=
0
;
uint8_t
*
dlsch_buffer
=
&
ra_template
->
msg4_buffer
[
0
];
// we have three subheader here: 1 for Control element of Contention resolution, 2 for CCCH
SCH_SUBHEADER_FIXED_NB_IoT
*
msg4_sub_1
=
(
SCH_SUBHEADER_FIXED_NB_IoT
*
)
dlsch_buffer
;
msg4_sub_1
->
R
=
0
;
msg4_sub_1
->
E
=
1
;
msg4_sub_1
->
E
=
0
;
msg4_sub_1
->
LCID
=
UE_CONTENTION_RESOLUTION
;
length
+=
1
;
//dlsch_buffer[0] = 28;
uint8_t
*
con_res
=
(
uint8_t
*
)(
dlsch_buffer
+
1
);
con_res
[
0
]
=
ra_template
->
ccch_buffer
[
0
];
...
...
openair2/LAYER2/MAC/eNB_scheduler_ulsch_NB_IoT.c
View file @
e0b60897
...
...
@@ -223,11 +223,10 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
uint8_t
*
msg4_rrc_pdu
=
NULL
;
LOG_D
(
MAC
,
"RX_SDU_IN
\n
"
);
//
uint8_t* first_6 = (uint8_t*) malloc(6*sizeof(uint8_t));
uint8_t
*
first_6
=
(
uint8_t
*
)
malloc
(
6
*
sizeof
(
uint8_t
));
//for(int a = 0; a<6;a++)
//first_6[a]=sdu[a];
//mac_inst = get_mac_inst(module_id);
for
(
int
a
=
0
;
a
<
6
;
a
++
)
first_6
[
a
]
=
sdu
[
a
+
2
];
// note: if lcid < 25 this is sdu, otherwise this is CE
payload_ptr
=
parse_ulsch_header_NB_IoT
(
sdu
,
&
num_ce
,
&
num_sdu
,
rx_ces
,
rx_lcids
,
rx_lengths
,
length
);
...
...
@@ -275,8 +274,8 @@ void rx_sdu_NB_IoT(module_id_t module_id, int CC_id, frame_t frame, sub_frame_t
rx_lengths
[
i
]
-=
1
;
LOG_D
(
MAC
,
"rx_lengths : %d
\n
"
,
rx_lengths
[
i
]);
msg4_rrc_pdu
=
mac_rrc_msg3_ind_NB_IoT
(
payload_ptr
,
rnti
,
rx_lengths
[
i
]);
receive_msg3_NB_IoT
(
mac_inst
,
rnti
,
PHR
,
DVI_index
,
payload_ptr
,
msg4_rrc_pdu
);
LOG_
D
(
MAC
,
"recieve msg3 Successfully at MAC!
\n
"
);
receive_msg3_NB_IoT
(
mac_inst
,
rnti
,
PHR
,
DVI_index
,
first_6
,
msg4_rrc_pdu
);
LOG_
I
(
MAC
,
"Contention resolution ID = %02x %02x %02x %02x %02x %02x
\n
"
,
first_6
[
0
],
first_6
[
1
],
first_6
[
2
],
first_6
[
3
],
first_6
[
4
],
first_6
[
5
]
);
//NB_IoT_mac_rrc_data_ind(payload_ptr,mac_inst,rnti);
//NB_IoT_receive_msg3(mac_inst,rnti,PHR,ul_total_buffer);
break
;
...
...
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