diff options
-rw-r--r-- | openbsc/src/bsc_vty.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/openbsc/src/bsc_vty.c b/openbsc/src/bsc_vty.c index aabb7827f..02d8b03bf 100644 --- a/openbsc/src/bsc_vty.c +++ b/openbsc/src/bsc_vty.c @@ -45,6 +45,7 @@ #include <openbsc/system_information.h> #include <openbsc/debug.h> #include <openbsc/paging.h> +#include <openbsc/ipaccess.h> #include "../bscconfig.h" @@ -2299,13 +2300,11 @@ DEFUN(drop_bts, /* close all connections */ if (strcmp(argv[1], "oml") == 0) { - if (bts->oml_link) - close(bts->oml_link->ts->driver.ipaccess.fd.fd); + ipaccess_drop_oml(bts); } else if (strcmp(argv[1], "rsl") == 0) { /* close all rsl connections */ llist_for_each_entry(trx, &bts->trx_list, list) { - if (trx->rsl_link) - close(trx->rsl_link->ts->driver.ipaccess.fd.fd); + ipaccess_drop_rsl(trx); } } else { vty_out(vty, "Argument must be 'oml# or 'rsl'.%s", VTY_NEWLINE); |