diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-07 20:07:51 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-02-08 12:47:32 +0100 |
commit | 362d10f20adfa0a956c43965f409cc62bb776342 (patch) | |
tree | 40e87ef272c5d113848f1a0b3b5d74fea4fbab94 /openbsc/src/osmo-bsc | |
parent | 8cedb1135076abaead01589662a45218356110c9 (diff) |
libbsc: Create the RF interface all the time
The interface can be accessed through CTRL and a socket. But currently
it is only available when the socket interface has been configured.
Create the interface all the time but only listen on the socket when
a path has been specified.
Diffstat (limited to 'openbsc/src/osmo-bsc')
-rw-r--r-- | openbsc/src/osmo-bsc/osmo_bsc_main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_main.c b/openbsc/src/osmo-bsc/osmo_bsc_main.c index 864d62970..84186a6a5 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_main.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_main.c @@ -228,13 +228,10 @@ int main(int argc, char **argv) if (rf_ctrl) bsc_replace_string(data, &data->rf_ctrl_name, rf_ctrl); - if (data->rf_ctrl_name) { - data->rf_ctrl = osmo_bsc_rf_create(data->rf_ctrl_name, - bsc_gsmnet); - if (!data->rf_ctrl) { - fprintf(stderr, "Failed to create the RF service.\n"); - exit(1); - } + data->rf_ctrl = osmo_bsc_rf_create(data->rf_ctrl_name, bsc_gsmnet); + if (!data->rf_ctrl) { + fprintf(stderr, "Failed to create the RF service.\n"); + exit(1); } llist_for_each_entry(msc, &bsc_gsmnet->bsc_data->mscs, entry) { |