Add a HACK patch for building a patched kerberos library
[metze/wireshark/wip.git] / ws80211_utils.h
index 12550f1b916e40d16e5b9e5557f940aabb50d946..8bca4171b03cca7cb2218661088c1fa30ba148a9 100644 (file)
 #ifndef __WS80211_UTILS_H__
 #define __WS80211_UTILS_H__
 
-#include <config.h>
-
-#ifdef HAVE_LIBNL
-
-#include <linux/nl80211.h>
-enum ws80211_channel_type {
-       WS80211_CHAN_NO_HT = NL80211_CHAN_NO_HT,
-       WS80211_CHAN_HT20 = NL80211_CHAN_HT20,
-       WS80211_CHAN_HT40MINUS = NL80211_CHAN_HT40MINUS,
-       WS80211_CHAN_HT40PLUS = NL80211_CHAN_HT40PLUS
-};
-
-#else
 enum ws80211_channel_type {
        WS80211_CHAN_NO_HT,
        WS80211_CHAN_HT20,
@@ -45,8 +32,6 @@ enum ws80211_channel_type {
        WS80211_CHAN_HT40PLUS
 };
 
-#endif
-
 #define CHAN_NO_HT     "NOHT"
 #define CHAN_HT20      "HT20"
 #define CHAN_HT40MINUS "HT40-"
@@ -72,7 +57,7 @@ int ws80211_get_iface_info(const char *name, struct ws80211_iface_info *iface_in
 void ws80211_free_interfaces(GArray *interfaces);
 int ws80211_frequency_to_channel(int freq);
 int ws80211_set_freq(const char *name, int freq, int chan_type);
-int ws80211_str_to_chan_type(gchar *s);
-gchar *ws80211_chan_type_to_str(int type);
+int ws80211_str_to_chan_type(const gchar *s);
+const gchar *ws80211_chan_type_to_str(int type);
 
 #endif /* __WS80211_UTILS_H__ */