aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_ctrl.c4
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";