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
alex037yang
OpenXG-RAN
Commits
b2b3f383
Commit
b2b3f383
authored
Apr 08, 2021
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip invalid MAC CCCH messages for being processed at both gNB and UE
parent
7c377945
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+14
-5
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+9
-2
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
b2b3f383
...
...
@@ -1786,18 +1786,27 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
mac_subheader_len
=
2
;
}
if
(
pdu_len
>=
(
mac_subheader_len
+
mac_sdu_len
)
)
{
LOG_D
(
NR_MAC
,
"DL_SCH_LCID_CCCH with payload len %d
\n
"
,
mac_sdu_len
);
// Check if it is a valid CCCH message, we get all 00's messages very often
int
i
=
0
;
for
(
i
=
0
;
i
<
(
mac_subheader_len
+
mac_sdu_len
);
i
++
)
{
if
(
pduP
[
i
]
!=
0
)
{
break
;
}
}
if
(
i
==
(
mac_subheader_len
+
mac_sdu_len
))
{
LOG_D
(
NR_MAC
,
"%s() Invalid CCCH message!, pdu_len: %d
\n
"
,
__func__
,
pdu_len
);
done
=
1
;
break
;
}
LOG_D
(
NR_MAC
,
"RRCSetup received at nr_ue_process_mac_pdu with payload len %d:
\n
"
,
mac_sdu_len
);
if
(
mac_sdu_len
>
0
)
{
LOG_D
(
NR_MAC
,
"DL_SCH_LCID_CCCH (e.g. RRCSetup) with payload len %d
\n
"
,
mac_sdu_len
);
for
(
int
i
=
0
;
i
<
mac_subheader_len
;
i
++
)
{
LOG_D
(
NR_MAC
,
"MAC header %d: 0x%x
\n
"
,
i
,
pduP
[
i
]);
}
for
(
int
i
=
0
;
i
<
mac_sdu_len
;
i
++
)
{
LOG_D
(
NR_MAC
,
"%d: 0x%x
\n
"
,
i
,
pduP
[
mac_subheader_len
+
i
]);
}
nr_mac_rrc_data_ind_ue
(
module_idP
,
CC_id
,
gNB_index
,
frameP
,
0
,
mac
->
crnti
,
CCCH
,
pduP
+
mac_subheader_len
,
mac_sdu_len
);
}
break
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
b2b3f383
...
...
@@ -248,9 +248,16 @@ void nr_process_mac_pdu(
mac_sdu_len
=
8
;
// Check if it is a valid CCCH1 message, we get all 00's messages very often
if
(
pdu_len
!=
9
)
{
int
i
=
0
;
for
(
i
=
0
;
i
<
(
mac_subheader_len
+
mac_sdu_len
);
i
++
)
{
if
(
pdu_ptr
[
i
]
!=
0
)
{
break
;
}
}
if
(
i
==
(
mac_subheader_len
+
mac_sdu_len
))
{
LOG_D
(
NR_MAC
,
"%s() Invalid CCCH1 message!, pdu_len: %d
\n
"
,
__func__
,
pdu_len
);
return
;
done
=
1
;
break
;
}
}
else
{
// fixed length of 6 bytes
...
...
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