aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2014-01-23 16:00:11 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2014-03-10 13:38:07 +0100
commit8ade45e795d1ee531423d529dfa2c441ece1196a (patch)
tree8c31c34dd28ece47104246de80f3ec5c27ef513a /src/common/oml.c
parent3058854535f08e12f6d8dd4f35490ecef40b3040 (diff)
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.
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c11
1 files changed, 9 insertions, 2 deletions
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))