Browse Source

Use a fixed wps_msg prefix with WPS creds notification

Jouni Malinen 16 years ago
parent
commit
ff8a53a8d7
2 changed files with 3 additions and 1 deletions
  1. 2 0
      src/common/wpa_ctrl.h
  2. 1 1
      wpa_supplicant/wps_supplicant.c

+ 2 - 0
src/common/wpa_ctrl.h

@@ -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 "

+ 1 - 1
wpa_supplicant/wps_supplicant.c

@@ -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 "