From: Jouni Malinen Date: Sun, 11 Apr 2010 17:21:08 +0000 (+0300) Subject: Add WPS Registrar success callback X-Git-Tag: hostap_0_7_2~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=195420b8d14a63c6fb219eda37f1d60dc1efcb66;p=thirdparty%2Fhostap.git Add WPS Registrar success callback --- diff --git a/src/ap/hostapd.h b/src/ap/hostapd.h index 3d0bab57c..281eade5a 100644 --- a/src/ap/hostapd.h +++ b/src/ap/hostapd.h @@ -171,6 +171,10 @@ struct hostapd_data { struct hostapd_probereq_cb *probereq_cb; size_t num_probereq_cb; + + void (*wps_reg_success_cb)(void *ctx, const u8 *mac_addr, + const u8 *uuid_e); + void *wps_reg_success_cb_ctx; }; diff --git a/src/ap/wps_hostapd.c b/src/ap/wps_hostapd.c index bb433add8..9f0aa2ac4 100644 --- a/src/ap/wps_hostapd.c +++ b/src/ap/wps_hostapd.c @@ -152,6 +152,9 @@ static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr, return; wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_REG_SUCCESS MACSTR " %s", MAC2STR(mac_addr), uuid); + if (hapd->wps_reg_success_cb) + hapd->wps_reg_success_cb(hapd->wps_reg_success_cb_ctx, + mac_addr, uuid_e); }