}
int
-sync_interface_set_80211_chan(gchar *iface, char *freq, gchar *type,
+sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
gchar **data, gchar **primary_msg,
gchar **secondary_msg)
{
/** Set wireless channel using dumpcap */
extern int
-sync_interface_set_80211_chan(gchar *iface, char *freq, gchar *type,
+sync_interface_set_80211_chan(const gchar *iface, const char *freq, const gchar *type,
gchar **data, gchar **primary_msg,
gchar **secondary_msg);
static int
tb80211_do_set_channel(char *iface, int freq, int type)
{
- gchar *freq_s, *type_s;
+ gchar *freq_s;
+ const gchar *type_s;
gchar *data, *primary_msg, *secondary_msg;
int ret;
return ret;
}
-gchar
+const gchar
*ws80211_chan_type_to_str(int type)
{
switch (type) {
return -1;
}
-gchar *ws80211_chan_type_to_str(int type _U_)
+const gchar *ws80211_chan_type_to_str(int type _U_)
{
return NULL;
}
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(const gchar *s);
-gchar *ws80211_chan_type_to_str(int type);
+const gchar *ws80211_chan_type_to_str(int type);
#endif /* __WS80211_UTILS_H__ */