diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-14 23:41:42 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-02-24 14:40:23 +0100 |
commit | 11762459e83d3c1cfa77f019d6438ad0ae0ee7d7 (patch) | |
tree | 7f5880a2f3b77ec4afca863f4f820b2dcb7c8666 /openbsc/include/openbsc/osmo_bsc_rf.h | |
parent | 00c805f213e594f18f72f70c8f6975f8aeff3612 (diff) |
rf: Delay execution of commands
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.h | 4 |
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 2211a334a..e43ae2e3f 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; |