aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/osmo_bsc_rf.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-02-14 23:41:42 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-02-14 23:41:42 +0100
commit8ce50ba2f70b3dda8045d3807abf0c72c2d623b4 (patch)
treeafa388c85c4acef90ebc093de178c92b4da68b3f /openbsc/include/openbsc/osmo_bsc_rf.h
parent3f9b6a6539d487140f6d7e49e8cf9dc06bf040c6 (diff)
rf: Delay execution of commandson-waves/0.3.99.21
Delay executing RF commands up to a second. If many commands arrive within a second then just execute the last command.
Diffstat (limited to 'openbsc/include/openbsc/osmo_bsc_rf.h')
-rw-r--r--openbsc/include/openbsc/osmo_bsc_rf.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/include/openbsc/osmo_bsc_rf.h b/openbsc/include/openbsc/osmo_bsc_rf.h
index 4c8c65e36..e00d9c63c 100644
--- a/openbsc/include/openbsc/osmo_bsc_rf.h
+++ b/openbsc/include/openbsc/osmo_bsc_rf.h
@@ -14,6 +14,10 @@ struct osmo_bsc_rf {
const char *last_state_command;
+ /* delay the command */
+ char last_request;
+ struct timer_list delay_cmd;
+
/* verify that RF is up as it should be */
struct timer_list rf_check;