00001 /* 00002 * Wi-Fi Protected Setup - device attributes 00003 * Copyright (c) 2008, Jouni Malinen <j@w1.fi> 00004 * 00005 * This program is free software; you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License version 2 as 00007 * published by the Free Software Foundation. 00008 * 00009 * Alternatively, this software may be distributed under the terms of BSD 00010 * license. 00011 * 00012 * See README and COPYING for more details. 00013 */ 00014 00015 #ifndef WPS_DEV_ATTR_H 00016 #define WPS_DEV_ATTR_H 00017 00018 struct wps_parse_attr; 00019 00020 int wps_build_device_attrs(struct wps_device_data *dev, struct wpabuf *msg); 00021 int wps_build_os_version(struct wps_device_data *dev, struct wpabuf *msg); 00022 int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg); 00023 int wps_build_primary_dev_type(struct wps_device_data *dev, 00024 struct wpabuf *msg); 00025 int wps_process_device_attrs(struct wps_device_data *dev, 00026 struct wps_parse_attr *attr); 00027 int wps_process_os_version(struct wps_device_data *dev, const u8 *ver); 00028 int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands); 00029 void wps_device_data_dup(struct wps_device_data *dst, 00030 const struct wps_device_data *src); 00031 void wps_device_data_free(struct wps_device_data *dev); 00032 00033 #endif /* WPS_DEV_ATTR_H */