aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/config.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2008-12-13 15:20:46 (GMT)
committerJouni Malinen <j@w1.fi>2008-12-13 15:20:46 (GMT)
commit3c0b7aa4fe50f90a3a200890e0887cf436c70409 (patch)
treeb86a8fb928f88ca38af452f964d619223a2eda52 /wpa_supplicant/config.h
parent75fc67e97bb9b8abc6436d7fa29b8e8240367da4 (diff)
downloadhostap-3c0b7aa4fe50f90a3a200890e0887cf436c70409.zip
hostap-3c0b7aa4fe50f90a3a200890e0887cf436c70409.tar.gz
hostap-3c0b7aa4fe50f90a3a200890e0887cf436c70409.tar.bz2
Added configuration of WPS device parameters for wpa_supplicant
Diffstat (limited to 'wpa_supplicant/config.h')
-rw-r--r--wpa_supplicant/config.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/wpa_supplicant/config.h b/wpa_supplicant/config.h
index 0cea72f..9cb0066 100644
--- a/wpa_supplicant/config.h
+++ b/wpa_supplicant/config.h
@@ -254,6 +254,58 @@ struct wpa_config {
u8 uuid[16];
/**
+ * device_name - Device Name (WPS)
+ * User-friendly description of device; up to 32 octets encoded in
+ * UTF-8
+ */
+ char *device_name;
+
+ /**
+ * manufacturer - Manufacturer (WPS)
+ * The manufacturer of the device (up to 64 ASCII characters)
+ */
+ char *manufacturer;
+
+ /**
+ * model_name - Model Name (WPS)
+ * Model of the device (up to 32 ASCII characters)
+ */
+ char *model_name;
+
+ /**
+ * model_number - Model Number (WPS)
+ * Additional device description (up to 32 ASCII characters)
+ */
+ char *model_number;
+
+ /**
+ * serial_number - Serial Number (WPS)
+ * Serial number of the device (up to 32 characters)
+ */
+ char *serial_number;
+
+ /**
+ * device_type - Primary Device Type (WPS)
+ * Used format: <categ>-<OUI>-<subcateg>
+ * categ = Category as an integer value
+ * OUI = OUI and type octet as a 4-octet hex-encoded value;
+ * 0050F204 for default WPS OUI
+ * subcateg = OUI-specific Sub Category as an integer value
+ * Examples:
+ * 1-0050F204-1 (Computer / PC)
+ * 1-0050F204-2 (Computer / Server)
+ * 5-0050F204-1 (Storage / NAS)
+ * 6-0050F204-1 (Network Infrastructure / AP)
+ */
+ char *device_type;
+
+ /**
+ * os_version - OS Version (WPS)
+ * 4-octet operating system version number
+ */
+ u8 os_version[4];
+
+ /**
* country - Country code
*
* This is the ISO/IEC alpha2 country code for which we are operating