From 8ade45e795d1ee531423d529dfa2c441ece1196a Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 23 Jan 2014 16:00:11 +0100 Subject: handover: Set basic values for handover, remember the activation reason Introduce the handover.h/handover.c and initialize handover parameters in OML and remember the activation through RSL. --- src/common/oml.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/common/oml.c') diff --git a/src/common/oml.c b/src/common/oml.c index 143cc0d8..5fa2d852 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -509,8 +509,15 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) } /* 9.4.10 BTS Air Timer */ - if (TLVP_PRESENT(&tp, NM_ATT_BTS_AIR_TIMER)) - btsb->t3105_ms = *TLVP_VAL(&tp, NM_ATT_BTS_AIR_TIMER) * 10; + if (TLVP_PRESENT(&tp, NM_ATT_BTS_AIR_TIMER)) { + uint8_t t3105 = *TLVP_VAL(&tp, NM_ATT_BTS_AIR_TIMER); + if (t3105 == 0) { + LOGP(DOML, LOGL_NOTICE, + "T3105 must have a value != 0.\n"); + return oml_fom_ack_nack(msg, NM_NACK_PARAM_RANGE); + } + btsb->t3105_ms = t3105 * 10; + } /* 9.4.37 NY1 */ if (TLVP_PRESENT(&tp, NM_ATT_NY1)) -- cgit v1.2.3