Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mingxuan Li
openairinterface5G
Commits
48d19391
Commit
48d19391
authored
2 years ago
by
Francesco Mani
Browse files
Options
Downloads
Patches
Plain Diff
fix for PHY structure disactivation
parent
7c9b5013
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
executables/nr-gnb.c
+8
-2
8 additions, 2 deletions
executables/nr-gnb.c
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
+0
-3
0 additions, 3 deletions
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
with
8 additions
and
5 deletions
executables/nr-gnb.c
+
8
−
2
View file @
48d19391
...
@@ -175,12 +175,18 @@ void rx_func(void *param)
...
@@ -175,12 +175,18 @@ void rx_func(void *param)
T
(
T_GNB_PHY_DL_TICK
,
T_INT
(
gNB
->
Mod_id
),
T_INT
(
frame_tx
),
T_INT
(
slot_tx
));
T
(
T_GNB_PHY_DL_TICK
,
T_INT
(
gNB
->
Mod_id
),
T_INT
(
frame_tx
),
T_INT
(
slot_tx
));
// disactivate PHY stats if UE is inactive for
more than 10
frames
// disactivate PHY stats if UE is inactive for
a given number of
frames
for
(
int
i
=
0
;
i
<
MAX_MOBILES_PER_GNB
;
i
++
)
{
for
(
int
i
=
0
;
i
<
MAX_MOBILES_PER_GNB
;
i
++
)
{
NR_gNB_PHY_STATS_t
*
stats
=
&
gNB
->
phy_stats
[
i
];
NR_gNB_PHY_STATS_t
*
stats
=
&
gNB
->
phy_stats
[
i
];
if
(
stats
->
active
&&
(
frame_rx
>
(
stats
->
frame
+
NUMBER_FRAMES_PHY_UE_INACTIVE
)
%
1024
)
)
if
(
stats
->
active
&&
((
(
frame_rx
-
stats
->
frame
+
1024
)
%
1024
)
>
NUMBER_FRAMES_PHY_UE_INACTIVE
))
stats
->
active
=
false
;
stats
->
active
=
false
;
}
}
// disactivate ULSCH structure if it is inactive for a given number of frames
for
(
int
i
=
0
;
i
<
NUMBER_OF_NR_ULSCH_MAX
;
i
++
)
{
NR_gNB_ULSCH_t
*
ulsch
=
gNB
->
ulsch
[
i
];
if
(
ulsch
->
active
&&
(((
frame_rx
-
ulsch
->
harq_process
->
frame
+
1024
)
%
1024
)
>
NUMBER_FRAMES_PHY_UE_INACTIVE
))
ulsch
->
active
=
false
;
}
// RX processing
// RX processing
int
rx_slot_type
=
nr_slot_select
(
cfg
,
frame_rx
,
slot_rx
);
int
rx_slot_type
=
nr_slot_select
(
cfg
,
frame_rx
,
slot_rx
);
...
...
This diff is collapsed.
Click to expand it.
openair1/PHY/NR_TRANSPORT/nr_ulsch.c
+
0
−
3
View file @
48d19391
...
@@ -51,9 +51,6 @@ int16_t find_nr_ulsch(PHY_VARS_gNB *gNB, uint16_t rnti, int pid, int frame)
...
@@ -51,9 +51,6 @@ int16_t find_nr_ulsch(PHY_VARS_gNB *gNB, uint16_t rnti, int pid, int frame)
// if there is already an active ULSCH for this RNTI and HARQ_PID
// if there is already an active ULSCH for this RNTI and HARQ_PID
if
((
ulsch
->
harq_pid
==
pid
)
&&
(
ulsch
->
rnti
==
rnti
))
if
((
ulsch
->
harq_pid
==
pid
)
&&
(
ulsch
->
rnti
==
rnti
))
return
i
;
return
i
;
// remove inactive ULSCH (from disconnected UEs)
else
if
((
frame
>
(
ulsch
->
harq_process
->
frame
+
NUMBER_FRAMES_PHY_UE_INACTIVE
)
%
1024
))
ulsch
->
active
=
false
;
}
}
}
}
return
first_free_index
;
return
first_free_index
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment