aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/oml.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-14 11:19:03 +0100
committerHarald Welte <laforge@gnumonks.org>2013-03-14 11:20:09 +0100
commit620be0bbed12763451ad1236283420664dbafa72 (patch)
treed8dc4ac2f91b6066558fc3eaeddf2d57a20411e9 /src/common/oml.c
parentf0bdc1e5629778500fa06bde08bb90cb7b8c11cb (diff)
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)
Diffstat (limited to 'src/common/oml.c')
-rw-r--r--src/common/oml.c3
1 files changed, 2 insertions, 1 deletions
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));
}