aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/abis_nm.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-26 14:24:42 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-26 18:08:22 +0100
commit8a158bb1ea36d0f88da18d0f034884b30f09fda2 (patch)
treecaed535aa030905b75fa9f130d78cba968b55e31 /openbsc/src/libbsc/abis_nm.c
parenta27303094ab8bedb0a3b3bfe771daeed10a2e0a9 (diff)
ctrl/abis: When the max_power_reduction changes, send it to the BTS
In case the max_power_reduction changes, issue a new Set Radio Carrier Attributes command. OML 12.21 allows to not include the ARFCN list and the semantic I picked/understand is that a partial update is possible. Fixes: SYS#267
Diffstat (limited to 'openbsc/src/libbsc/abis_nm.c')
-rw-r--r--openbsc/src/libbsc/abis_nm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/abis_nm.c b/openbsc/src/libbsc/abis_nm.c
index f491a0c20..5a968492d 100644
--- a/openbsc/src/libbsc/abis_nm.c
+++ b/openbsc/src/libbsc/abis_nm.c
@@ -1466,6 +1466,12 @@ int abis_nm_set_radio_attr(struct gsm_bts_trx *trx, uint8_t *attr, int attr_len)
return abis_nm_sendmsg(trx->bts, msg);
}
+int abis_nm_update_max_power_red(struct gsm_bts_trx *trx)
+{
+ uint8_t attr[] = { NM_ATT_RF_MAXPOWR_R, trx->max_power_red / 2 };
+ return abis_nm_set_radio_attr(trx, attr, ARRAY_SIZE(attr));
+}
+
static int verify_chan_comb(struct gsm_bts_trx_ts *ts, uint8_t chan_comb,
const char **reason)
{