Fix dsp tracing at phy config

Due to missing runtime cmd patching DSP tracing was not possible at phy
level of config file. No it is possible to specify it as follows:

...
phy 0
 instance 0
  dsp-trace-flag debug
  dsp-trace-flag mph_cnf
...

Change-Id: Ibbbf81d2c4b5d3adbcbc1f08a844d262e603e571
This commit is contained in:
Max 2016-07-25 16:45:31 +02:00 committed by Harald Welte
parent ba656fff91
commit 108b60faba
1 changed files with 17 additions and 0 deletions

View File

@ -497,6 +497,23 @@ int bts_model_vty_init(struct gsm_bts *bts)
NO_STR TRX_STR DSP_TRACE_F_STR,
"\n", "", 0);
cfg_phy_dsp_trace_f_cmd.string =
vty_cmd_string_from_valstr(bts, femtobts_tracef_names,
"dsp-trace-flag (", "|", ")",
VTY_DO_LOWER);
cfg_phy_dsp_trace_f_cmd.doc =
vty_cmd_string_from_valstr(bts, femtobts_tracef_docs,
DSP_TRACE_F_STR, "\n", "", 0);
cfg_phy_no_dsp_trace_f_cmd.string =
vty_cmd_string_from_valstr(bts, femtobts_tracef_names,
"no dsp-trace-flag (", "|", ")",
VTY_DO_LOWER);
cfg_phy_no_dsp_trace_f_cmd.doc =
vty_cmd_string_from_valstr(bts, femtobts_tracef_docs,
NO_STR DSP_TRACE_F_STR, "\n",
"", 0);
install_element_ve(&show_dsp_trace_f_cmd);
install_element_ve(&show_sys_info_cmd);
install_element_ve(&show_trx_clksrc_cmd);