From 620be0bbed12763451ad1236283420664dbafa72 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 14 Mar 2013 11:19:03 +0100 Subject: OML: fix broken curly braces while parsing SET BTS ATTR Looking at the problem, it's a surprise that the old code was working at all... (Thanks to jolly for pointing this out) --- src/common/oml.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/oml.c b/src/common/oml.c index 4e2deadb..84873cad 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -440,6 +440,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) for (i = 0; i < 6; i++) { int16_t boundary = *payload; btsb->interference.boundary[i] = -1 * boundary; + } } /* 9.4.24 Intave Parameter */ if (TLVP_PRESENT(&tp, NM_ATT_INTAVE_PARAM)) @@ -485,7 +486,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) } /* 9.4.45 RACH Load Averaging Slots */ - if (TLVP_PRESENT(&tp, NM_ATT_LDAVG_SLOTS)) + if (TLVP_PRESENT(&tp, NM_ATT_LDAVG_SLOTS)) { btsb->load.rach.averaging_slots = ntohs(tlvp_val16_unal(&tp, NM_ATT_LDAVG_SLOTS)); } -- cgit v1.2.3