2008-11-23 18:34:26 +01:00
|
|
|
/*
|
|
|
|
* Wi-Fi Protected Setup - device attributes
|
|
|
|
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*
|
|
|
|
* Alternatively, this software may be distributed under the terms of BSD
|
|
|
|
* license.
|
|
|
|
*
|
|
|
|
* See README and COPYING for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef WPS_DEV_ATTR_H
|
|
|
|
#define WPS_DEV_ATTR_H
|
|
|
|
|
|
|
|
struct wps_parse_attr;
|
|
|
|
|
|
|
|
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);
|
2008-11-29 11:59:43 +01:00
|
|
|
int wps_build_rf_bands(struct wps_device_data *dev, struct wpabuf *msg);
|
2008-11-28 18:29:22 +01:00
|
|
|
int wps_build_primary_dev_type(struct wps_device_data *dev,
|
|
|
|
struct wpabuf *msg);
|
2008-11-23 18:34:26 +01: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 11:59:43 +01:00
|
|
|
int wps_process_rf_bands(struct wps_device_data *dev, const u8 *bands);
|
2008-11-23 18:34:26 +01:00
|
|
|
void wps_device_data_dup(struct wps_device_data *dst,
|
|
|
|
const struct wps_device_data *src);
|
|
|
|
void wps_device_data_free(struct wps_device_data *dev);
|
|
|
|
|
|
|
|
#endif /* WPS_DEV_ATTR_H */
|