diff options
author | Mikael Kanstrup <mikael.kanstrup@gmail.com> | 2016-09-14 14:13:20 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2016-09-23 06:01:27 +0000 |
commit | 00c862e4056be43d91beb2c6b66b996140e5d280 (patch) | |
tree | 9d4958a2b36d8dcc4169104842ec55f05b857e49 /capchild/capture_sync.c | |
parent | b6a2915d0d5a7ab1524a49b216290f1e33feb19b (diff) |
capchild: Support optional 802.11 channel parameters
Document the the 802.11 set channel function and its parameters.
Add support for optional parameters.
Bug: 12896
Change-Id: I95966f99149aa9c1502d97b5707dcc8c2f5b26e8
Reviewed-on: https://code.wireshark.org/review/17699
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'capchild/capture_sync.c')
-rw-r--r-- | capchild/capture_sync.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/capchild/capture_sync.c b/capchild/capture_sync.c index eb3a1e0531..2c71d7ed55 100644 --- a/capchild/capture_sync.c +++ b/capchild/capture_sync.c @@ -1189,8 +1189,12 @@ sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar argv = sync_pipe_add_arg(argv, &argc, "-i"); argv = sync_pipe_add_arg(argv, &argc, iface); - if (type) + if (center_freq2) opt = g_strdup_printf("%s,%s,%s,%s", freq, type, center_freq1, center_freq2); + else if (center_freq1) + opt = g_strdup_printf("%s,%s,%s", freq, type, center_freq1); + else if (type) + opt = g_strdup_printf("%s,%s", freq, type); else opt = g_strdup(freq); |