aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_rf_ctrl.c
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-09-11 10:46:57 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-11 20:27:08 +0200
commit779a72819dd0242a906acd776367f5622b7a8e79 (patch)
treece4200f9d8150675ec0a4c8b7d24019232fba846 /openbsc/src/libbsc/bsc_rf_ctrl.c
parent733bec862627d6ecc934fd928eb5b3a2e22771b8 (diff)
ctrl: Remember last 'rf_locked' control command
This stores the last SET rf_locked control command along with a timestamp. The 'show network' vty command is extended to show this information. Ticket: OW#659
Diffstat (limited to 'openbsc/src/libbsc/bsc_rf_ctrl.c')
-rw-r--r--openbsc/src/libbsc/bsc_rf_ctrl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_rf_ctrl.c b/openbsc/src/libbsc/bsc_rf_ctrl.c
index bd36e188..9eb85e5f 100644
--- a/openbsc/src/libbsc/bsc_rf_ctrl.c
+++ b/openbsc/src/libbsc/bsc_rf_ctrl.c
@@ -504,6 +504,7 @@ struct osmo_bsc_rf *osmo_bsc_rf_create(const char *path, struct gsm_network *net
rf->gsm_network = net;
rf->policy = S_RF_ON;
rf->last_state_command = "";
+ rf->last_rf_lock_ctrl_command = talloc_strdup(rf, "");
/* check the rf state */
rf->rf_check.data = rf;