summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorTomasz Bursztyka <tomasz.bursztyka@nokia.com>2011-01-26 10:09:39 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2011-01-27 12:15:55 +0100
commit4d6f31a907ea4d2f50b17baa420b6b4962fcfac1 (patch)
tree37bf7b9ffe913a04ea87e40e57bd2d334dabde24 /doc
parentb299ef6730573182a11361f2ddf50558ee2ba971 (diff)
downloadconnman-4d6f31a907ea4d2f50b17baa420b6b4962fcfac1.tar.gz
connman-4d6f31a907ea4d2f50b17baa420b6b4962fcfac1.tar.bz2
connman-4d6f31a907ea4d2f50b17baa420b6b4962fcfac1.zip
doc: WPS method input documentation added to agent-api.txt
Diffstat (limited to 'doc')
-rw-r--r--doc/agent-api.txt25
1 files changed, 24 insertions, 1 deletions
diff --git a/doc/agent-api.txt b/doc/agent-api.txt
index b4b8a39d..98499a39 100644
--- a/doc/agent-api.txt
+++ b/doc/agent-api.txt
@@ -66,10 +66,19 @@ Fields string Name
The passphrase for a network. For example a WEP
key or a PSK passphrase.
+ string WPS
+
+ This field requests the use of WPS to get associated.
+ This is an alternate choice against Passphrase when
+ requested service supports WPS. The reply can contain
+ either empty pin, if user wants to use push-button
+ method, or a pin code if user wants to use the pin
+ method.
+
Arguments string Type
Contains the type of a field. For example "psk",
- "wep", "ssid" or plain "string".
+ "wep", "ssid", "wpspin" or plain "string".
string Requirement
@@ -109,3 +118,17 @@ Examples Requesting a passphrase for WPA2 network
}
}
==> { "Name" : "My hidden network" }
+
+ Requesting a passphrase for a WPA2 network with WPS alternative:
+
+ RequestInput("/service3",
+ { "Passphrase" : { "Type" : "psk",
+ "Requirement" : "mandatory",
+ "Alternates" : [ "WPS" ]
+ },
+ "WPS" : { "Type" : "wpspin",
+ "Requirement" : "alternate"
+ }
+ }
+
+ ==> { "WPS" : "123456" }