aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-11-05 17:29:13 +0300
committerlaforge <laforge@osmocom.org>2021-11-11 09:01:15 +0000
commitb9fcb85a295cf02b42ac904ea582fcd496aa8480 (patch)
tree305f5a2b582f08a622b41f72728ac23f3cbde972
parentbc7a490dbc79fdbd08fc4b5ed4ce653510aff5b1 (diff)
oml: use ARRAY_SIZE() in oml_rx_set_bts_attr()
-rw-r--r--src/common/oml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c
index 30caad51..a434ad30 100644
--- a/src/common/oml.c
+++ b/src/common/oml.c
@@ -598,7 +598,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg)
/* 9.4.25 Interference Level Boundaries */
if (TLVP_PRES_LEN(&tp, NM_ATT_INTERF_BOUND, 6)) {
payload = TLVP_VAL(&tp, NM_ATT_INTERF_BOUND);
- for (i = 0; i < 6; i++) {
+ for (i = 0; i < ARRAY_SIZE(bts->interference.boundary); i++) {
const int16_t boundary = payload[i];
bts->interference.boundary[i] = -1 * boundary;
}