aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_vty.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 16:06:20 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-07-03 16:19:41 +0200
commitf0167ddfc26755ef44be5c6939b3491e3364ba36 (patch)
tree09c4a779066584b90034ecbca78938cf3fc7f426 /openbsc/src/libbsc/bsc_vty.c
parenta164d5291e238668003c88fa963310371750d6d8 (diff)
hsl: Remove the support for the HSL bts from OpenBSC
The support has been implemented for an old model, we were told that newer versions would be made incompatible with OpenBSC. Ther are various warnings in the code and coverity has found some new ones. Just remove the code as we don't know of anyone using this code.
Diffstat (limited to 'openbsc/src/libbsc/bsc_vty.c')
-rw-r--r--openbsc/src/libbsc/bsc_vty.c48
1 files changed, 0 insertions, 48 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index b98ef1544..6c58ff10b 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -276,8 +276,6 @@ static void bts_dump_vty(struct vty *vty, struct gsm_bts *bts)
vty_out(vty, " Unit ID: %u/%u/0, OML Stream ID 0x%02x%s",
bts->ip_access.site_id, bts->ip_access.bts_id,
bts->oml_tei, VTY_NEWLINE);
- else if (bts->type == GSM_BTS_TYPE_HSL_FEMTO)
- vty_out(vty, " Serial Number: %lu%s", bts->hsl.serno, VTY_NEWLINE);
else if (bts->type == GSM_BTS_TYPE_NOKIA_SITE)
vty_out(vty, " Skip Reset: %d%s",
bts->nokia.skip_reset, VTY_NEWLINE);
@@ -560,11 +558,6 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts)
vty_out(vty, " oml ip.access stream_id %u line %u%s",
bts->oml_tei, bts->oml_e1_link.e1_nr, VTY_NEWLINE);
break;
- case GSM_BTS_TYPE_HSL_FEMTO:
- vty_out(vty, " hsl serial-number %lu%s", bts->hsl.serno, VTY_NEWLINE);
- vty_out(vty, " oml hsl line %u%s",
- bts->oml_e1_link.e1_nr, VTY_NEWLINE);
- break;
case GSM_BTS_TYPE_NOKIA_SITE:
vty_out(vty, " nokia_site skip-reset %d%s", bts->nokia.skip_reset, VTY_NEWLINE);
break;
@@ -1665,25 +1658,6 @@ DEFUN(cfg_bts_rsl_ip,
}
-DEFUN(cfg_bts_serno,
- cfg_bts_serno_cmd,
- "hsl serial-number STRING",
- "HSL BTS specific options\n"
- "Set the HSL Serial Number of this BTS\n"
- "Serial Number of this HSL BTS\n")
-{
- struct gsm_bts *bts = vty->index;
-
- if (bts->type != GSM_BTS_TYPE_HSL_FEMTO) {
- vty_out(vty, "%% BTS is not of HSL type%s", VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- bts->hsl.serno = strtoul(argv[0], NULL, 10);
-
- return CMD_SUCCESS;
-}
-
DEFUN(cfg_bts_nokia_site_skip_reset,
cfg_bts_nokia_site_skip_reset_cmd,
"nokia_site skip-reset (0|1)",
@@ -1728,26 +1702,6 @@ DEFUN(cfg_bts_stream_id,
return CMD_SUCCESS;
}
-DEFUN(cfg_bts_hsl_oml,
- cfg_bts_hsl_oml_cmd,
- "oml hsl line E1_LINE",
- OML_STR "HSL femto Specific Options\n"
- "Set OML link of this HSL femto BTS\n"
- "Virtual E1/T1 line number\n")
-{
- struct gsm_bts *bts = vty->index;
- int linenr = atoi(argv[0]);
-
- if (!(bts->type == GSM_BTS_TYPE_HSL_FEMTO)) {
- vty_out(vty, "%% BTS is not of HSL type%s", VTY_NEWLINE);
- return CMD_WARNING;
- }
-
- bts->oml_e1_link.e1_nr = linenr;
-
- return CMD_SUCCESS;
-}
-
#define OML_E1_STR OML_STR "OML E1/T1 Configuration\n"
DEFUN(cfg_bts_oml_e1,
@@ -3084,10 +3038,8 @@ int bsc_vty_init(const struct log_info *cat)
install_element(BTS_NODE, &cfg_bts_rsl_ip_cmd);
install_element(BTS_NODE, &cfg_bts_timezone_cmd);
install_element(BTS_NODE, &cfg_bts_no_timezone_cmd);
- install_element(BTS_NODE, &cfg_bts_serno_cmd);
install_element(BTS_NODE, &cfg_bts_nokia_site_skip_reset_cmd);
install_element(BTS_NODE, &cfg_bts_stream_id_cmd);
- install_element(BTS_NODE, &cfg_bts_hsl_oml_cmd);
install_element(BTS_NODE, &cfg_bts_oml_e1_cmd);
install_element(BTS_NODE, &cfg_bts_oml_e1_tei_cmd);
install_element(BTS_NODE, &cfg_bts_challoc_cmd);