[RFC 34/40] WPS: add requested device type

Jouni Malinen j
Thu Mar 17 02:29:31 PDT 2011


On Wed, Jan 05, 2011 at 08:53:30PM +0100, Johannes Berg wrote:
> When the requested device type is set, add it
> to the probe request WPS attributes.

> diff --git a/src/wps/wps.h b/src/wps/wps.h
> @@ -90,6 +91,8 @@ struct wps_device_data {
>  #define WPS_SEC_DEVICE_TYPES 5
>  	u8 sec_dev_type[WPS_SEC_DEVICE_TYPES][WPS_DEV_TYPE_LEN];
>  	u8 nb_sec_dev_types;
> +	u8 req_dev_type[MAX_REQ_DEV_TYPE_COUNT][WPS_DEV_TYPE_LEN];
> +	u8 nb_req_dev_types;
>  	u32 os_version;
>  	u8 rf_bands;

This does not make much sense to me... Requested Device Type is a
parameter for scan commands. Why would it be stored as a device data?
Shouldn't it be a parameter for scan/find commands instead?

-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list