aboutsummaryrefslogtreecommitdiffstats
path: root/caputils/ws80211_utils.h
diff options
context:
space:
mode:
authorMikael Kanstrup <mikael.kanstrup@gmail.com>2016-02-07 00:40:51 +0100
committerMichael Mann <mmann78@netscape.net>2016-03-01 15:23:44 +0000
commit9f27e5d7d19027ddf8f29c5a6a321912e7c2f9dd (patch)
treedf58180c18aa9d7c05086ac41d2beb445fcc8590 /caputils/ws80211_utils.h
parent7a1f75ed2f91f212317902020ab762ebaa3098ad (diff)
dumpcap: Add support for 802.11ac monitor modes
Add dumpcap support for configuring 80MHz, 80+80MHz, 160MHz monitor modes via nl80211. Change-Id: I2ae8955670c2a9b5051e2223d45ce522459f2c5f Reviewed-on: https://code.wireshark.org/review/13964 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'caputils/ws80211_utils.h')
-rw-r--r--caputils/ws80211_utils.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/caputils/ws80211_utils.h b/caputils/ws80211_utils.h
index d111030e25..3f58576758 100644
--- a/caputils/ws80211_utils.h
+++ b/caputils/ws80211_utils.h
@@ -31,13 +31,19 @@ enum ws80211_channel_type {
WS80211_CHAN_NO_HT,
WS80211_CHAN_HT20,
WS80211_CHAN_HT40MINUS,
- WS80211_CHAN_HT40PLUS
+ WS80211_CHAN_HT40PLUS,
+ WS80211_CHAN_VHT80,
+ WS80211_CHAN_VHT80P80,
+ WS80211_CHAN_VHT160
};
#define CHAN_NO_HT "NOHT"
#define CHAN_HT20 "HT20"
#define CHAN_HT40MINUS "HT40-"
#define CHAN_HT40PLUS "HT40+"
+#define CHAN_VHT80 "VHT80"
+#define CHAN_VHT80P80 "VHT80+80"
+#define CHAN_VHT160 "VHT160"
/* XXX This doesn't match AirpcapValidationType. Should it? */
enum ws80211_fcs_validation {
@@ -59,6 +65,8 @@ struct ws80211_interface
struct ws80211_iface_info {
int current_freq;
enum ws80211_channel_type current_chan_type;
+ int current_center_freq1;
+ int current_center_freq2;
enum ws80211_fcs_validation current_fcs_validation;
};
@@ -92,9 +100,11 @@ void ws80211_free_interfaces(GArray *interfaces);
* @param name The interface name.
* @param freq The frequency in MHz.
* @param chan_type The HT channel type (no, 20Mhz, 40Mhz...).
+ * @param center_freq The center frequency in MHz (if 80MHz, 80+80MHz or 160MHz).
+ * @param center_freq2 The 2nd center frequency in MHz (if 80+80MHz).
* @return Zero on success, nonzero on failure.
*/
-int ws80211_set_freq(const char *name, int freq, int chan_type);
+int ws80211_set_freq(const char *name, int freq, int chan_type, int _U_ center_freq, int _U_ center_freq2);
int ws80211_str_to_chan_type(const gchar *s); /* GTK+ only? */
const gchar *ws80211_chan_type_to_str(int type); /* GTK+ only? */