diff options
author | Daniel Willmann <daniel@totalueberwachung.de> | 2011-11-04 12:23:18 +0100 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2011-11-04 12:23:18 +0100 |
commit | 1754842be6daec57106eeb480047e9204fc20eca (patch) | |
tree | 884c7ecbd41782b5586495723d284d1cbd87fafe /openbsc/src | |
parent | fbdce3117937cf7a33892766185ea38294fa971b (diff) |
osmo_bsc: Fix bts_connection_status signal always appearing as downdaniel/controlif
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_ctrl.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c index 7855e6ee5..c231e6927 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_ctrl.c @@ -141,7 +141,7 @@ static int bts_connection_status_trap_cb(unsigned int subsys, unsigned int signa struct gsm_bts *bts; int bts_current_status; - if (!signal == S_INP_TEI_DN && !signal == S_INP_TEI_UP) { + if (signal != S_INP_TEI_DN && signal != S_INP_TEI_UP) { return 0; } @@ -167,6 +167,8 @@ static int bts_connection_status_trap_cb(unsigned int subsys, unsigned int signa return 0; } + bts_connection_status = bts_current_status; + cmd->id = "0"; cmd->variable = "bts_connection_status"; |