]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Add registerable callback for wpa_supplicant AP mode completion
authorJouni Malinen <jouni.malinen@atheros.com>
Sun, 11 Apr 2010 16:59:33 +0000 (19:59 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 11 Apr 2010 16:59:33 +0000 (19:59 +0300)
wpa_supplicant/ap.c
wpa_supplicant/wpa_supplicant_i.h

index ff07d60e0dcd4a29195210612e3f974a4702f049..fe26305afd1e94470e7b312c51758a1fda05e3c2 100644 (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);
        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;
 }
 
index d7fc884c3b38e8fc8062b6eb5d2724c962a4fff0..e6b28833fdf495d6ac6e43fbdcfb8b9d0ea2a3f9 100644 (file)
@@ -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;