summaryrefslogtreecommitdiff
path: root/dumpcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-09-05 13:45:35 -0700
committerGuy Harris <guy@alum.mit.edu>2016-09-05 20:46:09 +0000
commitae877942ea507128d3191e17075a26b86e52615d (patch)
tree72fde849cd1ad6cc397a560d68ee31eaa1f65bd8 /dumpcap.c
parent70f3737c3e4d9402cb2bb67cdd892e0e7e0ee991 (diff)
downloadwireshark-ae877942ea507128d3191e17075a26b86e52615d.tar.gz
Report an error if the channel type isn't valid.
Change-Id: Ie9d47da4b1758cbf475989a04847853a714e1447 Reviewed-on: https://code.wireshark.org/review/17503 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpcap.c b/dumpcap.c
index d28c1c9076..67110e758a 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -3693,6 +3693,7 @@ set_80211_channel(const char *iface, const char *opt)
if (args >= 1 && options[1]) {
type = ws80211_str_to_chan_type(options[1]);
if (type == -1) {
+ cmdarg_err("\"%s\" is not a valid 802.11 channel type", options[1]);
ret = EINVAL;
goto out;
}