2 * Wi-Fi Protected Setup - device attributes
3 * Copyright (c) 2008, Jouni Malinen <j@w1.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
12 * See README and COPYING for more details.
15 #ifndef WPS_DEV_ATTR_H
16 #define WPS_DEV_ATTR_H
18 struct wps_parse_attr
;
20 int wps_build_device_attrs(struct wps_device_data
*dev
, struct wpabuf
*msg
);
21 int wps_build_os_version(struct wps_device_data
*dev
, struct wpabuf
*msg
);
22 int wps_build_rf_bands(struct wps_device_data
*dev
, struct wpabuf
*msg
);
23 int wps_build_primary_dev_type(struct wps_device_data
*dev
,
25 int wps_process_device_attrs(struct wps_device_data
*dev
,
26 struct wps_parse_attr
*attr
);
27 int wps_process_os_version(struct wps_device_data
*dev
, const u8
*ver
);
28 int wps_process_rf_bands(struct wps_device_data
*dev
, const u8
*bands
);
29 void wps_device_data_dup(struct wps_device_data
*dst
,
30 const struct wps_device_data
*src
);
31 void wps_device_data_free(struct wps_device_data
*dev
);
33 #endif /* WPS_DEV_ATTR_H */