sysmobts: Save the clock-source to the config file
Make the clock names lower case to match with the vty command.
This commit is contained in:
parent
3af5426d71
commit
7fe0838588
|
@ -240,10 +240,10 @@ const struct value_string femtobts_tch_pl_names[] = {
|
|||
|
||||
const struct value_string femtobts_clksrc_names[] = {
|
||||
{ SF_CLKSRC_NONE, "None" },
|
||||
{ SF_CLKSRC_OCXO, "OCXO" },
|
||||
{ SF_CLKSRC_TCXO, "TCXO" },
|
||||
{ SF_CLKSRC_EXT, "EXT" },
|
||||
{ SF_CLKSRC_GPS, "GPS" },
|
||||
{ SF_CLKSRC_OCXO, "ocxo" },
|
||||
{ SF_CLKSRC_TCXO, "tcxo" },
|
||||
{ SF_CLKSRC_EXT, "ext" },
|
||||
{ SF_CLKSRC_GPS, "gps" },
|
||||
{ SF_CLKSRC_TRX, "TRX" },
|
||||
{ SF_CLKSRC_RX, "RX" },
|
||||
{ 0, NULL }
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
/* VTY interface for sysmoBTS */
|
||||
|
||||
/* (C) 2011 by Harald Welte <laforge@gnumonks.org>
|
||||
* (C) 2012 by Holger Hans Peter Freyther
|
||||
*
|
||||
* All Rights Reserved
|
||||
*
|
||||
|
@ -395,6 +396,9 @@ void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx)
|
|||
vty_out(vty, " clock-calibration %u%s", fl1h->clk_cal,
|
||||
VTY_NEWLINE);
|
||||
}
|
||||
vty_out(vty, " clock-source %s%s",
|
||||
get_value_string(femtobts_clksrc_names, fl1h->clk_src),
|
||||
VTY_NEWLINE);
|
||||
}
|
||||
|
||||
int bts_model_vty_init(struct gsm_bts *bts)
|
||||
|
|
Loading…
Reference in New Issue