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
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Worker.N
openairinterface5G
Commits
7ed11406
Commit
7ed11406
authored
5 years ago
by
Wang Tsu-Han
Browse files
Options
Downloads
Patches
Plain Diff
fixes for error in if4p5
parent
91250745
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
openair1/PHY/LTE_UE_TRANSPORT/initial_sync.c
+9
-0
9 additions, 0 deletions
openair1/PHY/LTE_UE_TRANSPORT/initial_sync.c
targets/RT/USER/lte-ru.c
+11
-1
11 additions, 1 deletion
targets/RT/USER/lte-ru.c
with
20 additions
and
1 deletion
openair1/PHY/LTE_UE_TRANSPORT/initial_sync.c
+
9
−
0
View file @
7ed11406
...
...
@@ -449,6 +449,15 @@ int initial_sync(PHY_VARS_UE *ue, runmode_t mode) {
if
(
ue
->
frame_parms
.
frame_type
==
FDD
)
{
ue
->
N_TA_offset
=
0
;
}
else
{
if
(
ue
->
frame_parms
.
N_RB_DL
==
100
)
ue
->
N_TA_offset
=
624
;
else
if
(
ue
->
frame_parms
.
N_RB_DL
==
50
)
ue
->
N_TA_offset
=
624
/
2
;
else
if
(
ue
->
frame_parms
.
N_RB_DL
==
25
)
ue
->
N_TA_offset
=
624
/
4
;
}
}
LOG_I
(
PHY
,
"[UE %d] Frame %d RRC Measurements => rssi %3.1f dBm (dig %3.1f dB, gain %d), N0 %d dBm, rsrp %3.1f dBm/RE, rsrq %3.1f dB
\n
"
,
ue
->
Mod_id
,
...
...
This diff is collapsed.
Click to expand it.
targets/RT/USER/lte-ru.c
+
11
−
1
View file @
7ed11406
...
...
@@ -1189,12 +1189,22 @@ void wakeup_L1s(RU_t *ru) {
}
inline
int
wakeup_prach_ru
(
RU_t
*
ru
)
{
int
ret
;
struct
timespec
wait
;
/*
struct timespec wait;
int time_ns = 5000000L;
clock_gettime(CLOCK_REALTIME,&wait);
wait.tv_nsec += time_ns;
AssertFatal((ret=pthread_mutex_timedlock(&ru->proc.mutex_prach,&wait))==ETIMEDOUT,"[RU] ERROR pthread_mutex_lock for RU prach thread (IC %d)\n", ru->proc.instance_cnt_prach);
*/
struct
timespec
wait
;
wait
.
tv_sec
=
0
;
wait
.
tv_nsec
=
5000000L
;
if
(
pthread_mutex_timedlock
(
&
ru
->
proc
.
mutex_prach
,
&
wait
)
!=
0
)
{
LOG_E
(
PHY
,
"[RU] ERROR pthread_mutex_lock for RU prach thread (IC %d)
\n
"
,
ru
->
proc
.
instance_cnt_prach
);
exit_fun
(
"error locking mutex_rxtx"
);
return
(
-
1
);
}
if
(
ru
->
proc
.
instance_cnt_prach
==-
1
)
{
++
ru
->
proc
.
instance_cnt_prach
;
...
...
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