aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2014-01-21 23:02:13 +0100
committerHarald Welte <laforge@gnumonks.org>2014-01-21 23:38:47 +0100
commit3c8ff3c70bc52d0a1d75a1e6b87b0069d92f10f9 (patch)
tree65355e24e0942dc9072335a5f0e752746e0ab54d /src
parent15bc64c6cd7d01be6c5e5aca2eca9e01ee4e099e (diff)
sysmobts: Specify TRX nominal maximum tx power as fMaxTxPower
In the MPH ACTIVATE-RF.req, we need to specify the nominal maximum transmit power, i.e. >= what we later request during MPH-INIT.req. This field was first introduced in API version 2.2, but we never used it so far. It may help fixing a bug related to excessive power consumption of the sysmoBTS 2050.
Diffstat (limited to 'src')
-rw-r--r--src/osmo-bts-sysmo/l1_if.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/osmo-bts-sysmo/l1_if.c b/src/osmo-bts-sysmo/l1_if.c
index 69dfda32..957668d9 100644
--- a/src/osmo-bts-sysmo/l1_if.c
+++ b/src/osmo-bts-sysmo/l1_if.c
@@ -1069,6 +1069,7 @@ int l1if_activate_rf(struct femtol1_hdl *hdl, int on)
{
struct msgb *msg = sysp_msgb_alloc();
SuperFemto_Prim_t *sysp = msgb_sysprim(msg);
+ struct gsm_bts_trx *trx = hdl->priv;
if (on) {
sysp->id = SuperFemto_PrimId_ActivateRfReq;
@@ -1095,6 +1096,11 @@ int l1if_activate_rf(struct femtol1_hdl *hdl, int on)
#endif /* 2.1.0 */
sysp->u.activateRfReq.rfRx.iClkCor = get_clk_cal(hdl);
#endif /* API 2.4.0 */
+#if SUPERFEMTO_API_VERSION >= SUPERFEMTO_API(2,2,0)
+ sysp->u.activateRfReq.rfTrx.u8UseExtAtten = 1;
+ sysp->u.activateRfReq.rfTrx.fMaxTxPower =
+ sysmobts_get_nominal_power(trx);
+#endif /* 2.2.0 */
#endif /* !HW_SYSMOBTS_V1 */
} else {
sysp->id = SuperFemto_PrimId_DeactivateRfReq;