Use a fixed wps_msg prefix with WPS creds notification
This commit is contained in:
parent
a524f05eb3
commit
ff8a53a8d7
2 changed files with 3 additions and 1 deletions
|
@ -58,6 +58,8 @@ extern "C" {
|
||||||
#define WPS_EVENT_AP_AVAILABLE_PIN "WPS-AP-AVAILABLE-PIN "
|
#define WPS_EVENT_AP_AVAILABLE_PIN "WPS-AP-AVAILABLE-PIN "
|
||||||
/** Available WPS AP found in scan results */
|
/** Available WPS AP found in scan results */
|
||||||
#define WPS_EVENT_AP_AVAILABLE "WPS-AP-AVAILABLE "
|
#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 */
|
/* hostapd control interface - fixed message prefixes */
|
||||||
#define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "
|
#define WPS_EVENT_PIN_NEEDED "WPS-PIN-NEEDED "
|
||||||
|
|
|
@ -56,7 +56,7 @@ static int wpa_supplicant_wps_cred(void *ctx,
|
||||||
struct wpa_supplicant *wpa_s = ctx;
|
struct wpa_supplicant *wpa_s = ctx;
|
||||||
struct wpa_ssid *ssid = wpa_s->current_ssid;
|
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)) {
|
if (ssid && (ssid->key_mgmt & WPA_KEY_MGMT_WPS)) {
|
||||||
wpa_printf(MSG_DEBUG, "WPS: Replace WPS network block based "
|
wpa_printf(MSG_DEBUG, "WPS: Replace WPS network block based "
|
||||||
|
|
Loading…
Reference in a new issue