X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=hostapd%2Fhostapd.h;h=386889edc9d4fdc2bb112b647540c3640629893d;hb=fa16028d0fcde5dea660388672f204603915a08e;hp=6c12c8e97f5f2b6362036a35de8a374f9f1c4e53;hpb=3fed6f250401459bf881292b93cb7f6a201f8abf;p=wpasupplicant diff --git a/hostapd/hostapd.h b/hostapd/hostapd.h index 6c12c8e..386889e 100644 --- a/hostapd/hostapd.h +++ b/hostapd/hostapd.h @@ -29,6 +29,11 @@ struct upnp_wps_device_sm; struct full_dynamic_vlan; #endif /* CONFIG_FULL_DYNAMIC_VLAN */ +struct hostapd_probereq_cb { + void (*cb)(void *ctx, const u8 *sa, const u8 *ie, size_t ie_len); + void *ctx; +}; + /** * struct hostapd_data - hostapd per-BSS data structure */ @@ -98,6 +103,9 @@ struct hostapd_data { unsigned int ap_pin_failures; struct upnp_wps_device_sm *wps_upnp; #endif /* CONFIG_WPS */ + + struct hostapd_probereq_cb *probereq_cb; + size_t num_probereq_cb; }; @@ -169,4 +177,9 @@ int handle_dump_state_iface(struct hostapd_iface *iface, void *ctx); int hostapd_for_each_interface(int (*cb)(struct hostapd_iface *iface, void *ctx), void *ctx); +int hostapd_register_probereq_cb(struct hostapd_data *hapd, + void (*cb)(void *ctx, const u8 *sa, + const u8 *ie, size_t ie_len), + void *ctx); + #endif /* HOSTAPD_H */