Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
f1e041ad
Commit
f1e041ad
authored
Aug 21, 2018
by
WANG Tsu-Han
Browse files
bug fix for 25RBs with new modulation scheme and add config for 5 & 10 MHz with phy-test
parent
dc9c27a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
f1e041ad
...
...
@@ -2423,7 +2423,7 @@ int dlsch_modulation(PHY_VARS_eNB* phy_vars_eNB,
* with above code that needs to be analyzed and fixed. In the
* meantime, let's use the generic function.
*/
allocate_REs
=
allocate_REs_in_RB
;
//
allocate_REs = allocate_REs_in_RB;
break
;
}
...
...
@@ -2432,7 +2432,7 @@ int dlsch_modulation(PHY_VARS_eNB* phy_vars_eNB,
* previous version. Some more work/validation is needed before
* we switch to the new version.
*/
allocate_REs
=
allocate_REs_in_RB
;
//
allocate_REs = allocate_REs_in_RB;
switch
(
mod_order1
)
{
case
2
:
...
...
@@ -2485,7 +2485,8 @@ int dlsch_modulation(PHY_VARS_eNB* phy_vars_eNB,
skip_half
=
check_skiphalf
(
rb
,
subframe_offset
,
frame_parms
,
l
,
nsymb
);
skip_dc
=
check_skip_dc
(
rb
,
frame_parms
);
if
(
skip_half
>
0
)
allocate_REs
=
allocate_REs_in_RB
;
if
(
dlsch0
)
{
...
...
openair2/LAYER2/MAC/eNB_scheduler_phytest.c
View file @
f1e041ad
...
...
@@ -202,7 +202,8 @@ void schedule_ulsch_phy_test(module_id_t module_idP,frame_t frameP,sub_frame_t s
int32_t
normalized_rx_power
;
int32_t
target_rx_power
=
178
;
int
CC_id
=
0
;
int
nb_rb
=
96
;
int
nb_rb
;
int
N_RB_UL
;
eNB_MAC_INST
*
mac
=
RC
.
mac
[
module_idP
];
COMMON_channels_t
*
cc
=
&
mac
->
common_channels
[
0
];
UE_list_t
*
UE_list
=&
mac
->
UE_list
;
...
...
@@ -222,6 +223,18 @@ void schedule_ulsch_phy_test(module_id_t module_idP,frame_t frameP,sub_frame_t s
//nfapi_ul_config_request_pdu_t *ul_config_pdu = &ul_req->ul_config_pdu_list[0];;
nfapi_ul_config_request_body_t
*
ul_req
=
&
mac
->
UL_req
[
CC_id
].
ul_config_request_body
;
N_RB_UL
=
to_prb
(
cc
->
mib
->
message
.
dl_Bandwidth
);
switch
(
N_RB_UL
){
case
100
:
nb_rb
=
96
;
break
;
case
50
:
nb_rb
=
48
;
break
;
case
25
:
nb_rb
=
24
;
break
;
}
mac
->
UL_req
[
CC_id
].
sfn_sf
=
(
sched_frame
<<
4
)
+
sched_subframe
;
hi_dci0_req
->
sfn_sf
=
(
frameP
<<
4
)
+
subframeP
;
...
...
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