Add registerable callback for wpa_supplicant AP mode completion

This commit is contained in:
Jouni Malinen 2010-04-11 19:59:33 +03:00 committed by Jouni Malinen
parent 1c4c9c5078
commit 4b768ed0b2
2 changed files with 7 additions and 0 deletions

View file

@ -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); os_memcpy(wpa_s->bssid, wpa_s->own_addr, ETH_ALEN);
wpa_supplicant_set_state(wpa_s, WPA_COMPLETED); 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; return 0;
} }

View file

@ -424,6 +424,9 @@ struct wpa_supplicant {
#ifdef CONFIG_AP #ifdef CONFIG_AP
struct hostapd_iface *ap_iface; 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 */ #endif /* CONFIG_AP */
struct wpa_ssid *bgscan_ssid; struct wpa_ssid *bgscan_ssid;