aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-sysmo/sysmobts_vty.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-01-20 23:06:30 +0100
committerHarald Welte <laforge@gnumonks.org>2016-02-15 14:27:43 +0100
commitc6723c82064caec54faeec80b0afd8159140c96d (patch)
treed7068a72c19537c4e9a90c1b6c2edceafea04077 /src/osmo-bts-sysmo/sysmobts_vty.c
parent3b4d9e7c076df65257183c313a7f436fd6e66ca8 (diff)
move auto-band configuration commands to common/vty.c
It remains up to the individual BTS hardware models to decide whether or not to register those commands (depending on whether they support the feature) via cfg_bts_auto_band_cmd / cfg_bts_no_auto_band_cmd
Diffstat (limited to 'src/osmo-bts-sysmo/sysmobts_vty.c')
-rw-r--r--src/osmo-bts-sysmo/sysmobts_vty.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/osmo-bts-sysmo/sysmobts_vty.c b/src/osmo-bts-sysmo/sysmobts_vty.c
index 11e3e8fa..d2857520 100644
--- a/src/osmo-bts-sysmo/sysmobts_vty.c
+++ b/src/osmo-bts-sysmo/sysmobts_vty.c
@@ -63,28 +63,6 @@ static struct gsm_bts *vty_bts;
/* configuration */
-DEFUN(cfg_bts_auto_band, cfg_bts_auto_band_cmd,
- "auto-band",
- "Automatically select band for ARFCN based on configured band\n")
-{
- struct gsm_bts *bts = vty->index;
- struct gsm_bts_role_bts *btsb = bts_role_bts(bts);
-
- btsb->auto_band = 1;
- return CMD_SUCCESS;
-}
-
-DEFUN(cfg_bts_no_auto_band, cfg_bts_no_auto_band_cmd,
- "no auto-band",
- NO_STR "Automatically select band for ARFCN based on configured band\n")
-{
- struct gsm_bts *bts = vty->index;
- struct gsm_bts_role_bts *btsb = bts_role_bts(bts);
-
- btsb->auto_band = 0;
- return CMD_SUCCESS;
-}
-
DEFUN(cfg_phy_clkcal_eeprom, cfg_phy_clkcal_eeprom_cmd,
"clock-calibration eeprom",
"Use the eeprom clock calibration value\n")
@@ -457,10 +435,6 @@ DEFUN(no_loopback, no_loopback_cmd,
void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts)
{
- struct gsm_bts_role_bts *btsb = bts_role_bts(bts);
-
- if (btsb->auto_band)
- vty_out(vty, " auto-band%s", VTY_NEWLINE);
}
void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx)