diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
commit | d7ca0c3e555ef0b5250873ddce48ccf2326b017a (patch) | |
tree | 52fc801f0893eb7752524b2602d420afbda4ed59 /conf.c | |
parent | 3645c236e9720deb696e7aebc33cd9a6d8cbbdc6 (diff) | |
download | wavemon-d7ca0c3e555ef0b5250873ddce48ccf2326b017a.tar.gz |
Imported Upstream version 0.7.6upstream/0.7.6
Diffstat (limited to '')
-rw-r--r-- | conf.c | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -36,12 +36,11 @@ static char *action_items[] = { static char *sort_order[] = { [SO_CHAN] = "Channel", - [SO_CHAN_REV] = "Rev Channel", [SO_SIGNAL] = "Signal", + [SO_ESSID] = "Essid", [SO_OPEN] = "Open", [SO_CHAN_SIG] = "Chan/Sig", [SO_OPEN_SIG] = "Open/Sig", - [SO_OPEN_CH_SI] = "Open/Chan/Sig", NULL }; @@ -70,7 +69,8 @@ struct wavemon_conf conf = { .noise_min = -102, .noise_max = 10, - .scan_sort_order = SO_CHAN, + .scan_sort_order = SO_CHAN_SIG, + .scan_sort_asc = false, .lthreshold_action = TA_DISABLED, .lthreshold = -80, .hthreshold_action = TA_DISABLED, @@ -326,7 +326,7 @@ static void init_conf_items(void) ll_push(conf_items, "*", item); item = calloc(1, sizeof(*item)); - item->name = strdup("Scan sort order"); + item->name = strdup("Scan sort type"); item->cfname = strdup("sort_order"); item->type = t_list; item->v.i = &conf.scan_sort_order; @@ -334,6 +334,14 @@ static void init_conf_items(void) ll_push(conf_items, "*", item); item = calloc(1, sizeof(*item)); + item->name = strdup("Scan sort in ascending order"); + item->cfname = strdup("sort_ascending"); + item->type = t_list; + item->v.i = &conf.scan_sort_asc; + item->list = on_off_names; + ll_push(conf_items, "*", item); + + item = calloc(1, sizeof(*item)); item->name = strdup("Statistics updates"); item->cfname = strdup("stat_updates"); item->type = t_int; @@ -561,7 +569,8 @@ void getconf(int argc, char *argv[]) } if (version) { - printf("wavemon wireless monitor %s\n", PACKAGE_VERSION); + printf("wavemon %s", PACKAGE_VERSION); + printf(" with %s and %s.\n", we_version(), curses_version()); printf("Distributed under the terms of the GPLv3.\n%s", help ? "\n" : ""); } if (help) { |