diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2013-09-11 10:46:57 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-09-11 20:39:20 +0200 |
commit | 90b996315e7ffc1f11876bf9d4857b6806e9b71a (patch) | |
tree | cb49588692983065462155c99deb70c56bf85718 /openbsc/src/osmo-bsc/osmo_bsc_rf.c | |
parent | 8e5a66cb28149447a2b9668efcc4156c53d6d614 (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/osmo-bsc/osmo_bsc_rf.c')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_rf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_rf.c b/openbsc/src/osmo-bsc/osmo_bsc_rf.c index 7840f7616..a200bf349 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_rf.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_rf.c @@ -503,6 +503,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; |