• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Wi-Fi Protected Setup - device attributes
3  * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
4  *
5  * This software may be distributed under the terms of the BSD license.
6  * See README for more details.
7  */
8 
9 #ifndef WPS_DEV_ATTR_H
10 #define WPS_DEV_ATTR_H
11 
12 struct wps_parse_attr;
13 
14 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg);
15 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg);
16 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg);
17 int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
18 int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg);
19 int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg);
20 int wps_build_vendor_ext_m1(struct wps_device_data *dev, struct wpabuf *msg);
21 int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg,
22 		       u8 rf_band);
23 int wps_build_primary_dev_type(struct wps_device_data *dev,
24 			       struct wpabuf *msg);
25 int wps_build_secondary_dev_type(struct wps_device_data *dev,
26 				 struct wpabuf *msg);
27 int wps_build_dev_name(struct wps_device_data *dev, struct wpabuf *msg);
28 int wps_process_device_attrs(struct wps_device_data *dev,
29 			     struct wps_parse_attr *attr);
30 int wps_process_os_version(struct wps_device_data *dev, const u8 *ver);
31 int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands);
32 void wps_device_data_dup(struct wps_device_data *dst,
33 			 const struct wps_device_data *src);
34 void wps_device_data_free(struct wps_device_data *dev);
35 int wps_build_vendor_ext(struct wps_device_data *dev, struct wpabuf *msg);
36 int wps_build_req_dev_type(struct wps_device_data *dev, struct wpabuf *msg,
37 			   unsigned int num_req_dev_types,
38 			   const u8 *req_dev_types);
39 
40 #endif /* WPS_DEV_ATTR_H */
41