[PATCH 2/3] hostapd: set driver probe-response template

Jouni Malinen j
Sat Oct 22 06:31:35 PDT 2011


On Sat, Oct 22, 2011 at 03:08:46PM +0200, Guy Eilam wrote:
> Configure a Probe response template for drivers that support it. The
> template is updated when the beacon is updated, as they are made up
> of mostly the same elements.

So this done only when the Beacon contents is changed?

> diff --git a/src/drivers/driver.h b/src/drivers/driver.h
> @@ -1504,6 +1504,20 @@ struct wpa_driver_ops {
>  	int (*set_ap)(void *priv, struct wpa_driver_ap_params *params);
>  
>  	/**
> +	 * set_probe_resp - Set Probe Response frame template
> +	 * @priv: Private driver interface data
> +	 * @resp: Probe Response template
> +	 * @resp_len: Length of the resp buffer in octets
> +	 * Returns: 0 on success, -1 on failure
> +	 *
> +	 * This function is used to configure a Probe Response template for the
> +	 * driver in AP mode. The driver is responsible for building the full
> +	 * Probe Response frame by setting the destination address to that of
> +	 * the desired recipient.
> +	 */
> +	int (*set_probe_resp)(void *priv, const u8 *resp, size_t resp_len);

I would prefer to just extend set_ap() instead of adding new driver_ops
functions for various things that are related to AP mode configuration.
I've been trying to get rid of some of the older ones in favor of
set_ap().

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list