Fix CONFIG_NO_STDOUT_DEBUG=y build

This commit is contained in:
Jouni Malinen 2011-02-10 20:24:06 +02:00 committed by Jouni Malinen
parent f049052b9e
commit 50b16da13f
3 changed files with 15 additions and 3 deletions

View file

@ -2338,6 +2338,7 @@ struct wpa_supplicant * wpa_supplicant_get_iface(struct wpa_global *global,
}
#ifndef CONFIG_NO_WPA_MSG
static const char * wpa_supplicant_msg_ifname_cb(void *ctx)
{
struct wpa_supplicant *wpa_s = ctx;
@ -2345,6 +2346,7 @@ static const char * wpa_supplicant_msg_ifname_cb(void *ctx)
return NULL;
return wpa_s->ifname;
}
#endif /* CONFIG_NO_WPA_MSG */
/**
@ -2364,7 +2366,9 @@ struct wpa_global * wpa_supplicant_init(struct wpa_params *params)
if (params == NULL)
return NULL;
#ifndef CONFIG_NO_WPA_MSG
wpa_msg_register_ifname_cb(wpa_supplicant_msg_ifname_cb);
#endif /* CONFIG_NO_WPA_MSG */
wpa_debug_open_file(params->wpa_debug_file_path);
if (params->wpa_debug_syslog)