diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-09-05 13:45:35 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-09-05 20:46:09 +0000 |
commit | ae877942ea507128d3191e17075a26b86e52615d (patch) | |
tree | 72fde849cd1ad6cc397a560d68ee31eaa1f65bd8 /dumpcap.c | |
parent | 70f3737c3e4d9402cb2bb67cdd892e0e7e0ee991 (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |