WPS: Track result of the latest WPS operation

Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jeffin Mammen 2013-08-23 16:38:16 +03:00 committed by Jouni Malinen
parent 50396e29da
commit 61b6520e16
4 changed files with 32 additions and 0 deletions

View file

@ -67,6 +67,16 @@ struct hostapd_frame_info {
int ssi_signal; /* dBm */
};
enum wps_status {
WPS_STATUS_SUCCESS = 1,
WPS_STATUS_FAILURE
};
struct wps_stat {
enum wps_status status;
enum wps_error_indication failure_reason;
};
/**
* struct hostapd_data - hostapd per-BSS data structure
@ -147,6 +157,8 @@ struct hostapd_data {
unsigned int ap_pin_failures_consecutive;
struct upnp_wps_device_sm *wps_upnp;
unsigned int ap_pin_lockout_time;
struct wps_stat wps_stats;
#endif /* CONFIG_WPS */
struct hostapd_probereq_cb *probereq_cb;