lc15,sysmo,oc2g: fix dsp-trace-flag command

Remove the '~' from '|= flag', it is plain wrong.

This affects the correct parsing of DSP trace flags from the config
file only.  The bug is not present in the interactive VTY command
at runtime.

Change-Id: I915971f49642967c969f5dd475e8faa960ef3960
This commit is contained in:
Neels Hofmeyr 2016-08-18 18:39:32 +02:00 committed by Harald Welte
parent 9ef6fa0798
commit 347fea69a0
3 changed files with 3 additions and 3 deletions

View File

@ -88,7 +88,7 @@ DEFUN(cfg_phy_dsp_trace_f, cfg_phy_dsp_trace_f_cmd,
unsigned int flag;
flag = get_string_value(lc15bts_tracef_names, argv[1]);
pinst->u.lc15.dsp_trace_f |= ~flag;
pinst->u.lc15.dsp_trace_f |= flag;
return CMD_SUCCESS;
}

View File

@ -114,7 +114,7 @@ DEFUN(cfg_phy_dsp_trace_f, cfg_phy_dsp_trace_f_cmd,
unsigned int flag;
flag = get_string_value(oc2gbts_tracef_names, argv[1]);
pinst->u.oc2g.dsp_trace_f |= ~flag;
pinst->u.oc2g.dsp_trace_f |= flag;
return CMD_SUCCESS;
}

View File

@ -179,7 +179,7 @@ DEFUN(cfg_phy_dsp_trace_f, cfg_phy_dsp_trace_f_cmd,
unsigned int flag;
flag = get_string_value(femtobts_tracef_names, argv[1]);
pinst->u.sysmobts.dsp_trace_f |= ~flag;
pinst->u.sysmobts.dsp_trace_f |= flag;
return CMD_SUCCESS;
}