diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-08-04 05:24:09 +0700 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-08-04 14:28:56 +0000 |
commit | 4d61c67392fe85886ef08f6d7b253f6f17f11c36 (patch) | |
tree | f90c800893493a5d91778bbbf099f316d9e7edd2 /src/common/oml.c | |
parent | 48ff5313cddb2624a9311718946ab3acf739d249 (diff) |
oml: fix ARFCN range check in oml_rx_set_bts_attr()
Change-Id: I52c15de3c59cd654207599ae410a4c1fed48ee58
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 34d1a5c9..78d9c65a 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -552,7 +552,7 @@ static int oml_rx_set_bts_attr(struct gsm_bts *bts, struct msgb *msg) /* Test for globally unsupported stuff here */ if (TLVP_PRES_LEN(&tp, NM_ATT_BCCH_ARFCN, 2)) { uint16_t arfcn = ntohs(tlvp_val16_unal(&tp, NM_ATT_BCCH_ARFCN)); - if (arfcn > 1024) { + if (arfcn >= 1024) { /* 0 .. 1023 (1024 channels total) */ oml_tx_failure_event_rep(&bts->mo, NM_SEVER_MAJOR, OSMO_EVT_WARN_SW_WARN, "Given ARFCN %u is not supported", arfcn); |