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
a6149386
Commit
a6149386
authored
Mar 31, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NR UE MAC: Decode TBS and print warning if unknown LCID
parent
25b3aaf2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
34 deletions
+19
-34
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+19
-34
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
a6149386
...
@@ -3274,22 +3274,10 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3274,22 +3274,10 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
// check if LCID is valid at current time.
// check if LCID is valid at current time.
case
DL_SCH_LCID_DCCH1
:
case
DL_SCH_LCID_DCCH1
:
// check if LCID is valid at current time.
// check if LCID is valid at current time.
default:
case
DL_SCH_LCID_DTCH
...
(
DL_SCH_LCID_DTCH
+
28
):
{
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
if
(
!
get_mac_len
(
pduP
,
pdu_len
,
&
mac_len
,
&
mac_subheader_len
))
return
;
return
;
LOG_D
(
NR_MAC
,
"[UE %d] %4d.%2d : DLSCH -> DL-DTCH %d (gNB %d, %d bytes)
\n
"
,
module_idP
,
frameP
,
slot
,
rx_lcid
,
gNB_index
,
mac_len
);
LOG_D
(
NR_MAC
,
"%4d.%2d : DLSCH -> LCID %d %d bytes
\n
"
,
frameP
,
slot
,
rx_lcid
,
mac_len
);
#if defined(ENABLE_MAC_PAYLOAD_DEBUG)
LOG_T
(
MAC
,
"[UE %d] First 32 bytes of DLSCH :
\n
"
,
module_idP
);
for
(
i
=
0
;
i
<
32
;
i
++
)
LOG_T
(
MAC
,
"%x."
,
(
pduP
+
mac_subheader_len
)[
i
]);
LOG_T
(
MAC
,
"
\n
"
);
#endif
if
(
rx_lcid
<
NB_RB_MAX
&&
rx_lcid
>=
DL_SCH_LCID_DCCH
)
{
mac_rlc_data_ind
(
module_idP
,
mac_rlc_data_ind
(
module_idP
,
mac
->
crnti
,
mac
->
crnti
,
...
@@ -3298,17 +3286,14 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
...
@@ -3298,17 +3286,14 @@ void nr_ue_process_mac_pdu(nr_downlink_indication_t *dl_info,
ENB_FLAG_NO
,
ENB_FLAG_NO
,
MBMS_FLAG_NO
,
MBMS_FLAG_NO
,
rx_lcid
,
rx_lcid
,
(
char
*
)
(
pduP
+
mac_subheader_len
),
(
char
*
)
(
pduP
+
mac_subheader_len
),
mac_len
,
mac_len
,
1
,
1
,
NULL
);
NULL
);
}
else
{
LOG_E
(
MAC
,
"[UE %d] Frame %d : unknown LCID %d (gNB %d)
\n
"
,
module_idP
,
frameP
,
rx_lcid
,
gNB_index
);
}
break
;
break
;
}
default:
LOG_W
(
MAC
,
"unknown lcid %02x
\n
"
,
rx_lcid
);
break
;
}
}
pduP
+=
(
mac_subheader_len
+
mac_len
);
pduP
+=
(
mac_subheader_len
+
mac_len
);
pdu_len
-=
(
mac_subheader_len
+
mac_len
);
pdu_len
-=
(
mac_subheader_len
+
mac_len
);
...
...
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