2008-11-23 12:34:26 -05:00
|
|
|
/*
|
|
|
|
* Wi-Fi Protected Setup - device attributes
|
|
|
|
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 09:46:35 -05:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-11-23 12:34:26 -05:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WPS_DEV_ATTR_H
|
|
|
|
#define WPS_DEV_ATTR_H
|
|
|
|
|
|
|
|
struct wps_parse_attr;
|
|
|
|
|
2009-12-22 18:10:25 -05:00
|
|
|
int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg);
|
|
|
|
int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg);
|
|
|
|
int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg);
|
|
|
|
int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
|
2008-11-23 12:34:26 -05:00
|
|
|
int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg);
|
|
|
|
int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg);
|
2012-04-03 17:08:57 -04:00
|
|
|
int wps_build_vendor_ext_m1(struct wps_device_data *dev, struct wpabuf *msg);
|
2013-08-25 03:55:53 -04:00
|
|
|
int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg,
|
|
|
|
u8 rf_band);
|
2008-11-28 12:29:22 -05:00
|
|
|
int wps_build_primary_dev_type(struct wps_device_data *dev,
|
|
|
|
struct wpabuf *msg);
|
2011-03-17 05:09:49 -04:00
|
|
|
int wps_build_secondary_dev_type(struct wps_device_data *dev,
|
|
|
|
struct wpabuf *msg);
|
2010-07-18 17:30:24 -04:00
|
|
|
int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
|
2008-11-23 12:34:26 -05:00
|
|
|
int wps_process_device_attrs(struct wps_device_data *dev,
|
|
|
|
struct wps_parse_attr *attr);
|
|
|
|
int wps_process_os_version(struct wps_device_data *dev, const u8 *ver);
|
2008-11-29 05:59:43 -05:00
|
|
|
int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands);
|
2008-11-23 12:34:26 -05:00
|
|
|
void wps_device_data_free(struct wps_device_data *dev);
|
2011-03-19 05:44:42 -04:00
|
|
|
int wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg);
|
2011-03-19 06:57:46 -04:00
|
|
|
int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,
|
|
|
|
unsigned int num_req_dev_types,
|
|
|
|
const u8 *req_dev_types);
|
2008-11-23 12:34:26 -05:00
|
|
|
|
|
|
|
#endif /* WPS_DEV_ATTR_H */
|