From 4ccca1ce36067d5f52d2feb7c2c6f37510618530 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 9 Sep 2011 22:04:09 +0200 Subject: OML: make sure max_power_red is scaled by 2 to convert from 12.21 to dBm --- src/common/oml.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/oml.c b/src/common/oml.c index be3e7f23..e0a6b418 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -514,8 +514,9 @@ static int oml_rx_set_radio_attr(struct gsm_bts_trx *trx, struct msgb *msg) /* 9.4.47 RF Max Power Reduction */ if (TLVP_PRESENT(&tp, NM_ATT_RF_MAXPOWR_R)) { - trx->max_power_red = *TLVP_VAL(&tp, NM_ATT_RF_MAXPOWR_R); - LOGP(DOML, LOGL_INFO, "Set RF Max Power Reduction = %d\n", trx->max_power_red); + trx->max_power_red = *TLVP_VAL(&tp, NM_ATT_RF_MAXPOWR_R) * 2; + LOGP(DOML, LOGL_INFO, "Set RF Max Power Reduction = %d dBm\n", + trx->max_power_red); } /* 9.4.5 ARFCN List */ #if 0 -- cgit v1.2.3