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
c43593c8
Commit
c43593c8
authored
Sep 29, 2023
by
Marwan Hammouda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes to make HO working with FDD
parent
e17fcf08
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
5 deletions
+15
-5
executables/nr-ue.c
executables/nr-ue.c
+9
-3
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
+1
-0
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+3
-0
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+1
-1
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
+1
-1
No files found.
executables/nr-ue.c
View file @
c43593c8
...
...
@@ -593,9 +593,15 @@ nr_phy_data_t UE_dl_preprocessing(PHY_VARS_NR_UE *UE, UE_nr_rxtx_proc_t *proc)
if
(
UE
->
synch_request
.
received_synch_request
==
1
&&
UE
->
target_Nid_cell
==
-
1
)
{
fapi_nr_synch_request_t
*
synch_req
=
&
UE
->
synch_request
.
synch_req
;
if
(
synch_req
->
absoluteFrequencySSB
!=
UINT64_MAX
)
{
UE
->
frame_parms
.
dl_CarrierFreq
=
synch_req
->
absoluteFrequencySSB
;
UE
->
frame_parms
.
ul_CarrierFreq
=
synch_req
->
absoluteFrequencySSB
;
nr_rf_card_config_freq
(
&
openair0_cfg
[
UE
->
rf_map
.
card
],
UE
->
frame_parms
.
dl_CarrierFreq
,
UE
->
frame_parms
.
ul_CarrierFreq
,
0
);
uint64_t
diff
=
UE
->
frame_parms
.
dl_CarrierFreq
-
UE
->
frame_parms
.
ul_CarrierFreq
;
uint64_t
dl_bw
=
(
12
*
UE
->
frame_parms
.
N_RB_DL
)
*
(
15000
<<
synch_req
->
scs
);
uint64_t
dl_CarrierFreq
=
(
dl_bw
>>
1
)
+
synch_req
->
absoluteFrequencyPointA
;
UE
->
frame_parms
.
dl_CarrierFreq
=
dl_CarrierFreq
;
UE
->
frame_parms
.
ul_CarrierFreq
=
dl_CarrierFreq
-
diff
;
nr_rf_card_config_freq
(
&
openair0_cfg
[
UE
->
rf_map
.
card
],
UE
->
frame_parms
.
ul_CarrierFreq
,
UE
->
frame_parms
.
dl_CarrierFreq
,
0
);
UE
->
rfdevice
.
trx_set_freq_func
(
&
UE
->
rfdevice
,
&
openair0_cfg
[
0
]);
init_symbol_rotation
(
&
UE
->
frame_parms
);
}
...
...
nfapi/open-nFAPI/nfapi/public_inc/fapi_nr_ue_interface.h
View file @
c43593c8
...
...
@@ -688,6 +688,7 @@ typedef struct {
typedef
struct
{
uint64_t
absoluteFrequencySSB
;
uint64_t
absoluteFrequencyPointA
;
uint8_t
scs
;
uint16_t
target_Nid_cell
;
}
fapi_nr_synch_request_t
;
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
c43593c8
...
...
@@ -761,6 +761,9 @@ void handle_reconfiguration_with_sync(NR_UE_MAC_INST_t *mac,
if
(
reconfigurationWithSync
->
spCellConfigCommon
->
downlinkConfigCommon
&&
reconfigurationWithSync
->
spCellConfigCommon
->
downlinkConfigCommon
->
frequencyInfoDL
)
{
struct
NR_FrequencyInfoDL
*
frequencyInfoDL
=
reconfigurationWithSync
->
spCellConfigCommon
->
downlinkConfigCommon
->
frequencyInfoDL
;
mac
->
synch_request
.
synch_req
.
scs
=
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
;
mac
->
synch_request
.
synch_req
.
absoluteFrequencySSB
=
from_nrarfcn
(
*
frequencyInfoDL
->
frequencyBandList
.
list
.
array
[
0
],
frequencyInfoDL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
,
*
frequencyInfoDL
->
absoluteFrequencySSB
);
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
c43593c8
...
...
@@ -1985,7 +1985,7 @@ static int get_nr_prach_info_from_ssb_index(uint8_t ssb_idx,
for
(
uint8_t
n_mapped_ro
=
0
;
n_mapped_ro
<
ssb_info_p
->
nb_mapped_ro
;
n_mapped_ro
++
)
{
LOG_D
(
NR_MAC
,
"%d.%d: mapped_ro[%d]->frame.slot %d.%d, prach_assoc_pattern.nb_of_frame %d
\n
"
,
frame
,
slot
,
n_mapped_ro
,
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
frame
,
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
slot
,
prach_assoc_pattern
.
nb_of_frame
);
if
((
slot
==
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
slot
)
&&
if
((
slot
==
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
slot
)
&&
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_frame
!=
0
&&
(
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
frame
==
(
frame
%
prach_assoc_pattern
.
nb_of_frame
)))
{
uint8_t
prach_config_period_nb
=
ssb_info_p
->
mapped_ro
[
n_mapped_ro
]
->
frame
/
prach_assoc_pattern
.
prach_conf_period_list
[
0
].
nb_of_frame
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_bch.c
View file @
c43593c8
...
...
@@ -342,7 +342,7 @@ static uint32_t schedule_control_sib1(module_id_t module_id,
if
(
rbSize
<
bwpSize
&&
!
(
vrb_map
[
rbStart
+
rbSize
]
&
SL_to_bitmap
(
tda_info
->
startSymbolIndex
,
tda_info
->
nrOfSymbols
)))
rbSize
++
;
else
{
if
(
pdsch
->
mcs
<
10
)
if
(
pdsch
->
mcs
<
27
)
pdsch
->
mcs
++
;
else
break
;
...
...
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