[RFC 02/10] wpa_driver: add init and deinit P2P device functions
Arend van Spriel
arend
Mon Feb 11 03:26:34 PST 2013
On 02/11/2013 12:15 PM, Arend van Spriel wrote:
> From: David Spinadel <david.spinadel at intel.com>
>
> Add functions to handle creation and destroying P2P device interface.
>
> Signed-hostap: David Spinadel <david.spinadel at intel.com>
> ---
> src/drivers/driver.h | 17 +++++++++++++++++
> wpa_supplicant/driver_i.h | 16 ++++++++++++++++
> 2 files changed, 33 insertions(+)
>
> diff --git a/wpa_supplicant/driver_i.h b/wpa_supplicant/driver_i.h
> index 847600d..79f0641 100644
> --- a/wpa_supplicant/driver_i.h
> +++ b/wpa_supplicant/driver_i.h
> @@ -689,4 +689,20 @@ static inline int wpa_drv_wnm_oper(struct wpa_supplicant *wpa_s,
> buf_len);
> }
>
> +#ifdef CONFIG_P2P
Just looking at the other p2p wrappers these should probably not be
conditionally compiled.
> +static inline void *wpa_drv_init_p2p_dev(struct wpa_supplicant *wpa_s,
> + const char *ifname, u8 *addr)
> +{
> + if (!wpa_s->driver->init_p2p_dev)
> + return NULL;
> + return wpa_s->driver->init_p2p_dev(wpa_s->drv_priv, ifname, addr);
> +}
> +
> +static inline void wpa_drv_deinit_p2p_dev(struct wpa_supplicant *wpa_s)
> +{
> + if (wpa_s->driver->deinit_p2p_dev)
> + wpa_s->driver->deinit_p2p_dev(wpa_s->p2p_drv_priv);
> +}
> +#endif
> +
> #endif /* DRIVER_I_H */
>
More information about the Hostap
mailing list