Use a fixed wps_msg prefix with WPS creds notification

This commit is contained in:
Jouni Malinen 2008-12-15 22:32:45 +02:00
parent a524f05eb3
commit ff8a53a8d7
2 changed files with 3 additions and 1 deletions

View file

@ -58,6 +58,8 @@ extern "C" {
#define WPS_EVENT_AP_AVAILABLE_PIN "WPS-AP-AVAILABLE-PIN "
/** Available WPS AP found in scan results */
#define WPS_EVENT_AP_AVAILABLE "WPS-AP-AVAILABLE "
/** A new credential received */
#define WPS_EVENT_CRED_RECEIVED "WPS-CRED-RECEIVED "
/* hostapd control interface - fixed message prefixes */
#define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "

View file

@ -56,7 +56,7 @@ static int wpa_supplicant_wps_cred(void *ctx,
struct wpa_supplicant *wpa_s = ctx;
struct wpa_ssid *ssid = wpa_s->current_ssid;
wpa_msg(wpa_s, MSG_INFO, "WPS: New credential received");
wpa_msg(wpa_s, MSG_INFO, WPS_EVENT_CRED_RECEIVED);
if (ssid && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) {
wpa_printf(MSG_DEBUG, "WPS: Replace WPS network block based "