Add WPS Registrar success callback

This commit is contained in:
Jouni Malinen 2010-04-11 20:21:08 +03:00 committed by Jouni Malinen
parent b3db190fa2
commit 195420b8d1
2 changed files with 7 additions and 0 deletions

View file

@ -171,6 +171,10 @@ struct hostapd_data {
struct hostapd_probereq_cb *probereq_cb; struct hostapd_probereq_cb *probereq_cb;
size_t num_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;
}; };

View file

@ -152,6 +152,9 @@ static void hostapd_wps_reg_success_cb(void *ctx, const u8 *mac_addr,
return; return;
wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_REG_SUCCESS MACSTR " %s", wpa_msg(hapd->msg_ctx, MSG_INFO, WPS_EVENT_REG_SUCCESS MACSTR " %s",
MAC2STR(mac_addr), uuid); 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);
} }