Add registerable callback for wpa_supplicant AP mode completion

master
Jouni Malinen 14 years ago committed by Jouni Malinen
parent 1c4c9c5078
commit 4b768ed0b2

@ -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;
}

@ -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;

Loading…
Cancel
Save