diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-07-22 20:12:09 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-07-22 21:54:19 +0200 |
commit | c95cf10d0849f0795f69ef9b5b8db76e970272a6 (patch) | |
tree | 103578ce0c7a9ff70f47a0ff2ebb680db15782a0 /openbsc/src/abis_nm.c | |
parent | e39a5912f115215c75db1f0ff850227025dec136 (diff) |
[ipaccess-config] fix bugs in generating the PHYSICAL CONFIG attribute
... while asking the BTS to perform tests for us. The length of the
ARFCN whitelist is the actual length in bytes, not the number of 16bit
ARFCN numbers.
Also, implement a limit, either by rxlevel or by number of ARFCN
that should end up in the whitelist.
Diffstat (limited to 'openbsc/src/abis_nm.c')
-rw-r--r-- | openbsc/src/abis_nm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c index 2d8f687ec..aaf99eef2 100644 --- a/openbsc/src/abis_nm.c +++ b/openbsc/src/abis_nm.c @@ -1058,7 +1058,8 @@ int abis_nm_rcvmsg(struct msgb *msg) if (oh->placement != ABIS_OM_PLACEMENT_ONLY) { LOGP(DNM, LOGL_ERROR, "ABIS OML placement 0x%x not supported\n", oh->placement); - return -EINVAL; + if (oh->placement != ABIS_OM_PLACEMENT_FIRST) + return -EINVAL; } if (oh->sequence != 0) { LOGP(DNM, LOGL_ERROR, "ABIS OML sequence 0x%x != 0x00\n", |