]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add WPS Registrar success callback
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 11 Apr 2010 17:21:08 +0000 (20:21 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 17:21:08 +0000 (20:21 +0300)
src/ap/hostapd.h
src/ap/wps_hostapd.c

index 3d0bab57c35fef2d862c613e06836b8a0778911f..281eade5a4296704405efc0bbb06d4d970d76e13 100644 (file)
@@ -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;
 };
 
 
index bb433add882383c5a1a9bc4943295821aaf69e6e..9f0aa2ac4067e0499143f2ad651d6c4636b79322 100644 (file)
@@ -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);
 }