From 1754842be6daec57106eeb480047e9204fc20eca Mon Sep 17 00:00:00 2001 From: Daniel Willmann Date: Fri, 4 Nov 2011 12:23:18 +0100 Subject: osmo_bsc: Fix bts_connection_status signal always appearing as down --- openbsc/src/osmo-bsc/osmo_bsc_ctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'openbsc') 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"; -- cgit v1.2.3