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
canghaiwuhen
OpenXG-RAN
Commits
946ae925
Commit
946ae925
authored
Jan 16, 2019
by
wujing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix phy basic ue bug
parent
1503b92f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
45 additions
and
41 deletions
+45
-41
nfapi/oai_integration/nfapi_pnf.c
nfapi/oai_integration/nfapi_pnf.c
+1
-41
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+36
-0
openair1/SCHED/sched_eNB.h
openair1/SCHED/sched_eNB.h
+4
-0
targets/RT/USER/lte-softmodem.c
targets/RT/USER/lte-softmodem.c
+2
-0
targets/RT/USER/lte-uesoftmodem.c
targets/RT/USER/lte-uesoftmodem.c
+2
-0
No files found.
nfapi/oai_integration/nfapi_pnf.c
View file @
946ae925
...
...
@@ -82,7 +82,7 @@ nfapi_tx_request_pdu_t* tx_request_pdu[1023][10][10]; // [frame][subframe][max_n
uint8_t
tx_pdus
[
32
][
8
][
4096
];
nfapi_release_rnti_request_body_t
release_rntis
;
extern
nfapi_release_rnti_request_body_t
release_rntis
;
uint16_t
phy_antenna_capability_values
[]
=
{
1
,
2
,
4
,
8
,
16
};
...
...
@@ -1692,43 +1692,3 @@ int oai_nfapi_sr_indication(nfapi_sr_indication_t *ind) {
return
retval
;
}
#if BASIC_SIMULATOR
void
release_rnti_of_phy
(
module_id_t
mod_id
){
}
#else
void
release_rnti_of_phy
(
module_id_t
mod_id
){
int
i
,
j
;
int
CC_id
;
rnti_t
rnti
;
PHY_VARS_eNB
*
eNB_PHY
=
NULL
;
LTE_eNB_ULSCH_t
*
ulsch
=
NULL
;
LTE_eNB_DLSCH_t
*
dlsch
=
NULL
;
for
(
i
=
0
;
i
<
release_rntis
.
number_of_rnti
;
i
++
){
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
eNB_PHY
=
RC
.
eNB
[
mod_id
][
CC_id
];
rnti
=
release_rntis
.
UE_free_rnti
[
i
];
for
(
j
=
0
;
j
<=
NUMBER_OF_UE_MAX
;
j
++
)
{
ulsch
=
eNB_PHY
->
ulsch
[
j
];
if
((
ulsch
!=
NULL
)
&&
(
ulsch
->
rnti
==
rnti
)){
LOG_I
(
PHY
,
"clean_eNb_ulsch ulsch[%d] UE %x
\n
"
,
j
,
rnti
);
clean_eNb_ulsch
(
ulsch
);
}
}
for
(
j
=
0
;
j
<
NUMBER_OF_UE_MAX
;
j
++
)
{
if
(
eNB_PHY
->
uci_vars
[
j
].
rnti
==
rnti
){
LOG_I
(
PHY
,
"clean eNb uci_vars[%d] UE %x
\n
"
,
j
,
rnti
);
memset
(
&
eNB_PHY
->
uci_vars
[
i
],
0
,
sizeof
(
LTE_eNB_UCI
));
}
dlsch
=
eNB_PHY
->
dlsch
[
j
][
0
];
if
((
dlsch
!=
NULL
)
&&
(
dlsch
->
rnti
==
rnti
)){
LOG_I
(
PHY
,
"clean_eNb_dlsch dlsch[%d] UE %x
\n
"
,
j
,
rnti
);
clean_eNb_dlsch
(
dlsch
);
}
}
}
}
memset
(
&
release_rntis
,
0
,
sizeof
(
nfapi_release_rnti_request_body_t
));
}
#endif
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
946ae925
...
...
@@ -51,6 +51,8 @@
extern
uint8_t
nfapi_mode
;
nfapi_release_rnti_request_body_t
release_rntis
;
int16_t
get_hundred_times_delta_IF_eNB
(
PHY_VARS_eNB
*
eNB
,
uint16_t
UE_id
,
uint8_t
harq_pid
,
uint8_t
bw_factor
)
{
...
...
@@ -2097,3 +2099,37 @@ void phy_procedures_eNB_uespec_RX(PHY_VARS_eNB *eNB,L1_rxtx_proc_t *proc)
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_PHY_PROCEDURES_ENB_RX_UESPEC
,
0
);
}
void
release_rnti_of_phy
(
module_id_t
mod_id
){
int
i
,
j
;
int
CC_id
;
rnti_t
rnti
;
PHY_VARS_eNB
*
eNB_PHY
=
NULL
;
LTE_eNB_ULSCH_t
*
ulsch
=
NULL
;
LTE_eNB_DLSCH_t
*
dlsch
=
NULL
;
for
(
i
=
0
;
i
<
release_rntis
.
number_of_rnti
;
i
++
){
for
(
CC_id
=
0
;
CC_id
<
MAX_NUM_CCs
;
CC_id
++
)
{
eNB_PHY
=
RC
.
eNB
[
mod_id
][
CC_id
];
rnti
=
release_rntis
.
UE_free_rnti
[
i
];
for
(
j
=
0
;
j
<=
NUMBER_OF_UE_MAX
;
j
++
)
{
ulsch
=
eNB_PHY
->
ulsch
[
j
];
if
((
ulsch
!=
NULL
)
&&
(
ulsch
->
rnti
==
rnti
)){
LOG_I
(
PHY
,
"clean_eNb_ulsch ulsch[%d] UE %x
\n
"
,
j
,
rnti
);
clean_eNb_ulsch
(
ulsch
);
}
}
for
(
j
=
0
;
j
<
NUMBER_OF_UE_MAX
;
j
++
)
{
if
(
eNB_PHY
->
uci_vars
[
j
].
rnti
==
rnti
){
LOG_I
(
PHY
,
"clean eNb uci_vars[%d] UE %x
\n
"
,
j
,
rnti
);
memset
(
&
eNB_PHY
->
uci_vars
[
i
],
0
,
sizeof
(
LTE_eNB_UCI
));
}
dlsch
=
eNB_PHY
->
dlsch
[
j
][
0
];
if
((
dlsch
!=
NULL
)
&&
(
dlsch
->
rnti
==
rnti
)){
LOG_I
(
PHY
,
"clean_eNb_dlsch dlsch[%d] UE %x
\n
"
,
j
,
rnti
);
clean_eNb_dlsch
(
dlsch
);
}
}
}
}
memset
(
&
release_rntis
,
0
,
sizeof
(
nfapi_release_rnti_request_body_t
));
}
openair1/SCHED/sched_eNB.h
View file @
946ae925
...
...
@@ -219,6 +219,10 @@ int is_srs_occasion_common(LTE_DL_FRAME_PARMS *frame_parms,int frame_tx,int subf
void
compute_srs_pos
(
lte_frame_type_t
frameType
,
uint16_t
isrs
,
uint16_t
*
psrsPeriodicity
,
uint16_t
*
psrsOffset
);
void
release_rnti_of_phy
(
module_id_t
mod_id
);
/*@}*/
#endif
targets/RT/USER/lte-softmodem.c
View file @
946ae925
...
...
@@ -222,6 +222,8 @@ struct timespec clock_difftime(struct timespec start, struct timespec end) {
return
temp
;
}
nfapi_release_rnti_request_body_t
release_rntis
;
void
print_difftimes
(
void
)
{
#ifdef DEBUG
printf
(
"difftimes min = %lu ns ; max = %lu ns
\n
"
,
min_diff_time
.
tv_nsec
,
max_diff_time
.
tv_nsec
);
...
...
targets/RT/USER/lte-uesoftmodem.c
View file @
946ae925
...
...
@@ -231,6 +231,8 @@ int oaisim_flag=0;
*/
uint8_t
abstraction_flag
=
0
;
nfapi_release_rnti_request_body_t
release_rntis
;
/* forward declarations */
void
set_default_frame_parms
(
LTE_DL_FRAME_PARMS
*
frame_parms
[
MAX_NUM_CCs
]);
...
...
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