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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG-RAN
Commits
2f753873
Commit
2f753873
authored
Apr 30, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
parent
75133576
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
22 deletions
+25
-22
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+25
-22
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
2f753873
...
@@ -451,10 +451,11 @@ int nr_process_mac_pdu(module_id_t module_idP,
...
@@ -451,10 +451,11 @@ int nr_process_mac_pdu(module_id_t module_idP,
0
);
0
);
break
;
break
;
case
UL_SCH_LCID_DTCH
:
case
UL_SCH_LCID_DTCH
:
// check if LCID is valid at current time.
// check if LCID is valid at current time.
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
0
;
return
0
;
}
struct
timespec
time_request
;
struct
timespec
time_request
;
clock_gettime
(
CLOCK_REALTIME
,
&
time_request
);
clock_gettime
(
CLOCK_REALTIME
,
&
time_request
);
...
@@ -471,24 +472,26 @@ int nr_process_mac_pdu(module_id_t module_idP,
...
@@ -471,24 +472,26 @@ int nr_process_mac_pdu(module_id_t module_idP,
mac_len
);
mac_len
);
UE_info
->
mac_stats
[
UE_id
].
lc_bytes_rx
[
rx_lcid
]
+=
mac_len
;
UE_info
->
mac_stats
[
UE_id
].
lc_bytes_rx
[
rx_lcid
]
+=
mac_len
;
mac_rlc_data_ind
(
module_idP
,
mac_rlc_data_ind
(
module_idP
,
UE_info
->
rnti
[
UE_id
],
UE_info
->
rnti
[
UE_id
],
module_idP
,
module_idP
,
frameP
,
frameP
,
ENB_FLAG_YES
,
ENB_FLAG_YES
,
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
);
/* Updated estimated buffer when receiving data */
/* Updated estimated buffer when receiving data */
if
(
sched_ctrl
->
estimated_ul_buffer
>=
mac_len
)
if
(
sched_ctrl
->
estimated_ul_buffer
>=
mac_len
)
{
sched_ctrl
->
estimated_ul_buffer
-=
mac_len
;
sched_ctrl
->
estimated_ul_buffer
-=
mac_len
;
else
}
else
{
sched_ctrl
->
estimated_ul_buffer
=
0
;
sched_ctrl
->
estimated_ul_buffer
=
0
;
break
;
}
break
;
default:
default:
LOG_E
(
NR_MAC
,
"Received unknown MAC header (LCID = 0x%02x)
\n
"
,
rx_lcid
);
LOG_E
(
NR_MAC
,
"Received unknown MAC header (LCID = 0x%02x)
\n
"
,
rx_lcid
);
...
...
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