diff --git a/wpa_supplicant/ap.c b/wpa_supplicant/ap.c index ff07d60e0..fe26305af 100644 --- a/wpa_supplicant/ap.c +++ b/wpa_supplicant/ap.c @@ -225,6 +225,10 @@ int wpa_supplicant_create_ap(struct wpa_supplicant *wpa_s, os_memcpy(wpa_s->bssid, wpa_s->own_addr, ETH_ALEN); wpa_supplicant_set_state(wpa_s, WPA_COMPLETED); + if (wpa_s->ap_configured_cb) + wpa_s->ap_configured_cb(wpa_s->ap_configured_cb_ctx, + wpa_s->ap_configured_cb_data); + return 0; } diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h index d7fc884c3..e6b28833f 100644 --- a/wpa_supplicant/wpa_supplicant_i.h +++ b/wpa_supplicant/wpa_supplicant_i.h @@ -424,6 +424,9 @@ struct wpa_supplicant { #ifdef CONFIG_AP struct hostapd_iface *ap_iface; + void (*ap_configured_cb)(void *ctx, void *data); + void *ap_configured_cb_ctx; + void *ap_configured_cb_data; #endif /* CONFIG_AP */ struct wpa_ssid *bgscan_ssid;