aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2016-08-18 18:39:32 +0200
committerHarald Welte <laforge@gnumonks.org>2019-05-28 19:55:48 +0200
commit347fea69a0b97441eaebca488b55d1ff1f539619 (patch)
tree942e73bfbf76d0c66125794b03a25bdc6cedc953
parent9ef6fa079885b67a0aed14c911b104a4967beeb8 (diff)
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
-rw-r--r--src/osmo-bts-litecell15/lc15bts_vty.c2
-rw-r--r--src/osmo-bts-oc2g/oc2gbts_vty.c2
-rw-r--r--src/osmo-bts-sysmo/sysmobts_vty.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/osmo-bts-litecell15/lc15bts_vty.c b/src/osmo-bts-litecell15/lc15bts_vty.c
index d0edc88..d27ec28 100644
--- a/src/osmo-bts-litecell15/lc15bts_vty.c
+++ b/src/osmo-bts-litecell15/lc15bts_vty.c
@@ -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;
}
diff --git a/src/osmo-bts-oc2g/oc2gbts_vty.c b/src/osmo-bts-oc2g/oc2gbts_vty.c
index 4c3915b..1f092dd 100644
--- a/src/osmo-bts-oc2g/oc2gbts_vty.c
+++ b/src/osmo-bts-oc2g/oc2gbts_vty.c
@@ -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;
}
diff --git a/src/osmo-bts-sysmo/sysmobts_vty.c b/src/osmo-bts-sysmo/sysmobts_vty.c
index b105bf4..3199c8e 100644
--- a/src/osmo-bts-sysmo/sysmobts_vty.c
+++ b/src/osmo-bts-sysmo/sysmobts_vty.c
@@ -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;
}