diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-07-07 12:40:07 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-07-08 23:13:58 +0200 |
commit | a7cd9fc0d18ff03e584e59290be7f6bf23205df3 (patch) | |
tree | b9c95950e1932ab0734300d1c8741bbdf5f21fcf /openbsc/src/abis_nm.c | |
parent | d5651d5ceda3fa6fef48627022deb0ecba0e4182 (diff) |
ipacess-config: Handle NVATTR NACKs in ipaccess-config
Currently we send the attribute changes in a send and forget
fashion. But sometimes the nanoBTS is sending us a NACK, e.g
with a invalid unit id. Start handling the NACK and provide
an error message to the user. The error message is not yet
describing the cause of the error but this is a slight progress
to the previous silent failure.
Diffstat (limited to 'openbsc/src/abis_nm.c')
-rw-r--r-- | openbsc/src/abis_nm.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c index 0ec064025..7e016dbc5 100644 --- a/openbsc/src/abis_nm.c +++ b/openbsc/src/abis_nm.c @@ -2309,6 +2309,18 @@ static int abis_nm_rx_ipacc(struct msgb *msg) DEBUGPC(DNM, "unknown\n"); break; } + + /* signal handling */ + switch (foh->msg_type) { + case NM_MT_IPACC_RSL_CONNECT_NACK: + case NM_MT_IPACC_SET_NVATTR_NACK: + case NM_MT_IPACC_GET_NVATTR_NACK: + dispatch_signal(SS_NM, S_NM_IPACC_NACK, (void*) ((long)foh->msg_type)); + break; + default: + break; + } + return 0; } |