summaryrefslogtreecommitdiffstats
path: root/src/host/layer23/src/mobile/vty_interface.c
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2012-11-22 16:00:33 +0100
committerAndreas Eversberg <jolly@eversberg.eu>2012-11-22 16:00:33 +0100
commitd72cb4401e9229da9306fd49dc0d541eb002de9a (patch)
treea84aabc097cc806ac6d480d700b07098732453a1 /src/host/layer23/src/mobile/vty_interface.c
parent85f4e1b3b8b386fd7e25b33d83768fe8a100e051 (diff)
Rename various "rxlev" variable to "rxlev_dbm" and correct their signess
All levels in range of 0..63 are now uint8_t and use "rxlev" as variable name. All levels in range of -110..-47 are now int8_t and use "rxlev_dbm" as variable name.
Diffstat (limited to 'src/host/layer23/src/mobile/vty_interface.c')
-rw-r--r--src/host/layer23/src/mobile/vty_interface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/host/layer23/src/mobile/vty_interface.c b/src/host/layer23/src/mobile/vty_interface.c
index dc9e09d9..4d7f6a27 100644
--- a/src/host/layer23/src/mobile/vty_interface.c
+++ b/src/host/layer23/src/mobile/vty_interface.c
@@ -1418,8 +1418,8 @@ static void config_write_ms(struct vty *vty, struct osmocom_ms *ms)
SUP_WRITE(full_v3, "full-speech-v3");
SUP_WRITE(half_v1, "half-speech-v1");
SUP_WRITE(half_v3, "half-speech-v3");
- if (!hide_default || sup->min_rxlev_db != set->min_rxlev_db)
- vty_out(vty, " min-rxlev %d%s", set->min_rxlev_db,
+ if (!hide_default || sup->min_rxlev_dbm != set->min_rxlev_dbm)
+ vty_out(vty, " min-rxlev %d%s", set->min_rxlev_dbm,
VTY_NEWLINE);
if (!hide_default || sup->dsc_max != set->dsc_max)
vty_out(vty, " dsc-max %d%s", set->dsc_max, VTY_NEWLINE);
@@ -2378,7 +2378,7 @@ DEFUN(cfg_ms_sup_min_rxlev, cfg_ms_sup_min_rxlev_cmd, "min-rxlev <-110--47>",
struct osmocom_ms *ms = vty->index;
struct gsm_settings *set = &ms->settings;
- set->min_rxlev_db = atoi(argv[0]);
+ set->min_rxlev_dbm = atoi(argv[0]);
return CMD_SUCCESS;
}