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
wangjie
OpenXG-RAN
Commits
9b174dd8
Commit
9b174dd8
authored
Aug 13, 2017
by
islam.galal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
integration step 1, breaks in SIB2 generation in L1 (lte-segmentation.c)
parent
db808ddd
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
365 additions
and
304 deletions
+365
-304
openair1/PHY/CODING/lte_rate_matching.c
openair1/PHY/CODING/lte_rate_matching.c
+4
-1
openair1/PHY/CODING/lte_segmentation.c
openair1/PHY/CODING/lte_segmentation.c
+3
-0
openair1/SCHED/phy_procedures_lte_eNb.c
openair1/SCHED/phy_procedures_lte_eNb.c
+3
-3
openair2/ENB_APP/enb_config.c
openair2/ENB_APP/enb_config.c
+10
-9
openair2/LAYER2/MAC/config.c
openair2/LAYER2/MAC/config.c
+1
-0
openair2/LAYER2/MAC/eNB_scheduler_bch.c
openair2/LAYER2/MAC/eNB_scheduler_bch.c
+279
-262
openair2/RRC/LITE/L2_interface.c
openair2/RRC/LITE/L2_interface.c
+17
-1
openair2/RRC/LITE/MESSAGES/asn1_msg.c
openair2/RRC/LITE/MESSAGES/asn1_msg.c
+17
-15
openair2/RRC/LITE/MESSAGES/asn1_msg.h
openair2/RRC/LITE/MESSAGES/asn1_msg.h
+5
-1
openair2/RRC/LITE/rrc_eNB.c
openair2/RRC/LITE/rrc_eNB.c
+20
-6
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
+6
-6
No files found.
openair1/PHY/CODING/lte_rate_matching.c
View file @
9b174dd8
...
...
@@ -514,7 +514,8 @@ uint32_t lte_rate_matching_turbo(uint32_t RTC,
if
(
Ncb
>
(
3
*
(
RTC
<<
5
)))
AssertFatal
(
1
==
0
,
"Exiting, RM condition (Ncb %d, RTC %d, Nir/C %d, Nsoft %d, Kw %d)
\n
"
,
Ncb
,
RTC
,
Nir
/
C
,
Nsoft
,
3
*
(
RTC
<<
5
));
AssertFatal
(
Nl
>
0
,
"Nl is 0
\n
"
);
AssertFatal
(
Qm
>
0
,
"Qm is 0
\n
"
);
Gp
=
G
/
Nl
/
Qm
;
GpmodC
=
Gp
%
C
;
...
...
@@ -720,6 +721,8 @@ int lte_rate_matching_turbo_rx(uint32_t RTC,
Ncb
=
3
*
(
RTC
<<
5
);
}
AssertFatal
(
Nl
>
0
,
"Nl is 0
\n
"
);
AssertFatal
(
Qm
>
0
,
"Qm is 0
\n
"
);
Gp
=
G
/
Nl
/
Qm
;
GpmodC
=
Gp
%
C
;
...
...
openair1/PHY/CODING/lte_segmentation.c
View file @
9b174dd8
...
...
@@ -123,6 +123,9 @@ int lte_segmentation(unsigned char *input_buffer,
}
AssertFatal
(
Bprime
<=
(
*
Cplus
)
*
(
*
Kplus
)
+
(
*
Cminus
)
*
(
*
Kminus
),
"Bprime %d < (*Cplus %d)*(*Kplus %d) + (*Cminus %d)*(*Kminus %d)
\n
"
,
Bprime
,
*
Cplus
,
*
Kplus
,
*
Cminus
,
*
Kminus
);
*
F
=
((
*
Cplus
)
*
(
*
Kplus
)
+
(
*
Cminus
)
*
(
*
Kminus
)
-
(
Bprime
));
#ifdef DEBUG_SEGMENTATION
...
...
openair1/SCHED/phy_procedures_lte_eNb.c
View file @
9b174dd8
...
...
@@ -1018,7 +1018,7 @@ handle_nfapi_dlsch_pdu(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,
else
dlsch1_harq
->
pdu
=
sdu
;
#ifdef Rel14
if
((
rel13
->
pdsch_payload_type
==
0
)
&&
(
rel13
->
ue_type
>
0
))
{
// this is a BR/CE UE and SIB1-BR
if
((
rel13
->
pdsch_payload_type
<
2
)
&&
(
rel13
->
ue_type
>
0
))
{
// this is a BR/CE UE and SIB1-BR
// configure PDSCH
switch
(
eNB
->
frame_parms
.
N_RB_DL
)
{
case
6
:
...
...
@@ -1048,8 +1048,8 @@ handle_nfapi_dlsch_pdu(PHY_VARS_eNB *eNB,eNB_rxtx_proc_t *proc,
dlsch0_harq
->
nb_rb
=
6
;
dlsch0_harq
->
vrb_type
=
LOCALIZED
;
dlsch0_harq
->
rvidx
=
0
;
dlsch0_harq
->
Nl
=
0
;
dlsch0_harq
->
rvidx
=
rel8
->
redundancy_version
;
dlsch0_harq
->
Nl
=
1
;
dlsch0_harq
->
mimo_mode
=
(
eNB
->
frame_parms
.
nb_antenna_ports_eNB
==
1
)
?
SISO
:
ALAMOUTI
;
dlsch0_harq
->
dl_power_off
=
1
;
dlsch0_harq
->
round
=
0
;
...
...
openair2/ENB_APP/enb_config.c
View file @
9b174dd8
...
...
@@ -566,7 +566,8 @@ void RCconfig_RU() {
if
(
!
(
config_setting_lookup_int
(
setting_ru
,
CONFIG_STRING_RU_MAX_RS_EPRE
,
&
max_pdschReferenceSignalPower
)
config_setting_lookup_int
(
setting_ru
,
CONFIG_STRING_RU_MAX_RS_EPRE
,
&
max_pdschReferenceSignalPower
)
&&
config_setting_lookup_int
(
setting_ru
,
CONFIG_STRING_RU_MAX_RXGAIN
,
&
max_rxgain
)
)
)
{
AssertFatal
(
0
,
...
...
@@ -575,8 +576,6 @@ void RCconfig_RU() {
continue
;
}
>>>>>>>
faa111ecc0815354979e075d5b83c5af107d404e
AssertFatal
((
setting_band
=
config_setting_get_member
(
setting_ru
,
CONFIG_STRING_RU_BAND_LIST
))
!=
NULL
,
"No allowable LTE bands
\n
"
);
if
(
setting_band
!=
NULL
)
num_bands
=
config_setting_length
(
setting_band
);
...
...
@@ -2568,12 +2567,13 @@ int RCconfig_RRC(MessageDef *msg_p, uint32_t i, eNB_RRC_INST *rrc) {
for
(
sched_info_idx
=
0
;
sched_info_idx
<
num_scheduling_info
;
++
sched_info_idx
)
{
scheduling_info_br
=
config_setting_get_elem
(
scheduling_info_br_list
,
sched_info_idx
);
if
(
!
config_setting_lookup_int
(
scheduling_info_br
,
ENB_CONFIG_STRING_SI_NARROWBAND_R13
,
&
si_Narrowband_r13
)
&&
config_setting_lookup_int
(
setting_br13
,
ENB_CONFIG_STRING_SI_TBS_R13
,
&
si_TBS_r13
)
)
{
AssertFatal
(
0
,
"Failed to parse eNB configuration file %s, scheduking info br %d!
\n
"
,
RC
.
config_file_name
,
nb_cc
++
);
}
if
(
!
(
config_setting_lookup_int
(
scheduling_info_br
,
ENB_CONFIG_STRING_SI_NARROWBAND_R13
,
&
si_Narrowband_r13
)
&&
config_setting_lookup_int
(
scheduling_info_br
,
ENB_CONFIG_STRING_SI_TBS_R13
,
&
si_TBS_r13
)
)
){
AssertFatal
(
0
,
"Failed to parse eNB configuration file %s, scheduking info br %d!
\n
"
,
RC
.
config_file_name
,
nb_cc
++
);
}
RRC_CONFIGURATION_REQ
(
msg_p
).
si_Narrowband_r13
[
j
][
sched_info_idx
]
=
si_Narrowband_r13
;
RRC_CONFIGURATION_REQ
(
msg_p
).
si_TBS_r13
[
j
][
sched_info_idx
]
=
si_TBS_r13
;
}
...
...
@@ -3767,6 +3767,7 @@ int RCconfig_RRC(MessageDef *msg_p, uint32_t i, eNB_RRC_INST *rrc) {
if
(
config_setting_lookup_string
(
setting_br13
,
ENB_CONFIG_STRING_BRAccessRelatedInfo
,
&
bandwidthReducedAccessRelatedInfo_r13
)
&&
!
strcmp
(
bandwidthReducedAccessRelatedInfo_r13
,
"ENABLE"
))
{
printf
(
"Enabling BR access SI scheduling parameters
\n
"
);
RRC_CONFIGURATION_REQ
(
msg_p
).
bandwidthReducedAccessRelatedInfo_r13
[
j
]
=
TRUE
;
if
(
!
config_setting_lookup_int
(
setting_br13
,
ENB_CONFIG_STRING_SI_WINDOWLENGTH_BR
,
&
si_WindowLength_BR_r13
)
||
!
config_setting_lookup_int
(
setting_br13
,
ENB_CONFIG_STRING_SI_REPETITIONPATTERN
,
&
si_RepetitionPattern_r13
)
||
...
...
openair2/LAYER2/MAC/config.c
View file @
9b174dd8
...
...
@@ -527,6 +527,7 @@ int rrc_mac_config_req_eNB(module_id_t Mod_idP,
}
#ifdef Rel14
if
(
sib1_v13ext
!=
NULL
)
{
LOG_I
(
MAC
,
"[CONFIG] Retrieved sib1_v13ext
\n
"
);
RC
.
mac
[
Mod_idP
]
->
common_channels
[
CC_idP
].
sib1_v13ext
=
sib1_v13ext
;
}
#endif
...
...
openair2/LAYER2/MAC/eNB_scheduler_bch.c
View file @
9b174dd8
This diff is collapsed.
Click to expand it.
openair2/RRC/LITE/L2_interface.c
View file @
9b174dd8
...
...
@@ -302,8 +302,24 @@ mac_rrc_data_req(
//else
//return(0);
}
#endif
#ifdef Rel14
if
((
Srb_id
&
RAB_OFFSET
)
==
BCCH_SIB1_BR
){
memcpy
(
&
buffer_pP
[
0
],
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
SIB1_BR
,
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
sizeof_SIB1_BR
);
return
(
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
sizeof_SIB1_BR
);
}
#endif //Rel10 || Rel14
if
((
Srb_id
&
RAB_OFFSET
)
==
BCCH_SI_BR
){
// First SI message with SIB2/3
memcpy
(
&
buffer_pP
[
0
],
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
SIB23_BR
,
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
sizeof_SIB23_BR
);
return
(
RC
.
rrc
[
Mod_idP
]
->
carrier
[
CC_id
].
sizeof_SIB23_BR
);
}
#endif
}
else
{
//This is an UE
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg.c
View file @
9b174dd8
...
...
@@ -192,7 +192,11 @@ uint8_t get_adjacent_cell_mod_id(uint16_t phyCellId)
return
0xFF
;
//error!
}
uint8_t
do_MIB
(
rrc_eNB_carrier_data_t
*
carrier
,
uint32_t
N_RB_DL
,
uint32_t
phich_Resource
,
uint32_t
phich_duration
,
uint32_t
frame
,
uint32_t
schedulingInfoSIB1
)
uint8_t
do_MIB
(
rrc_eNB_carrier_data_t
*
carrier
,
uint32_t
N_RB_DL
,
uint32_t
phich_Resource
,
uint32_t
phich_duration
,
uint32_t
frame
#ifdef Rel14
,
uint32_t
schedulingInfoSIB1
#endif
)
{
asn_enc_rval_t
enc_rval
;
...
...
@@ -246,11 +250,13 @@ uint8_t do_MIB(rrc_eNB_carrier_data_t *carrier, uint32_t N_RB_DL, uint32_t phich
#ifndef Rel14
mib
->
message
.
spare
.
size
=
2
;
mib
->
message
.
spare
.
bits_unused
=
6
;
// This makes a spare of 10 bits
mib
->
message
.
schedulingInfoSIB1_BR_r13
=
schedulingInfoSIB1
;
// turn on eMTC
#else
mib
->
message
.
spare
.
size
=
1
;
mib
->
message
.
spare
.
bits_unused
=
3
;
// This makes a spare of 5 bits
mib
->
message
.
schedulingInfoSIB1_BR_r13
=
0
;
// turn off eMTC
mib
->
message
.
schedulingInfoSIB1_BR_r13
=
schedulingInfoSIB1
;
// turn on/off eMTC
LOG_I
(
RRC
,
"[MIB] schedulingInfoSIB1 %d
\n
"
,
(
uint32_t
)
mib
->
message
.
schedulingInfoSIB1_BR_r13
);
#endif
enc_rval
=
uper_encode_to_buffer
(
&
asn_DEF_BCCH_BCH_Message
,
...
...
@@ -550,9 +556,13 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier,
if
(
configuration
->
bandwidthReducedAccessRelatedInfo_r13
[
CC_id
])
{
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
=
calloc
(
1
,
sizeof
(
struct
SystemInformationBlockType1_v1310_IEs__bandwidthReducedAccessRelatedInfo_r13
));
LOG_I
(
RRC
,
"Allocating memory for BR access of SI (%p)
\n
"
,
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
);
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
->
si_WindowLength_BR_r13
=
configuration
->
si_WindowLength_BR_r13
[
CC_id
];
// 0
...
...
@@ -570,18 +580,10 @@ uint8_t do_SIB1(rrc_eNB_carrier_data_t *carrier,
for
(
index
=
0
;
index
<
num_sched_info_br
;
++
index
)
{
if
(
configuration
->
si_Narrowband_r13
[
CC_id
][
index
]
&&
configuration
->
si_TBS_r13
[
CC_id
][
index
])
{
schedulinginfo_br_13
->
si_Narrowband_r13
=
configuration
->
si_Narrowband_r13
[
CC_id
][
index
];
schedulinginfo_br_13
->
si_TBS_r13
=
configuration
->
si_TBS_r13
[
CC_id
][
index
];
}
else
{
schedulinginfo_br_13
->
si_Narrowband_r13
=
1
;
schedulinginfo_br_13
->
si_TBS_r13
=
SchedulingInfo_BR_r13__si_TBS_r13_b152
;
}
ASN_SEQUENCE_ADD
(
&
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
->
schedulingInfoList_BR_r13
->
list
,
schedulinginfo_br_13
);
schedulinginfo_br_13
->
si_Narrowband_r13
=
configuration
->
si_Narrowband_r13
[
CC_id
][
index
];
schedulinginfo_br_13
->
si_TBS_r13
=
configuration
->
si_TBS_r13
[
CC_id
][
index
];
LOG_I
(
RRC
,
"Adding (%d,%d) to scheduling_info_br_13
\n
"
,
schedulinginfo_br_13
->
si_Narrowband_r13
,
schedulinginfo_br_13
->
si_TBS_r13
);
ASN_SEQUENCE_ADD
(
&
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
->
schedulingInfoList_BR_r13
->
list
,
schedulinginfo_br_13
);
}
sib1_1310
->
bandwidthReducedAccessRelatedInfo_r13
->
fdd_DownlinkOrTddSubframeBitmapBR_r13
...
...
openair2/RRC/LITE/MESSAGES/asn1_msg.h
View file @
9b174dd8
...
...
@@ -67,7 +67,11 @@ uint8_t get_adjacent_cell_mod_id(uint16_t phyCellId);
@param phich_duration PHICH duration parameter
@param frame radio frame number
@return size of encoded bit stream in bytes*/
uint8_t
do_MIB
(
rrc_eNB_carrier_data_t
*
carrier
,
uint32_t
N_RB_DL
,
uint32_t
phich_Resource
,
uint32_t
phich_duration
,
uint32_t
frame
,
uint32_t
schedulingInfoSIB1
);
uint8_t
do_MIB
(
rrc_eNB_carrier_data_t
*
carrier
,
uint32_t
N_RB_DL
,
uint32_t
phich_Resource
,
uint32_t
phich_duration
,
uint32_t
frame
#ifdef Rel14
,
uint32_t
schedulingInfoSIB1
#endif
);
/**
\brief Generate configuration for SIB1 (eNB).
...
...
openair2/RRC/LITE/rrc_eNB.c
View file @
9b174dd8
...
...
@@ -150,16 +150,26 @@ init_SI(
configuration
->
N_RB_DL
[
CC_id
],
(
int
)
configuration
->
radioresourceconfig
[
CC_id
].
phich_resource
,
(
int
)
configuration
->
radioresourceconfig
[
CC_id
].
phich_duration
);
#ifdef Rel14
LOG_I
(
RRC
,
"configuration->schedulingInfoSIB1_BR_r13[CC_id] %d
\n
"
,(
int
)
configuration
->
schedulingInfoSIB1_BR_r13
[
CC_id
]);
#endif
do_MIB
(
&
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
],
#ifdef ENABLE_ITTI
configuration
->
N_RB_DL
[
CC_id
],
(
int
)
configuration
->
radioresourceconfig
[
CC_id
].
phich_resource
,
(
int
)
configuration
->
radioresourceconfig
[
CC_id
].
phich_duration
,
configuration
->
schedulingInfoSIB1_BR_r13
[
CC_id
]
0
#else
50
,
0
,
0
,
1
50
,
0
,
0
,
0
#endif
#ifdef Rel14
#ifdef ENABLE_ITTI
,
configuration
->
schedulingInfoSIB1_BR_r13
[
CC_id
]
#else
,
0
#endif
#endif
,
0
);
);
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sizeof_SIB1
=
0
;
...
...
@@ -311,14 +321,18 @@ init_SI(
if
((
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
mib
.
message
.
schedulingInfoSIB1_BR_r13
>
0
)
&&
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
!=
NULL
))
{
AssertFatal
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
!=
NULL
,
"sib2_br->nonCriticalExtension is null (v
9.2
)
\n
"
);
"sib2_br->nonCriticalExtension is null (v
8.9
)
\n
"
);
AssertFatal
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
!=
NULL
,
"sib2_br->nonCriticalExtension is null (v
11.3
)
\n
"
);
"sib2_br->nonCriticalExtension is null (v
9.2
)
\n
"
);
AssertFatal
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
!=
NULL
,
"sib2_br->nonCriticalExtension is null (v11.3)
\n
"
);
AssertFatal
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
!=
NULL
,
"sib2_br->nonCriticalExtension is null (v12.5)
\n
"
);
AssertFatal
(
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
!=
NULL
,
"sib2_br->nonCriticalExtension is null (v13.10)
\n
"
);
sib1_v13ext
=
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
;
sib1_v13ext
=
RC
.
rrc
[
ctxt_pP
->
module_id
]
->
carrier
[
CC_id
].
sib1_BR
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
->
nonCriticalExtension
;
}
#endif
...
...
targets/ARCH/USRP/USERSPACE/LIB/usrp_lib.cpp
View file @
9b174dd8
...
...
@@ -342,10 +342,10 @@ int trx_usrp_set_gains(openair0_device* device,
usrp_state_t
*
s
=
(
usrp_state_t
*
)
device
->
priv
;
s
->
usrp
->
set_tx_gain
(
openair0_cfg
[
0
].
tx_gain
[
0
]);
s
->
usrp
->
set_tx_gain
(
89.0
-
openair0_cfg
[
0
].
tx_gain
[
0
]);
::
uhd
::
gain_range_t
gain_range
=
s
->
usrp
->
get_rx_gain_range
(
0
);
// limit to maximum gain
if
(
openair0_cfg
[
0
].
rx_gain
[
0
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
0
]
>
gain_range
.
stop
())
{
if
(
125.0
-
openair0_cfg
[
0
].
rx_gain
[
0
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
0
]
>
gain_range
.
stop
())
{
LOG_E
(
PHY
,
"RX Gain 0 too high, reduce by %f dB
\n
"
,
openair0_cfg
[
0
].
rx_gain
[
0
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
0
]
-
gain_range
.
stop
());
exit
(
-
1
);
...
...
@@ -632,10 +632,10 @@ extern "C" {
::
uhd
::
gain_range_t
gain_range
=
s
->
usrp
->
get_rx_gain_range
(
i
);
// limit to maximum gain
AssertFatal
(
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
]
<=
gain_range
.
stop
(),
AssertFatal
(
125.0
-
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
]
<=
gain_range
.
stop
(),
"RX Gain too high, lower by %f dB
\n
"
,
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
]
-
gain_range
.
stop
());
s
->
usrp
->
set_rx_gain
(
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
],
i
);
125.0
-
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
]
-
gain_range
.
stop
());
s
->
usrp
->
set_rx_gain
(
125.0
-
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
],
i
);
LOG_I
(
PHY
,
"RX Gain %d %f (%f) => %f (max %f)
\n
"
,
i
,
openair0_cfg
[
0
].
rx_gain
[
i
],
openair0_cfg
[
0
].
rx_gain_offset
[
i
],
openair0_cfg
[
0
].
rx_gain
[
i
]
-
openair0_cfg
[
0
].
rx_gain_offset
[
i
],
gain_range
.
stop
());
...
...
@@ -645,7 +645,7 @@ extern "C" {
if
(
i
<
openair0_cfg
[
0
].
tx_num_channels
)
{
s
->
usrp
->
set_tx_rate
(
openair0_cfg
[
0
].
sample_rate
,
i
);
s
->
usrp
->
set_tx_freq
(
openair0_cfg
[
0
].
tx_freq
[
i
],
i
);
s
->
usrp
->
set_tx_gain
(
openair0_cfg
[
0
].
tx_gain
[
i
],
i
);
s
->
usrp
->
set_tx_gain
(
89.0
-
openair0_cfg
[
0
].
tx_gain
[
i
],
i
);
}
}
...
...
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