#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,
WS80211_CHAN_HT40PLUS
};
-#endif
-
#define CHAN_NO_HT "NOHT"
#define CHAN_HT20 "HT20"
#define CHAN_HT40MINUS "HT40-"
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__ */