Add a check for NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP.
authorGuy Harris <guy@alum.mit.edu>
Mon, 5 Jan 2015 00:11:56 +0000 (16:11 -0800)
committerGuy Harris <guy@alum.mit.edu>
Mon, 5 Jan 2015 00:12:31 +0000 (00:12 +0000)
Just as we check for it in autotools, check for it in CMake.

Change-Id: I342a3fcde6a5f8190dac67260f25c070b6f5430f
Reviewed-on: https://code.wireshark.org/review/6314
Reviewed-by: Guy Harris <guy@alum.mit.edu>
ConfigureChecks.cmake
cmakeconfig.h.in

index 46ab28f59a5d95d4f3ca71008f1b5ecc08d3cf3a..14eb495344eb9170e74800173f4d8ee1b2d8006f 100644 (file)
@@ -123,6 +123,13 @@ check_c_source_compiles(
        }"
        HAVE_NL80211_CMD_SET_CHANNEL
 )
+check_c_source_compiles(
+       "#include <linux/nl80211.h>
+       int main() {
+               enum nl80211_protocol_features x = NL80211_PROTOCOL_FEATURE_SPLIT_WIPHY_DUMP;
+       }"
+       HAVE_NL80211_SPLIT_WIPHY_DUMP
+)
 check_c_source_compiles(
        "#include <linux/nl80211.h>
        int main() {
@@ -134,4 +141,3 @@ check_c_source_compiles(
        }"
        HAVE_NL80211
 )
-
index 494ab7f114c6f01a164fcdeae35e6200a82999c6..b334cd82bfe455c8b6bf2192e22c1e182ef6afb8 100644 (file)
 /* SET_CHANNEL is supported */
 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
 
+/* SPLIT_WIPHY_DUMP is supported */
+#cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
+
 /* Define to 1 if you have the <Ntddndis.h> header file. */
 #cmakedefine HAVE_NTDDNDIS_H 1