diff options
author | Jouni Malinen <j@w1.fi> | 2008-12-15 22:32:45 +0200 |
---|---|---|
committer | Jouni Malinen <j@w1.fi> | 2008-12-15 22:32:45 +0200 |
commit | ff8a53a8d7ebe5ff9dd48a4bb764d3b825dac525 (patch) | |
tree | 6096abce282d410238f487e37bbea598e6e6fd68 | |
parent | a524f05eb3cfefea94fe27f039f78a278a4ff5af (diff) | |
download | external_wpa_supplicant_8_ti-ff8a53a8d7ebe5ff9dd48a4bb764d3b825dac525.zip external_wpa_supplicant_8_ti-ff8a53a8d7ebe5ff9dd48a4bb764d3b825dac525.tar.gz external_wpa_supplicant_8_ti-ff8a53a8d7ebe5ff9dd48a4bb764d3b825dac525.tar.bz2 |
Use a fixed wps_msg prefix with WPS creds notification
-rw-r--r-- | src/common/wpa_ctrl.h | 2 | ||||
-rw-r--r-- | wpa_supplicant/wps_supplicant.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/common/wpa_ctrl.h b/src/common/wpa_ctrl.h index 25d6538..5450ee4 100644 --- a/src/common/wpa_ctrl.h +++ b/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 " diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c index 8c254df..b3f4882 100644 --- a/wpa_supplicant/wps_supplicant.c +++ b/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 " |