From a0192b859ba9230c84381cbf065816760da62ba7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 9 Jan 2016 09:49:09 +0100 Subject: 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. --- src/common/bts_ctrl_lookup.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/common/bts_ctrl_lookup.c') 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; } -- cgit v1.2.3