wps_dev_attr.h revision 8d520ff1dc2da35cdca849e982051b86468016d8
1/*
2 * Wi-Fi Protected Setup - device attributes
3 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 *
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
11 *
12 * See README and COPYING for more details.
13 */
14
15#ifndef WPS_DEV_ATTR_H
16#define WPS_DEV_ATTR_H
17
18struct wps_parse_attr;
19
20int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg);
21int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg);
22int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg);
23int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
24int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg);
25int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg);
26int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg);
27int wps_build_primary_dev_type(struct wps_device_data *dev,
28			       struct wpabuf *msg);
29int wps_build_secondary_dev_type(struct wps_device_data *dev,
30				 struct wpabuf *msg);
31int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
32int wps_process_device_attrs(struct wps_device_data *dev,
33			     struct wps_parse_attr *attr);
34int wps_process_os_version(struct wps_device_data *dev, const u8 *ver);
35int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands);
36void wps_device_data_dup(struct wps_device_data *dst,
37			 const struct wps_device_data *src);
38void wps_device_data_free(struct wps_device_data *dev);
39int wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg);
40int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,
41			   unsigned int num_req_dev_types,
42			   const u8 *req_dev_types);
43
44#endif /* WPS_DEV_ATTR_H */
45