summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2012-09-10 20:24:51 +0000
committerJörg Mayer <jmayer@loplof.de>2012-09-10 20:24:51 +0000
commit8e66080f1d49224101c3d0c3d2ded8598a49adbc (patch)
tree485d608251cbfb565b514581b05420a5913f0419
parent17a8522cb63c9f61992b05a6a65981af0b0453c8 (diff)
downloadwireshark-8e66080f1d49224101c3d0c3d2ded8598a49adbc.tar.gz
Copy over HAVE_NL80211 from autofoo
svn path=/trunk/; revision=44853
-rw-r--r--ConfigureChecks.cmake12
-rw-r--r--cmakeconfig.h.in3
2 files changed, 14 insertions, 1 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 1b453e46e2..3e1e125d5f 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -89,5 +89,15 @@ check_c_source_compiles(
}"
HAVE_NL80211_CMD_SET_CHANNEL
)
-
+check_c_source_compiles(
+ "#include <linux/nl80211.h>
+ int main() {
+ int x = NL80211_FREQUENCY_ATTR_MAX_TX_POWER;
+ x = NL80211_ATTR_SUPPORTED_IFTYPES;
+ x = NL80211_ATTR_SUPPORTED_COMMANDS;
+ x = NL80211_ATTR_WIPHY_FREQ;
+ x = NL80211_CHAN_NO_HT;
+ }"
+ HAVE_NL80211
+)
diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in
index b1015e3332..52777aef49 100644
--- a/cmakeconfig.h.in
+++ b/cmakeconfig.h.in
@@ -328,6 +328,9 @@
/* Define if linux/nl80211.h defines NL80211_CMD_SET_CHANNEL */
#cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
+/* Define if linux/nl80211.h is new enough */
+#cmakedefine HAVE_NL80211 1
+
/* Name of package */
#cmakedefine PACKAGE