diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-09 09:49:09 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-22 09:09:09 +0100 |
commit | a0192b859ba9230c84381cbf065816760da62ba7 (patch) | |
tree | 0682fa750525a0e95a294fb6a67863e39aa2b6bd /src/common/bts_ctrl_lookup.c | |
parent | ec3be11ec60ce1ba49124095c12101f70b5c9eec (diff) |
Add new bts_model_ctrl_cmds_install()
This is one step in making the main() functions of different
BTS models more similar, so we can share one code rather than multiple
copies of it.
Diffstat (limited to 'src/common/bts_ctrl_lookup.c')
-rw-r--r-- | src/common/bts_ctrl_lookup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/bts_ctrl_lookup.c b/src/common/bts_ctrl_lookup.c index 3857ec39..f356913a 100644 --- a/src/common/bts_ctrl_lookup.c +++ b/src/common/bts_ctrl_lookup.c @@ -101,5 +101,12 @@ struct ctrl_handle *bts_controlif_setup(struct gsm_bts *bts) return NULL; } + rc = bts_model_ctrl_cmds_install(bts); + if (rc) { + /* FIXME: cleanup generic control commands */ + /* FIXME: close control interface */ + return NULL; + } + return hdl; } |