e6c70f9750114276762cd0a087847757bcd8e0b6
[mech_eap.git] / doc / dbus.doxygen
1 /**
2 \page dbus wpa_supplicant D-Bus API
3
4 This section documents the wpa_supplicant D-Bus API. Every D-Bus
5 interface implemented by wpa_supplicant is described here including
6 their methods, signals, and properties with arguments, returned
7 values, and possible errors.
8
9 Interfaces:
10 - \ref dbus_main
11 - \ref dbus_interface
12 - \ref dbus_wps
13 - \ref dbus_p2pdevice
14 - \ref dbus_bss
15 - \ref dbus_network
16 - \ref dbus_peer
17 - \ref dbus_group
18 - \ref dbus_persistent_group
19
20
21 \section dbus_main fi.w1.wpa_supplicant1
22
23 Interface implemented by the main wpa_supplicant D-Bus object
24 registered in the bus with fi.w1.wpa_supplicant1 name.
25
26 \subsection dbus_main_methods Methods
27
28 <ul>
29       <li>
30         <h3>CreateInterface ( a{sv} : args ) --> o : interface</h3>
31         <p>Registers a wireless interface in wpa_supplicant.</p>
32         <h4>Arguments</h4>
33         <dl>
34           <dt>a{sv} : args</dt>
35           <dd>
36             A dictionary with arguments used to add the interface to wpa_supplicant. The dictionary may contain the following entries:
37             <table>
38               <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
39               <tr><td>Ifname</td><td>s</td><td>Name of the network interface to control, e.g., wlan0</td><td>Yes</td>
40               <tr><td>BridgeIfname</td><td>s</td><td>Name of the bridge interface to control, e.g., br0</td><td>No</td>
41               <tr><td>Driver</td><td>s</td><td>Driver name which the interface uses, e.g., nl80211</td><td>No</td>
42               <tr><td>ConfigFile</td><td>s</td><td>Configuration file path</td><td>No</td>
43             </table>
44           </dd>
45         </dl>
46         <h4>Returns</h4>
47         <dl>
48           <dt>o : interface</dt>
49           <dd>A D-Bus path to object representing created interface</dd>
50         </dl>
51         <h4>Possible errors</h4>
52         <dl>
53           <dt>fi.w1.wpa_supplicant1.InterfaceExists</dt>
54           <dd>wpa_supplicant already controls this interface.</dd>
55           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
56           <dd>Creating interface failed for an unknown reason.</dd>
57           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
58           <dd>Invalid entries were found in the passed argument.</dd>
59         </dl>
60       </li>
61
62       <li>
63         <h3>RemoveInterface ( o : interface ) --> nothing</h3>
64         <p>Deregisters a wireless interface from wpa_supplicant.</p>
65         <h4>Arguments</h4>
66         <dl>
67           <dt>o : interface</dt>
68           <dd>A D-Bus path to an object representing an interface to remove returned by CreateInterface</dd>
69         </dl>
70         <h4>Possible errors</h4>
71         <dl>
72           <dt>fi.w1.wpa_supplicant1.InterfaceUnknown</dt>
73           <dd>Object pointed by the path doesn't exist or doesn't represent an interface.</dd>
74           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
75           <dd>Removing interface failed for an unknown reason.</dd>
76         </dl>
77       </li>
78
79       <li>
80         <h3>GetInterface ( s : ifname ) --> o : interface</h3>
81         <p>Returns a D-Bus path to an object related to an interface which wpa_supplicant already controls.</p>
82         <h4>Arguments</h4>
83         <dl>
84           <dt>s : ifname</dt>
85           <dd>Name of the network interface, e.g., wlan0</dd>
86         </dl>
87         <h4>Returns</h4>
88         <dl>
89           <dt>o : interface</dt>
90           <dd>A D-Bus path to an object representing an interface</dd>
91         </dl>
92         <h4>Possible errors</h4>
93         <dl>
94           <dt>fi.w1.wpa_supplicant1.InterfaceUnknown</dt>
95           <dd>An interface with the passed name in not controlled by wpa_supplicant.</dd>
96           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
97           <dd>Getting an interface object path failed for an unknown reason.</dd>
98         </dl>
99       </li>
100
101       <li>
102         <h3>ExpectDisconnect ( ) --> nothing</h3>
103         <p>Notify wpa_supplicant of an externally triggered disconnection, e.g., due to system suspend.</p>
104       </li>
105     </ul>
106
107 \subsection dbus_main_properties Properties
108
109 <ul>
110       <li>
111         <h3>DebugLevel - s - (read/write)</h3>
112         <p>Global wpa_supplicant debugging level. Possible values are
113         "msgdump" (verbose debugging), "debug" (debugging),
114         "info" (informative), "warning" (warnings), and "error" (errors).</p>
115       </li>
116
117       <li>
118         <h3>DebugTimestamp - b - (read/write)</h3>
119         <p>Global wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
120       </li>
121
122       <li>
123         <h3>DebugShowKeys - b - (read/write)</h3>
124         <p>Global wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
125       </li>
126
127       <li>
128         <h3>Interfaces - ao - (read)</h3>
129         <p>An array with paths to D-Bus objects representing controlled interfaces each.</p>
130       </li>
131
132       <li>
133         <h3>EapMethods - as - (read)</h3>
134         <p>An array with supported EAP methods names.</p>
135       </li>
136
137       <li>
138         <h3>Capabilities - as - (read)</h3>
139         <p>An array with supported capabilities (e.g., "ap", "ibss-rsn", "p2p", "interworking").</p>
140       </li>
141
142       <li>
143         <h3>WFDIEs - ay - (read/write)</h3>
144         <p>Wi-Fi Display subelements.</p>
145       </li>
146     </ul>
147
148 \subsection dbus_main_signals Signals
149
150 <ul>
151       <li>
152         <h3>InterfaceAdded ( o : interface, a{sv} : properties )</h3>
153         <p>A new interface was added to wpa_supplicant.</p>
154         <h4>Arguments</h4>
155         <dl>
156           <dt>o : interface</dt>
157           <dd>A D-Bus path to an object representing the added interface</dd>
158         </dl>
159         <dl>
160           <dt>a{sv} : properties</dt>
161           <dd>A dictionary containing properties of added interface.</dd>
162         </dl>
163       </li>
164
165       <li>
166         <h3>InterfaceRemoved ( o : interface )</h3>
167         <p>An interface was removed from wpa_supplicant.</p>
168         <h4>Arguments</h4>
169         <dl>
170           <dt>o : interface</dt>
171           <dd>A D-Bus path to an object representing the removed interface</dd>
172         </dl>
173       </li>
174
175       <li>
176         <h3>PropertiesChanged ( a{sv} : properties )</h3>
177         <p>Some properties have changed.</p>
178         <h4>Arguments</h4>
179         <dl>
180           <dt>a{sv} : properties</dt>
181           <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "DebugParams"</dd>
182         </dl>
183       </li>
184     </ul>
185
186
187 \section dbus_interface fi.w1.wpa_supplicant1.Interface
188
189 Interface implemented by objects related to network interface added to
190 wpa_supplicant, i.e., returned by
191 fi.w1.wpa_supplicant1.CreateInterface.
192
193 \subsection dbus_interface_methods Methods
194
195 <ul>
196       <li>
197         <h3>Scan ( a{sv} : args ) --> nothing</h3>
198         <p>Triggers a scan.</p>
199         <h4>Arguments</h4>
200         <dl>
201           <dt>a{sv} : args</dt>
202           <dd>
203             A dictionary with arguments describing scan type:
204             <table>
205               <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
206               <tr><td>Type</td><td>s</td><td>Type of the scan. Possible values: "active", "passive"</td><td>Yes</td>
207               <tr><td>SSIDs</td><td>aay</td><td>Array of SSIDs to scan for (applies only if scan type is active)</td><td>No</td>
208               <tr><td>IEs</td><td>aay</td><td>Information elements to used in active scan (applies only if scan type is active)</td><td>No</td>
209               <tr><td>Channels</td><td>a(uu)</td><td>Array of frequencies to scan in form of (center, width) in MHz.</td><td>No</td>
210               <tr><td>AllowRoam</td><td>b</td><td>TRUE (or absent) to allow a roaming decision based on the results of this scan, FALSE to prevent a roaming decision.</td><td>No</td>
211             </table>
212           </dd>
213         </dl>
214         <h4>Possible errors</h4>
215         <dl>
216           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
217           <dd>Invalid entries were found in the passed argument.</dd>
218         </dl>
219       </li>
220
221       <li>
222         <h3>Disconnect ( ) --> nothing</h3>
223         <p>Disassociates the interface from current network.</p>
224         <h4>Possible errors</h4>
225         <dl>
226           <dt>fi.w1.wpa_supplicant1.NotConnected</dt>
227           <dd>Interface is not connected to any network.</dd>
228         </dl>
229       </li>
230
231       <li>
232         <h3>AddNetwork ( a{sv} : args ) --> o : network</h3>
233         <p>Adds a new network to the interface.</p>
234         <h4>Arguments</h4>
235         <dl>
236           <dt>a{sv} : args</dt>
237           <dd>A dictionary with network configuration. Dictionary entries are equivalent to entries in the "network" block in wpa_supplicant configuration file. Entry values should be appropriate type to the entry, e.g., an entry with key "frequency" should have value type int.</dd>
238         </dl>
239         <h4>Returns</h4>
240         <dl>
241           <dt>o : network</dt>
242           <dd>A D-Bus path to an object representing a configured network</dd>
243         </dl>
244         <h4>Possible errors</h4>
245         <dl>
246           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
247           <dd>Invalid entries were found in the passed argument.</dd>
248           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
249           <dd>Adding network failed for an unknown reason.</dd>
250         </dl>
251       </li>
252
253       <li>
254         <h3>RemoveNetwork ( o : network ) --> nothing</h3>
255         <p>Removes a configured network from the interface.</p>
256         <h4>Arguments</h4>
257         <dl>
258           <dt>o : network</dt>
259           <dd>A D-Bus path to an object representing a configured network returned by fi.w1.wpa_supplicant1.Interface.AddNetwork</dd>
260         </dl>
261         <h4>Possible errors</h4>
262         <dl>
263           <dt>fi.w1.wpa_supplicant1.NetworkUnknown</dt>
264           <dd>A passed path doesn't point to any network object.</dd>
265           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
266           <dd>A passed path doesn't point to any network object.</dd>
267           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
268           <dd>Removing network failed for an unknown reason.</dd>
269         </dl>
270       </li>
271
272       <li>
273         <h3>RemoveAllNetworks ( ) --> nothing</h3>
274         <p>Remove all configured networks from the interface.</p>
275       </li>
276
277       <li>
278         <h3>SelectNetwork ( o : network ) --> nothing</h3>
279         <p>Attempt association with a configured network.</p>
280         <h4>Arguments</h4>
281         <dl>
282           <dt>o : network</dt>
283           <dd>A D-Bus path to an object representing a configured network returned by fi.w1.wpa_supplicant1.Interface.AddNetwork</dd>
284         </dl>
285         <h4>Possible errors</h4>
286         <dl>
287           <dt>fi.w1.wpa_supplicant1.NetworkUnknown</dt>
288           <dd>A passed path doesn't point to any network object.</dd>
289           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
290           <dd>A passed path doesn't point to any network object.</dd>
291         </dl>
292       </li>
293
294       <li>
295         <h3>Reassociate ( ) --> nothing</h3>
296         <p>Attempt reassociation.</p>
297         <h4>Possible errors</h4>
298         <dl>
299           <dt>fi.w1.wpa_supplicant1.InterfaceDisabled</dt>
300           <dd>The interface is disabled.</dd>
301         </dl>
302       </li>
303
304       <li>
305         <h3>Reattach ( ) --> nothing</h3>
306         <p>Attempt reassociation back to the current BSS.</p>
307         <h4>Possible errors</h4>
308         <dl>
309           <dt>fi.w1.wpa_supplicant1.NotConnected</dt>
310           <dd>Interface is not connected to any network.</dd>
311         </dl>
312       </li>
313
314       <li>
315         <h3>Reconnect ( ) --> nothing</h3>
316         <p>Attempt reconnection and connect if in disconnected state.</p>
317         <h4>Possible errors</h4>
318         <dl>
319           <dt>fi.w1.wpa_supplicant1.InterfaceDisabled</dt>
320           <dd>The interface is disabled.</dd>
321         </dl>
322       </li>
323
324       <li>
325         <h3>AddBlob ( s : name, ay : data ) --> nothing</h3>
326         <p>Adds a blob to the interface.</p>
327         <h4>Arguments</h4>
328         <dl>
329           <dt>s : name</dt>
330           <dd>A name of a blob</dd>
331           <dt>ay : data</dt>
332           <dd>A blob data</dd>
333         </dl>
334         <h4>Possible errors</h4>
335         <dl>
336           <dt>fi.w1.wpa_supplicant1.BlobExists</dt>
337           <dd>A blob with the specified name already exists.</dd>
338         </dl>
339       </li>
340
341       <li>
342         <h3>RemoveBlob ( s : name ) --> nothing</h3>
343         <p>Removes the blob from the interface.</p>
344         <h4>Arguments</h4>
345         <dl>
346           <dt>s : name</dt>
347           <dd>A name of the blob to remove</dd>
348         </dl>
349         <h4>Possible errors</h4>
350         <dl>
351           <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
352           <dd>A blob with the specified name doesn't exist.</dd>
353         </dl>
354       </li>
355
356       <li>
357         <h3>GetBlob ( s : name ) --> ay : data</h3>
358         <p>Returns the blob data of a previously added blob.</p>
359         <h4>Arguments</h4>
360         <dl>
361           <dt>s : name</dt>
362           <dd>A name of the blob</dd>
363         </dl>
364         <h4>Returns</h4>
365         <dl>
366           <dt>ay : data</dt>
367           <dd>A blob data</dd>
368         </dl>
369         <h4>Possible errors</h4>
370         <dl>
371           <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
372           <dd>A blob with the specified name doesn't exist.</dd>
373         </dl>
374       </li>
375       <li>
376         <h3>AutoScan ( s : arg ) --> nothing</h3>
377         <p>Set autoscan parameters for the interface.</p>
378         <h4>Arguments</h4>
379         <dl>
380           <dt>s : arg</dt>
381           <dd>Autoscan parameter line or empty to unset autoscan.</dd>
382         </dl>
383         <h4>Possible errors</h4>
384         <dl>
385           <dt>fi.w1.wpa_supplicant1.NoMemory</dt>
386           <dd>Needed memory was not possible to get allocated.</dd>
387           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
388           <dd>Invalid entries were found in the passed argument.</dd>
389         </dl>
390       </li>
391       <li>
392         <h3>TDLSDiscover ( s : peer_address ) --> nothing</h3>
393         <p>Initiate a TDLS discovery for a peer.</p>
394         <h4>Arguments</h4>
395         <dl>
396           <dt>s : peer_address</dt>
397           <dd>MAC address for the peer to perform TDLS discovery.</dd>
398         </dl>
399         <h4>Possible errors</h4>
400         <dl>
401           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
402           <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
403           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
404           <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
405         </dl>
406       </li>
407       <li>
408         <h3>TDLSSetup ( s : peer_address ) --> nothing</h3>
409         <p>Setup a TDLS session for a peer.</p>
410         <h4>Arguments</h4>
411         <dl>
412           <dt>s : peer_address</dt>
413           <dd>MAC address for the peer to perform TDLS setup.</dd>
414         </dl>
415         <h4>Possible errors</h4>
416         <dl>
417           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
418           <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
419           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
420           <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
421         </dl>
422       </li>
423       <li>
424         <h3>TDLSStatus ( s : peer_address ) --> s</h3>
425         <p>Return TDLS status with respect to a peer.</p>
426         <h4>Arguments</h4>
427         <dl>
428           <dt>s : peer_address</dt>
429           <dd>MAC address for the peer for which status is requested.</dd>
430         </dl>
431         <h4>Returns</h4>
432         <dl>
433           <dt>s : status</dt>
434           <dd>Current status of the TDLS link with the selected peer.</dd>
435         </dl>
436         <h4>Possible errors</h4>
437         <dl>
438           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
439           <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
440         </dl>
441       </li>
442       <li>
443         <h3>TDLSTeardown ( s : peer_address ) --> nothing</h3>
444         <p>Tear down a TDLS session with a peer.</p>
445         <h4>Arguments</h4>
446         <dl>
447           <dt>s : peer_address</dt>
448           <dd>MAC address for the peer to tear down TDLS connectivity with.</dd>
449         </dl>
450         <h4>Possible errors</h4>
451         <dl>
452           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
453           <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
454           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
455           <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
456         </dl>
457       </li>
458       <li>
459         <h3>VendorElemAdd ( i: frame_id, ay: ielems ) --> nothing</h3>
460         <p>Add Vendor Elements to corresponding frame ID.</p>
461         <h4>Arguments</h4>
462         <dl>
463           <dt>i : frame_id</dt>
464           <dd>Frame ID for which Vendor specific IE is to be added.</dd>
465           <dt>ay : ielems</dt>
466           <dd>Information Element(s).</dd>
467         </dl>
468         <h4>Possible errors</h4>
469         <dl>
470           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
471           <dd>The "ielems" argument is not a properly formatted or size mismatch.</dd>
472           <dt>fi.w1.wpa_supplicant1.NoMemory</dt>
473           <dd>Needed memory was not possible to get allocated.</dd>
474         </dl>
475       </li>
476       <li>
477         <h3>VendorElemGet ( i: frame_id ) --> ay: ielems</h3>
478         <p>Get Vendor Elements of corresponding frame ID.</p>
479         <h4>Arguments</h4>
480         <dl>
481           <dt>i : frame_id</dt>
482           <dd>Frame ID for which Vendor specific IE is being queried.</dd>
483           <dt>ay : ielems</dt>
484           <dd>Information Element(s).</dd>
485         </dl>
486         <h4>Possible errors</h4>
487         <dl>
488           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
489           <dd>The "frame_id" argument is not valid.</dd>
490         </dl>
491       </li>
492       <li>
493         <h3>VendorElemRem ( i: frame_id, ay: ielems ) --> nothing</h3>
494         <p>Remove Vendor Elements of corresponding frame ID.</p>
495         <h4>Arguments</h4>
496         <dl>
497           <dt>i : frame_id</dt>
498           <dd>Frame ID for which Vendor specific IE is to be removed.</dd>
499           <dt>ay : ielems</dt>
500           <dd>Information Element(s) OR * to remove all.</dd>
501         </dl>
502         <h4>Possible errors</h4>
503         <dl>
504           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
505           <dd>The "ielems" argument is not a properly formatted or size mismatch.</dd>
506           <dt>fi.w1.wpa_supplicant1.NoMemory</dt>
507           <dd>Needed memory was not possible to get allocated.</dd>
508         </dl>
509       </li>
510       <li>
511         <h3>SaveConfig ( ) --> nothing</h3>
512         <p>Save configuration to the configuration file.</p>
513       </li>
514       <li>
515         <h3>EAPLogoff ( ) --> nothing</h3>
516         <p>IEEE 802.1X EAPOL state machine logoff.</p>
517       </li>
518       <li>
519         <h3>EAPLogon ( ) --> nothing</h3>
520         <p>IEEE 802.1X EAPOL state machine logon.</p>
521       </li>
522
523       <li>
524         <h3>NetworkReply ( o : network, s : field, s : value ) --> nothing</h3>
525         <p>Provide parameter requested by NetworkRequest().</p>
526         <h4>Arguments</h4>
527         <dl>
528           <dt>o : network</dt>
529           <dd>A D-Bus path to an object representing the network (copied from NetworkRequest()).</dd>
530           <dt>s : field</dt>
531           <dd>Requested information (copied from NetworkRequest()).</dd>
532           <dt>s : value</dt>
533           <dd>The requested information (e.g., password for EAP authentication).</dd>
534         </dl>
535         <h4>Possible errors</h4>
536         <dl>
537           <dt>fi.w1.wpa_supplicant1.NetworkUnknown</dt>
538           <dd>A passed path doesn't point to any network object.</dd>
539           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
540           <dd>A passed path doesn't point to any network object.</dd>
541           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
542           <dd>IEEE 802.1X support was not included in the build.</dd>
543         </dl>
544       </li>
545
546       <li>
547         <h3>SetPKCS11EngineAndModulePath ( s : pkcs11_engine_path, s : pkcs11_module_path ) --> nothing</h3>
548         <p>Set PKCS #11 engine and module path.</p>
549         <h4>Arguments</h4>
550         <dl>
551           <dt>s : pkcs11_engine_path</dt>
552           <dd>PKCS #11 engine path.</dd>
553           <dt>s : pkcs11_module_path</dt>
554           <dd>PKCS #11 module path.</dd>
555         </dl>
556         <h4>Possible errors</h4>
557         <dl>
558           <dt>org.freedesktop.DBus.Error.Failed.InvalidArgs</dt>
559           <dd>Invalid PKCS #11 engine or module path.</dd>
560           <dt>org.freedesktop.DBus.Error.Failed</dt>
561           <dd>Reinit of the EAPOL state machine with the new PKCS #11 engine and module path failed.</dd>
562         </dl>
563       </li>
564       <li>
565         <h3>SignalPoll ( ) --> a{sv} : properties</h3>
566         <p>Fetch signal properties for the current connection.</p>
567         <h4>Returns</h4>
568         <dl>
569           <dt>a{sv} : properties</dt>
570           <dd>
571             <table>
572               <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
573               <tr><td>linkspeed</td><td>i</td><td>Link speed (Mbps)</td><td>No</td>
574               <tr><td>noise</td><td>i</td><td>Noise (dBm)</td><td>No</td>
575               <tr><td>width</td><td>s</td><td>Channel width</td><td>No</td>
576               <tr><td>frequency</td><td>u</td><td>Frequency (MHz)</td><td>No</td>
577               <tr><td>rssi</td><td>i</td><td>RSSI (dBm)</td><td>No</td>
578               <tr><td>avg-rssi</td><td>i</td><td>Average RSSI (dBm)</td><td>No</td>
579               <tr><td>center-frq1</td><td>i</td><td>VHT segment 1 frequency (MHz)</td><td>No</td>
580               <tr><td>center-frq2</td><td>i</td><td>VHT segment 2 frequency (MHz)</td><td>No</td>
581             </table>
582           </dd>
583         </dl>
584       </li>
585       <li>
586         <h3>FlushBSS ( u : age ) --> nothing</h3>
587         <p>Flush BSS entries from the cache.</p>
588         <h4>Arguments</h4>
589         <dl>
590           <dt>u : age</dt>
591           <dd>Maximum age in seconds for BSS entries to keep in cache (0 = remove all entries).</dd>
592         </dl>
593       </li>
594
595       <li>
596         <h3>SubscribeProbeReq ( ) --> nothing</h3>
597         <p>Subscribe to receive Probe Request events. This is needed in addition to registering a signal handler for the ProbeRequest signal to avoid flooding D-Bus with all Probe Request indications when no application is interested in them.</p>
598         <h4>Possible errors</h4>
599         <dl>
600           <dt>fi.w1.wpa_supplicant1.SubscriptionInUse</dt>
601           <dd>Another application is already subscribed.</dd>
602           <dt>fi.w1.wpa_supplicant1.NoMemory</dt>
603           <dd>Needed memory was not possible to get allocated.</dd>
604         </dl>
605       </li>
606
607       <li>
608         <h3>UnsubscribeProbeReq ( ) --> nothing</h3>
609         <p>Unsubscribe from receiving Probe Request events.</p>
610         <h4>Possible errors</h4>
611         <dl>
612           <dt>fi.w1.wpa_supplicant1.NoSubscription</dt>
613           <dd>No subscription in place.</dd>
614           <dt>fi.w1.wpa_supplicant1.SubscriptionNotYou</dt>
615           <dd>Subscription in place, but for another process.</dd>
616         </dl>
617       </li>
618     </ul>
619
620 \subsection dbus_interface_properties Properties
621
622 <ul>
623       <li>
624         <h3>Capabilities - a{sv} - (read)</h3>
625         <p>Capabilities of the interface. Dictionary contains following entries:</p>
626         <table>
627           <tr><th>Key</th><th>Value type</th><th>Description</th>
628           <tr><td>Pairwise</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "none"</td>
629           <tr><td>Group</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "wep104", "wep40"</td>
630           <tr><td>KeyMgmt</td><td>as</td><td>Possible array elements: "wpa-psk", "wpa-ft-psk", "wpa-psk-sha256", "wpa-eap", "wpa-ft-eap", "wpa-eap-sha256", "ieee8021x", "wpa-none", "wps", "none"</td>
631           <tr><td>Protocol</td><td>as</td><td>Possible array elements: "rsn", "wpa"</td>
632           <tr><td>AuthAlg</td><td>as</td><td>Possible array elements: "open", "shared", "leap"</td>
633           <tr><td>Scan</td><td>as</td><td>Possible array elements: "active", "passive", "ssid"</td>
634           <tr><td>Modes</td><td>as</td><td>Possible array elements: "infrastructure", "ad-hoc", "ap"</td>
635         </table>
636       </li>
637
638       <li>
639         <h3>State - s - (read)</h3>
640         <p>A state of the interface. Possible values are: return "disconnected", "inactive", "scanning", "authenticating", "associating", "associated", "4way_handshake", "group_handshake", "completed","unknown".</p>
641       </li>
642
643       <li>
644         <h3>Scanning - b - (read)</h3>
645         <p>Determines if the interface is already scanning or not</p>
646       </li>
647
648       <li>
649         <h3>ApScan - u - (read/write)</h3>
650         <p>Identical to ap_scan entry in wpa_supplicant configuration file. Possible values are 0, 1 or 2.</p>
651       </li>
652
653       <li>
654         <h3>BSSExpireAge - u - (read/write)</h3>
655         <p>Identical to bss_expiration_age entry in wpa_supplicant configuration file.</p>
656       </li>
657
658       <li>
659         <h3>BSSExpireCount - u - (read/write)</h3>
660         <p>Identical to bss_expiration_scan_count entry in wpa_supplicant configuration file.</p>
661       </li>
662
663       <li>
664         <h3>Country - s - (read/write)</h3>
665         <p>Identical to country entry in wpa_supplicant configuration file.</p>
666       </li>
667
668       <li>
669         <h3>Ifname - s - (read)</h3>
670         <p>Name of network interface controlled by the interface, e.g., wlan0.</p>
671       </li>
672
673       <li>
674         <h3>BridgeIfname - s - (read)</h3>
675         <p>Name of bridge network interface controlled by the interface, e.g., br0.</p>
676       </li>
677
678       <li>
679         <h3>Driver - s - (read)</h3>
680         <p>Name of driver used by the interface, e.g., nl80211.</p>
681       </li>
682
683       <li>
684         <h3>CurrentBSS - o - (read)</h3>
685         <p>Path to D-Bus object representing BSS which wpa_supplicant is associated with, or "/" if is not associated at all.</p>
686       </li>
687
688       <li>
689         <h3>CurrentNetwork - o - (read)</h3>
690         <p>Path to D-Bus object representing configured network which wpa_supplicant uses at the moment, or "/" if doesn't use any.</p>
691       </li>
692
693       <li>
694         <h3>CurrentAuthMode - s - (read)</h3>
695         <p>Current authentication type.</p>
696       </li>
697
698       <li>
699         <h3>Blobs - as - (read)</h3>
700         <p>List of blobs names added to the Interface.</p>
701       </li>
702
703       <li>
704         <h3>BSSs - ao - (read)</h3>
705         <p>List of D-Bus objects paths representing BSSs known to the interface, i.e., scan results.</p>
706       </li>
707
708       <li>
709         <h3>Networks - ao - (read)</h3>
710         <p>List of D-Bus objects paths representing configured networks.</p>
711       </li>
712
713       <li>
714         <h3>FastReauth - b - (read/write)</h3>
715         <p>Identical to fast_reauth entry in wpa_supplicant configuration file.</p>
716       </li>
717
718       <li>
719         <h3>ScanInterval - i - (read/write)</h3>
720         <p>Time (in seconds) between scans for a suitable AP. Must be >= 0.</p>
721       </li>
722
723       <li>
724         <h3>PKCS11EnginePath - s - (read)</h3>
725         <p>PKCS #11 engine path.</p>
726       </li>
727
728       <li>
729         <h3>PKCS11ModulePath - s - (read)</h3>
730         <p>PKCS #11 module path.</p>
731       </li>
732
733       <li>
734         <h3>DisconnectReason - i - (read)</h3>
735         <p>The most recent IEEE 802.11 reason code for disconnect. Negative value indicates locally generated disconnection.</p>
736       </li>
737
738       <li>
739         <h3>AssocStatusCode - i - (read)</h3>
740         <p>The most recent IEEE 802.11 status code for association rejection.</p>
741       </li>
742
743       <li>
744         <h3>EapolVersion - s - (read/write)</h3>
745         <p>IEEE 802.1X/EAPOL version number</p>
746       </li>
747
748       <li>
749         <h3>Bgscan - s - (read/write)</h3>
750         <p>Background scan and roaming parameters or an empty string if none</p>
751       </li>
752
753       <li>
754         <h3>DisableScanOffload - s - (read/write)</h3>
755         <p>Disable automatic offloading of scan requests</p>
756       </li>
757
758       <li>
759         <h3>OpenscEnginePath - s - (read/write)</h3>
760         <p>Path to the OpenSSL engine for opensc</p>
761       </li>
762
763       <li>
764         <h3>OpensslCiphers - s - (read/write)</h3>
765         <p>OpenSSL cipher string</p>
766       </li>
767
768       <li>
769         <h3>PcscReader - s - (read/write)</h3>
770         <p>PC/SC reader name prefix</p>
771       </li>
772
773       <li>
774         <h3>PcscPin - s - (read/write)</h3>
775         <p>PIN for USIM, GSM SIM, and smartcards</p>
776       </li>
777
778       <li>
779         <h3>ExternalSim - s - (read/write)</h3>
780         <p>Use external processing for SIM/USIM operations</p>
781       </li>
782
783       <li>
784         <h3>DriverParam - s - (read/write)</h3>
785         <p>Driver interface parameters</p>
786       </li>
787
788       <li>
789         <h3>Dot11RSNAConfigPMKLifetime - s - (read/write)</h3>
790         <p>Maximum lifetime of a PMK</p>
791       </li>
792
793       <li>
794         <h3>Dot11RSNAConfigPMKReauthThreshold - s - (read/write)</h3>
795         <p>PMK re-authentication threshold</p>
796       </li>
797
798       <li>
799         <h3>Dot11RSNAConfigSATimeout - s - (read/write)</h3>
800         <p>Security association timeout</p>
801       </li>
802
803       <li>
804         <h3>BssMaxCount - s - (read/write)</h3>
805         <p>Maximum number of BSS entries to keep in memory</p>
806       </li>
807
808       <li>
809         <h3>FilterSsids - s - (read/write)</h3>
810         <p>SSID-based scan result filtering</p>
811       </li>
812
813       <li>
814         <h3>FilterRssi - s - (read/write)</h3>
815         <p>RSSI-based scan result filtering</p>
816       </li>
817
818       <li>
819         <h3>MaxNumSta - s - (read/write)</h3>
820         <p>Maximum number of STAs in an AP/P2P GO</p>
821       </li>
822
823       <li>
824         <h3>DisassocLowAck - s - (read/write)</h3>
825         <p>Disassocicate stations with massive packet loss</p>
826       </li>
827
828       <li>
829         <h3>Interworking - s - (read/write)</h3>
830         <p>Whether Interworking (IEEE 802.11u) is enabled</p>
831       </li>
832
833       <li>
834         <h3>Hessid - s - (read/write)</h3>
835         <p>Homogenous ESS identifier</p>
836       </li>
837
838       <li>
839         <h3>AccessNetworkType - s - (read/write)</h3>
840         <p>Access Network Type</p>
841       </li>
842
843       <li>
844         <h3>PbcInM1 - s - (read/write)</h3>
845         <p>AP mode WPS probing workaround for PBC with Windows 7</p>
846       </li>
847
848       <li>
849         <h3>Autoscan - s - (read/write)</h3>
850         <p>Automatic scan parameters or an empty string if none</p>
851       </li>
852
853       <li>
854         <h3>WpsNfcDevPwId - s - (read/write)</h3>
855         <p>NFC Device Password ID for password token</p>
856       </li>
857
858       <li>
859         <h3>WpsNfcDhPubkey - s - (read/write)</h3>
860         <p>NFC DH Public Key for password token</p>
861       </li>
862
863       <li>
864         <h3>WpsNfcDhPrivkey - s - (read/write)</h3>
865         <p>NFC DH Private Key for password token</p>
866       </li>
867
868       <li>
869         <h3>WpsNfcDevPw - s - (read/write)</h3>
870         <p>NFC Device Password for password token</p>
871       </li>
872
873       <li>
874         <h3>ExtPasswordBackend - s - (read/write)</h3>
875         <p>External password backend or an empty string if none</p>
876       </li>
877
878       <li>
879         <h3>P2pGoMaxInactivity - s - (read/write)</h3>
880         <p>Timeout in seconds to detect STA inactivity</p>
881       </li>
882
883       <li>
884         <h3>AutoInterworking - s - (read/write)</h3>
885         <p>Whether to use network selection automatically</p>
886       </li>
887
888       <li>
889         <h3>Okc - s - (read/write)</h3>
890         <p>Whether to enable opportunistic key caching by default</p>
891       </li>
892
893       <li>
894         <h3>Pmf - s - (read/write)</h3>
895         <p>Whether to enable/require PMF by default</p>
896       </li>
897
898       <li>
899         <h3>SaeGroups - s - (read/write)</h3>
900         <p>Preference list of enabled groups for SAE</p>
901       </li>
902
903       <li>
904         <h3>DtimPeriod - s - (read/write)</h3>
905         <p>Default DTIM period in Beacon intervals</p>
906       </li>
907
908       <li>
909         <h3>BeaconInt - s - (read/write)</h3>
910         <p>Default Beacon interval in TU</p>
911       </li>
912
913       <li>
914         <h3>IgnoreOldScanRes - s - (read/write)</h3>
915         <p>Ignore scan results older than request</p>
916       </li>
917
918       <li>
919         <h3>FreqList - s - (read/write)</h3>
920         <p>Array of allowed scan frequencies or an empty string for all</p>
921       </li>
922
923       <li>
924         <h3>ScanCurFreq - s - (read/write)</h3>
925         <p>Whether to scan only the current channel</p>
926       </li>
927
928       <li>
929         <h3>SchedScanInterval - s - (read/write)</h3>
930         <p>schedule scan interval</p>
931       </li>
932
933       <li>
934         <h3>TdlsExternalControl - s - (read/write)</h3>
935         <p>External control for TDLS setup requests</p>
936       </li>
937
938       <li>
939         <h3>OsuDir - s - (read/write)</h3>
940         <p>OSU provider information directory</p>
941       </li>
942
943       <li>
944         <h3>WowlanTriggers - s - (read/write)</h3>
945         <p>Wake-on-WLAN triggers</p>
946       </li>
947
948       <li>
949         <h3>P2pSearchDelay - s - (read/write)</h3>
950         <p>Extra delay between concurrent search iterations</p>
951       </li>
952
953       <li>
954         <h3>MacAddr - s - (read/write)</h3>
955         <p>MAC address policy default</p>
956       </li>
957
958       <li>
959         <h3>RandAddrLifetime - s - (read/write)</h3>
960         <p>Lifetime of random MAC address in seconds</p>
961       </li>
962
963       <li>
964         <h3>PreassocMacAddr - s - (read/write)</h3>
965         <p>Pre-association MAC address policy</p>
966       </li>
967
968       <li>
969         <h3>KeyMgmtOffload - s - (read/write)</h3>
970         <p>Use key management offload</p>
971       </li>
972
973       <li>
974         <h3>PassiveScan - s - (read/write)</h3>
975         <p>Whether to force passive scan for network connection</p>
976       </li>
977
978       <li>
979         <h3>ReassocSameBssOptim - s - (read/write)</h3>
980         <p>Whether to optimize reassoc-to-same-BSS</p>
981       </li>
982
983       <li>
984         <h3>WpsPriority - s - (read/write)</h3>
985         <p>Priority for the networks added through WPS</p>
986       </li>
987     </ul>
988
989 \subsection dbus_interface_signals Signals
990
991 <ul>
992       <li>
993         <h3>ScanDone ( b : success )</h3>
994         <p>Scanning finished. </p>
995         <h4>Arguments</h4>
996         <dl>
997           <dt>s : success</dt>
998           <dd>Determines if scanning was successful. If so, results are available.</dd>
999         </dl>
1000       </li>
1001
1002       <li>
1003         <h3>BSSAdded ( o : BSS, a{sv} : properties )</h3>
1004         <p>Interface became aware of a new BSS.</p>
1005         <h4>Arguments</h4>
1006         <dl>
1007           <dt>o : BSS</dt>
1008           <dd>A D-Bus path to an object representing the new BSS.</dd>
1009         </dl>
1010         <dl>
1011           <dt>a{sv} : properties</dt>
1012           <dd>A dictionary containing properties of added BSS.</dd>
1013         </dl>
1014       </li>
1015
1016       <li>
1017         <h3>BSSRemoved ( o : BSS )</h3>
1018         <p>BSS disappeared.</p>
1019         <h4>Arguments</h4>
1020         <dl>
1021           <dt>o : BSS</dt>
1022           <dd>A D-Bus path to an object representing the BSS.</dd>
1023         </dl>
1024       </li>
1025
1026       <li>
1027         <h3>BlobAdded ( s : blobName )</h3>
1028         <p>A new blob has been added to the interface.</p>
1029         <h4>Arguments</h4>
1030         <dl>
1031           <dt>s : blobName</dt>
1032           <dd>A name of the added blob.</dd>
1033         </dl>
1034       </li>
1035
1036       <li>
1037         <h3>BlobRemoved ( s : blobName )</h3>
1038         <p>A blob has been removed from the interface.</p>
1039         <h4>Arguments</h4>
1040         <dl>
1041           <dt>s : blobName</dt>
1042           <dd>A name of the removed blob.</dd>
1043         </dl>
1044       </li>
1045
1046       <li>
1047         <h3>NetworkAdded ( o : network, a{sv} : properties )</h3>
1048         <p>A new network has been added to the interface.</p>
1049         <h4>Arguments</h4>
1050         <dl>
1051           <dt>o : network</dt>
1052           <dd>A D-Bus path to an object representing the added network.</dd>
1053         </dl>
1054         <dl>
1055           <dt>a{sv} : properties</dt>
1056           <dd>A dictionary containing properties of added network.</dd>
1057         </dl>
1058       </li>
1059
1060       <li>
1061         <h3>NetworkRemoved ( o : network )</h3>
1062         <p>The network has been removed from the interface.</p>
1063         <h4>Arguments</h4>
1064         <dl>
1065           <dt>o : network</dt>
1066           <dd>A D-Bus path to an object representing the removed network.</dd>
1067         </dl>
1068       </li>
1069
1070       <li>
1071         <h3>NetworkSelected ( o : network )</h3>
1072         <p>The network has been selected.</p>
1073         <h4>Arguments</h4>
1074         <dl>
1075           <dt>o : network</dt>
1076           <dd>A D-Bus path to an object representing the selected network.</dd>
1077         </dl>
1078       </li>
1079
1080       <li>
1081         <h3>StaAuthorized ( s : mac )</h3>
1082         <p>A new station has been authorized to the interface.</p>
1083         <h4>Arguments</h4>
1084         <dl>
1085           <dt>s : mac</dt>
1086           <dd>A mac address which has been authorized.</dd>
1087         </dl>
1088       </li>
1089
1090       <li>
1091         <h3>StaDeauthorized ( s : mac )</h3>
1092         <p>A station has been deauthorized to the interface.</p>
1093         <h4>Arguments</h4>
1094         <dl>
1095           <dt>s : mac</dt>
1096           <dd>A mac address which has been deauthorized.</dd>
1097         </dl>
1098       </li>
1099
1100       <li>
1101         <h3>PropertiesChanged ( a{sv} : properties )</h3>
1102         <p>Some properties have changed.</p>
1103         <h4>Arguments</h4>
1104         <dl>
1105           <dt>a{sv} : properties</dt>
1106           <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "ApScan", "Scanning", "State", "CurrentBSS", "CurrentNetwork"</dd>
1107         </dl>
1108       </li>
1109
1110       <li>
1111         <h3>Certification ( a{sv} : parameters )</h3>
1112         <p>Information about server TLS certificates.</p>
1113         <h4>Arguments</h4>
1114         <dl>
1115           <dt>a{sv} : parameters</dt>
1116           <dd>A dictionary with pairs of field names and their values. Possible dictionary keys are: "depth", "subject", "altsubject", "cert_hash", "cert".</dd>
1117         </dl>
1118       </li>
1119
1120       <li>
1121         <h3>EAP ( s : status, s : parameter )</h3>
1122         <p>Information about EAP peer status.</p>
1123         <h4>Arguments</h4>
1124         <dl>
1125           <dt>s : status</dt>
1126           <dd>Operation, e.g., "started", "accept proposed method", "remote certificate verification", "eap parameter needed", "completion".</dd>
1127           <dt>s : parameter</dt>
1128           <dd>Information about the operation, e.g., EAP method name, "success".</dd>
1129         </dl>
1130       </li>
1131
1132       <li>
1133         <h3>NetworkRequest ( o : network, s : field, s : txt )</h3>
1134         <p>Request for network parameter. NetworkResponse() is used to provide the requested parameter.</p>
1135         <h4>Arguments</h4>
1136         <dl>
1137           <dt>o : network</dt>
1138           <dd>D-Bus path to an object representing the network.</dd>
1139           <dt>s : field</dt>
1140           <dd>Requested information, e.g., "PASSWORD".</dd>
1141           <dt>txt : field</dt>
1142           <dd>Human readable information about the requested information.</dd>
1143         </dl>
1144       </li>
1145
1146       <li>
1147         <h3>ProbeRequest ( a{sv} : args )</h3>
1148         <p>Information about a received Probe Request frame. This signal is delivered only to a single application that has subscribed to received the events with SubscribeProbeReq().</p>
1149         <h4>Arguments</h4>
1150         <dl>
1151           <dt>a{sv} : args</dt>
1152           <dd>A dictionary with pairs of field names and their values. Possible dictionary keys are: "addr", "dst", "bssid", "ies", "signal".</dd>
1153         </dl>
1154       </li>
1155     </ul>
1156
1157
1158 \section dbus_wps fi.w1.wpa_supplicant1.Interface.WPS
1159
1160 Interface for performing WPS (Wi-Fi Simple Config) operations.
1161
1162 \subsection dbus_wps_methods Methods
1163
1164 <ul>
1165       <li>
1166         <h3>Start ( a{sv} : args ) --> a{sv} : output</h3>
1167         <p>Starts WPS configuration. Note: When used with P2P groups, this needs to be issued on the GO group interface.</p>
1168         <h4>Arguments</h4>
1169         <dl>
1170           <dt>a{sv} : args</dt>
1171           <dd>
1172             A dictionary with arguments used to start WPS configuration. The dictionary may contain the following entries:
1173             <table>
1174               <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
1175               <tr><td>Role</td><td>s</td><td>The device's role. Possible values are "enrollee" and "registrar".</td><td>Yes</td>
1176               <tr><td>Type</td><td>s</td><td>WPS authentication type. Applies only for enrollee role. Possible values are "pin" and "pbc".</td><td>Yes, for enrollee role; otherwise no</td>
1177               <tr><td>Pin</td><td>s</td><td>WPS Pin.</td><td>Yes, for registrar role; otherwise optional</td>
1178               <tr><td>Bssid</td><td>ay</td><td>Note: This is used to specify the peer MAC address when authorizing WPS connection in AP or P2P GO role.</td><td>No</td>
1179               <tr><td>P2PDeviceAddress</td><td>ay</td><td>P2P Device Address of a peer to authorize for PBC connection. Used only in P2P GO role.</td><td>No</td>
1180             </table>
1181           </dd>
1182         </dl>
1183         <h4>Returns</h4>
1184         <dl>
1185           <dt>a{sv} : output</dt>
1186           <dd>
1187             <table>
1188               <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
1189               <tr><td>Pin</td><td>s</td><td>Newly generated PIN, if not specified for enrollee role and pin authentication type.</td><td>No</td>
1190             </table>
1191           </dd>
1192         </dl>
1193         <h4>Possible errors</h4>
1194         <dl>
1195           <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
1196           <dd>Starting WPS configuration failed for an unknown reason.</dd>
1197           <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
1198           <dd>Invalid entries were found in the passed argument.</dd>
1199         </dl>
1200       </li>
1201       <li>
1202         <h3>Cancel ( nothing ) --> nothing</h3>
1203         <p>Cancel ongoing WPS operation.</p>
1204       </li>
1205     </ul>
1206
1207 \subsection dbus_wps_properties Properties
1208
1209 <ul>
1210       <li>
1211         <h3>ProcessCredentials - b - (read/write)</h3>
1212         <p>Determines if the interface will process the credentials (credentials_processed configuration file parameter).</p>
1213       </li>
1214       <li>
1215         <h3>ConfigMethods - s - (read/write)</h3>
1216         <p>The currently advertised WPS configuration methods. Available methods: usba ethernet label display ext_nfc_token int_nfc_token nfc_interface push_button keypad virtual_display physical_display virtual_push_button physical_push_button.</p>
1217       </li>
1218     </ul>
1219
1220 \subsection dbus_wps_signals Signals
1221
1222 <ul>
1223       <li>
1224         <h3>Event ( s : name, a{sv} : args )</h3>
1225         <p>WPS event occurred.</p>
1226         <h4>Arguments</h4>
1227         <dl>
1228           <dt>s : event</dt>
1229           <dd>Event type. Possible values are: "success, "fail", "m2d", and
1230           "pbc-overlap".</dd>
1231           <dt>a{sv} : args</dt>
1232           <dd>
1233             Event arguments. Empty for success and pbc-overlap events, error information ( "msg" : i, "config_error" : i, "error_indication" : i ) for fail event and following entries for m2d event:
1234             <table>
1235               <tr><th>config_methods</th><th>Value type</th>
1236               <tr><td>manufacturer</td><td>q</td>
1237               <tr><td>model_name</td><td>ay</td>
1238               <tr><td>model_number</td><td>ay</td>
1239               <tr><td>serial_number</td><td>ay</td>
1240               <tr><td>dev_name</td><td>ay</td>
1241               <tr><td>primary_dev_type</td><td>ay</td>
1242               <tr><td>config_error</td><td>q</td>
1243               <tr><td>dev_password_id</td><td>q</td>
1244             </table>
1245           </dd>
1246         </dl>
1247       </li>
1248
1249       <li>
1250         <h3>Credentials ( a{sv} : credentials )</h3>
1251         <p>WPS credentials. Dictionary contains:</p>
1252         <table>
1253           <tr><th>Key</th><th>Value type</th><th>Description</th>
1254           <tr><td>BSSID</td><td>ay</td><td></td>
1255           <tr><td>SSID</td><td>s</td><td></td>
1256           <tr><td>AuthType</td><td>as</td><td>Possible array elements: "open", "shared", "wpa-psk", "wpa-eap", "wpa2-eap", "wpa2-psk"</td>
1257           <tr><td>EncrType</td><td>as</td><td>Possible array elements: "none", "wep", "tkip", "aes"</td>
1258           <tr><td>Key</td><td>ay</td><td>Key data</td>
1259           <tr><td>KeyIndex</td><td>u</td><td>Key index</td>
1260         </table>
1261       </li>
1262
1263       <li>
1264         <h3>PropertiesChanged ( a{sv} : properties )</h3>
1265         <p>Some properties have changed.</p>
1266         <h4>Arguments</h4>
1267         <dl>
1268           <dt>a{sv} : properties</dt>
1269           <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "ProcessCredentials"</dd>
1270         </dl>
1271       </li>
1272     </ul>
1273
1274
1275 \section dbus_p2pdevice fi.w1.wpa_supplicant1.Interface.P2PDevice
1276
1277 Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
1278
1279 \subsection dbus_p2pdevice_methods Methods
1280
1281 <ul>
1282   <li>
1283     <h3>Find ( a{sv} : args ) --> nothing</h3>
1284     <p>Start P2P find operation (i.e., alternating P2P Search and Listen states to discover peers and be discoverable).</p>
1285     <h4>Arguments</h4>
1286     <dl>
1287       <dt>a{sv} : args</dt>
1288       <dd>
1289         A dictionary with parameters for the P2P find operation:
1290         <table>
1291         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1292         <tr><td>Timeout</td><td>i</td><td>Timeout for operating in seconds</td><td>no</td></tr>
1293         <tr><td>RequestedDeviceTypes</td><td>aay</td><td>WPS Device Types to search for</td><td>no</td></tr>
1294         <tr><td>DiscoveryType</td><td>s</td><td>"start_with_full" (default, if not specified), "social", "progressive"</td><td>no</td></tr>
1295         </table>
1296       </dd>
1297     </dl>
1298   </li>
1299
1300   <li>
1301     <h3>StopFind ( nothing ) --> nothing</h3>
1302     <p>Stop P2P find operation.</p>
1303   </li>
1304
1305   <li>
1306     <h3>Listen ( i : timeout ) --> nothing</h3>
1307     <p>Start P2P listen operation (i.e., be discoverable).</p>
1308     <h4>Arguments</h4>
1309     <dl>
1310       <dt>i : timeout</dt>
1311       <dd>Timeout in seconds for stopping the listen operation.</dd>
1312     </dl>
1313   </li>
1314
1315   <li>
1316     <h3>ExtendedListen ( a{sv} : args ) --> nothing</h3>
1317     <p>Configure Extended Listen Timing. If the parameters are omitted, this feature is disabled. If the parameters are included, Listen State will be entered every interval msec for at least period msec. Both values have acceptable range of 1-65535 (with interval obviously having to be larger than or equal to duration). If the P2P module is not idle at the time the Extended Listen Timing timeout occurs, the Listen State operation will be skipped.</p>
1318     <h4>Arguments</h4>
1319     <dl>
1320       <dt>a{sv} : args</dt>
1321       <dd>
1322         A dictionary with parameters for extended listen. Leave out all items to disable extended listen.
1323         <table>
1324         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1325         <tr><td>period</td><td>i</td><td>Extended listen period in milliseconds; 1-65535.</td><td>no</td></tr>
1326         <tr><td>interval</td><td>i</td><td>Extended listen interval in milliseconds; 1-65535.</td><td>no</td></tr>
1327         </table>
1328       </dd>
1329     </dl>
1330   </li>
1331
1332   <li>
1333     <h3>PresenceRequest ( a{sv} : args ) --> nothing</h3>
1334     <p>Request a specific GO presence in a P2P group where the local device is a P2P Client. Send a P2P Presence Request to the GO (this is only available when acting as a P2P client). If no duration/interval pairs are given, the request indicates that this client has no special needs for GO presence. The first parameter pair gives the preferred duration and interval values in microseconds. If the second pair is included, that indicates which value would be acceptable.
1335     \note This needs to be issued on a P2P group interface if separate group interfaces are used.
1336     \bug It would be cleaner to not require .P2PDevice methods to be issued on a group interface. In other words, args['group_object'] could be used to specify the group or this method could be moved to be a .Group PresenceRequest() method.</p>
1337     <h4>Arguments</h4>
1338     <dl>
1339       <dt>a{sv} : args</dt>
1340       <dd>
1341         A dictionary with parameters for the presence request.
1342         <table>
1343         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1344         <tr><td>duration1</td><td>i</td><td>Duration in microseconds.</td><td>no</td></tr>
1345         <tr><td>interval1</td><td>i</td><td>Interval in microseconds.</td><td>no</td></tr>
1346         <tr><td>duration2</td><td>i</td><td>Duration in microseconds.</td><td>no</td></tr>
1347         <tr><td>interval2</td><td>i</td><td>Interval in microseconds.</td><td>no</td></tr>
1348         </table>
1349       </dd>
1350     </dl>
1351   </li>
1352
1353   <li>
1354     <h3>ProvisionDiscoveryRequest ( o : peer, s : config_method ) --> nothing</h3>
1355   </li>
1356
1357   <li>
1358     <h3>Connect ( a{sv} : args ) --> s : generated_pin</h3>
1359     <p>Request a P2P group to be started through GO Negotiation or by joining an already operating group.</p>
1360     <h4>Arguments</h4>
1361     <dl>
1362       <dt>a{sv} : args</dt>
1363       <dd>
1364         A dictionary with parameters for the requested connection:
1365         <table>
1366         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1367         <tr><td>peer</td><td>o</td><td></td><td>yes</td></tr>
1368         <tr><td>persistent</td><td>b</td><td>Whether to form a persistent group.</td><td>no</td></tr>
1369         <tr><td>join</td><td>b</td><td>Whether to join an already operating group instead of forming a new group.</td><td>no</td></tr>
1370         <tr><td>authorize_only</td><td>b</td><td>Whether to authorize a peer to initiate GO Negotiation instead of initiating immediately.</td><td>no</td></tr>
1371         <tr><td>frequency</td><td>i</td><td>Operating frequency in MHz</td><td>no</td></tr>
1372         <tr><td>go_intent</td><td>i</td><td>GO intent 0-15</td><td>no</td></tr>
1373         <tr><td>wps_method</td><td>s</td><td>"pbc", "display", "keypad", "pin" (alias for "display")</td><td>yes</td></tr>
1374         <tr><td>pin</td><td>s</td><td></td><td>no</td></tr>
1375         </table>
1376       </dd>
1377     </dl>
1378   </li>
1379
1380   <li>
1381     <h3>GroupAdd ( a{sv} : args ) --> nothing</h3>
1382     <p>Request a P2P group to be started without GO Negotiation.</p>
1383     <h4>Arguments</h4>
1384     <dl>
1385       <dt>a{sv} : args</dt>
1386       <dd>
1387         A dictionary with parameters for the requested group:
1388         <table>
1389         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1390         <tr><td>persistent</td><td>b</td><td>Whether to form a persistent group.</td><td>no</td></tr>
1391         <tr><td>persistent_group_object</td><td>o</td><td></td><td>no</td></tr>
1392         <tr><td>frequency</td><td>i</td><td>Operating frequency in MHz</td><td>no</td></tr>
1393         </table>
1394       </dd>
1395     </dl>
1396   </li>
1397
1398   <li>
1399     <h3>Cancel ( nothing ) --> nothing</h3>
1400     <p>Stop ongoing P2P group formation operation.</p>
1401   </li>
1402
1403   <li>
1404     <h3>Invite ( a{sv} : args ) --> nothing</h3>
1405     <p>Invite a peer to join an already operating group or to re-invoke a persistent group.</p>
1406     <h4>Arguments</h4>
1407     <dl>
1408       <dt>a{sv} : args</dt>
1409       <dd>
1410         A dictionary with parameters for the invitation:
1411         <table>
1412         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1413         <tr><td>peer</td><td>o</td><td></td><td>yes</td></tr>
1414         <tr><td>persistent_group_object</td><td>o</td><td></td><td>no</td></tr>
1415         </table>
1416       </dd>
1417     </dl>
1418   </li>
1419
1420   <li>
1421     <h3>Disconnect ( nothing ) --> nothing</h3>
1422     <p>Terminate a P2P group.
1423     \note This needs to be issued on a P2P group interface if separate group interfaces are used.
1424     \bug It would be cleaner to not require .P2PDevice methods to be issued on a group interface. In other words, this would either need to be Disconnect(group_object) or moved to be a .Group Disconnect() method.</p>
1425   </li>
1426
1427   <li>
1428     <h3>RejectPeer ( o : peer ) --> nothing</h3>
1429     <p>Reject connection attempt from a peer (specified with a device address). This is a mechanism to reject a pending GO Negotiation with a peer and request to automatically block any further connection or discovery of the peer.</p>
1430   </li>
1431
1432   <li>
1433     <h3>RemoveClient ( a{sv} : args ) --> nothing</h3>
1434     <p>Remove the client from all groups (operating and persistent) from the local GO.</p>
1435     <h4>Arguments</h4>
1436     <dl>
1437       <dt>a{sv} : args</dt>
1438       <dd>
1439         A dictionary with parameters for removing a client:
1440         <table>
1441         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1442         <tr><td>peer</td><td>o</td><td>Object path for peer's P2P Device Address</td><td>yes</td></tr>
1443         <tr><td>iface</td><td>s</td><td>Interface address[MAC Address format] of the peer to be disconnected. Required if object path is not provided.</td><td>no</td></tr>
1444         </table>
1445       </dd>
1446     </dl>
1447   </li>
1448
1449   <li>
1450     <h3>Flush ( nothing ) --> nothing</h3>
1451     <p>Flush P2P peer table and state.</p>
1452   </li>
1453
1454   <li>
1455     <h3>AddService ( a{sv} : args ) --> nothing</h3>
1456     <p></p>
1457     <h4>Arguments</h4>
1458     <dl>
1459       <dt>a{sv} : args</dt>
1460       <dd>
1461         A dictionary with parameters for the service:
1462         <table>
1463         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1464         <tr><td>service_type</td><td>s</td><td>"upnp", "bonjour"</td><td>yes</td></tr>
1465         <tr><td>version</td><td>u</td><td>Required for UPnP services.</td><td>no</td></tr>
1466         <tr><td>service</td><td>s</td><td></td><td></td></tr>
1467         <tr><td>query</td><td>ay</td><td></td><td></td></tr>
1468         <tr><td>response</td><td>ay</td><td></td><td></td></tr>
1469         </table>
1470       </dd>
1471     </dl>
1472   </li>
1473
1474   <li>
1475     <h3>DeleteService ( a{sv} : args ) --> nothing</h3>
1476     <p></p>
1477     <h4>Arguments</h4>
1478     <dl>
1479       <dt>a{sv} : args</dt>
1480       <dd>
1481         A dictionary with parameters for the service:
1482         <table>
1483         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1484         <tr><td>service_type</td><td>s</td><td>"upnp", "bonjour"</td><td>yes</td></tr>
1485         <tr><td>version</td><td>u</td><td>Required for UPnP services.</td><td>no</td></tr>
1486         <tr><td>service</td><td>s</td><td></td><td></td></tr>
1487         <tr><td>query</td><td>ay</td><td></td><td></td></tr>
1488         </table>
1489       </dd>
1490     </dl>
1491   </li>
1492
1493   <li>
1494     <h3>FlushService ( nothing ) --> nothing</h3>
1495   </li>
1496
1497   <li>
1498     <h3>ServiceDiscoveryRequest ( a{sv} : args ) --> t : ref</h3>
1499     <p></p>
1500     <h4>Arguments</h4>
1501     <dl>
1502       <dt>a{sv} : args</dt>
1503       <dd>
1504         A dictionary with following parameters:
1505         <table>
1506         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1507         <tr><td>peer_object</td><td>o</td><td></td><td>no</td></tr>
1508         <tr><td>service_type</td><td>s</td><td>"upnp"</td><td>no</td></tr>
1509         <tr><td>version</td><td>u</td><td>Required for UPnP services.</td><td>no</td></tr>
1510         <tr><td>service</td><td>s</td><td></td><td></td></tr>
1511         <tr><td>tlv</td><td>ay</td><td></td><td></td></tr>
1512         </table>
1513       </dd>
1514     </dl>
1515   </li>
1516
1517   <li>
1518     <h3>ServiceDiscoveryResponse ( a{sv} : args ) --> nothing : ref</h3>
1519     <p></p>
1520     <h4>Arguments</h4>
1521     <dl>
1522       <dt>a{sv} : args</dt>
1523       <dd>
1524         A dictionary with following parameters:
1525         <table>
1526         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1527         <tr><td>peer_object</td><td>o</td><td></td><td>yes</td></tr>
1528         <tr><td>frequency</td><td>i</td><td></td><td>yes</td></tr>
1529         <tr><td>dialog_token</td><td>i</td><td></td><td>yes</td></tr>
1530         <tr><td>tlvs</td><td>ay</td><td></td><td>yes</td></tr>
1531         </table>
1532       </dd>
1533     </dl>
1534   </li>
1535
1536   <li>
1537     <h3>ServiceDiscoveryCancelRequest ( t : args ) --> nothing : ref</h3>
1538   </li>
1539
1540   <li>
1541     <h3>ServiceUpdate ( nothing ) --> nothing</h3>
1542   </li>
1543
1544   <li>
1545     <h3>ServiceDiscoveryExternal ( i : arg ) --> nothing</h3>
1546   </li>
1547
1548   <li>
1549     <h3>AddPersistentGroup ( a{sv} : args ) --> o : path</h3>
1550     <p></p>
1551     <h4>Arguments</h4>
1552     <dl>
1553       <dt>a{sv} : args</dt>
1554       <dd>
1555         A dictionary with following parameters:
1556         <table>
1557         <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
1558         <tr><td>bssid</td><td>s</td><td>P2P Device Address of the GO in the persistent group.</td><td>yes</td></tr>
1559         <tr><td>ssid</td><td>s</td><td>SSID of the group</td><td>yes</td></tr>
1560         <tr><td>psk</td><td>s</td><td>Passphrase (on the GO and optionally on P2P Client) or PSK (on P2P Client if passphrase ise not known)</td><td>yes</td></tr>
1561         <tr><td>mode</td><td>s</td><td>"3" on GO or "0" on P2P Client</td><td>yes</td></tr>
1562         </table>
1563       </dd>
1564     </dl>
1565   </li>
1566
1567   <li>
1568     <h3>RemovePersistentGroup ( o : path ) --> nothing</h3>
1569   </li>
1570
1571   <li>
1572     <h3>RemoveAllPersistentGroups ( nothing ) --> nothing</h3>
1573   </li>
1574 </ul>
1575
1576 \subsection dbus_p2pdevice_properties Properties
1577
1578 <ul>
1579   <li>
1580     <h3>P2PDeviceConfig - a{sv} - (read/write)</h3>
1581     <p>Dictionary with following entries. On write, only the included values are changed.</p>
1582     <table>
1583     <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1584     <tr><td>DeviceName</td><td>s</td><td></td></tr>
1585     <tr><td>PrimaryDeviceType</td><td>ay</td><td></td></tr>
1586     <tr><td>SecondaryDeviceTypes</td><td>aay</td><td></td></tr>
1587     <tr><td>VendorExtension</td><td>aay</td><td></td></tr>
1588     <tr><td>GOIntent</td><td>u</td><td></td></tr>
1589     <tr><td>PersistentReconnect</td><td>b</td><td></td></tr>
1590     <tr><td>ListenRegClass</td><td>u</td><td></td></tr>
1591     <tr><td>ListenChannel</td><td>u</td><td></td></tr>
1592     <tr><td>OperRegClass</td><td>u</td><td></td></tr>
1593     <tr><td>OperChannel</td><td>u</td><td></td></tr>
1594     <tr><td>SsidPostfix</td><td>s</td><td></td></tr>
1595     <tr><td>IntraBss</td><td>b</td><td></td></tr>
1596     <tr><td>GroupIdle</td><td>u</td><td></td></tr>
1597     <tr><td>disassoc_low_ack</td><td>u</td><td></td></tr>
1598     <tr><td>NoGroupIface</td><td>b</td><td></td></tr>
1599     <tr><td>p2p_search_delay</td><td>u</td><td></td></tr>
1600     </table>
1601   </li>
1602
1603   <li>
1604     <h3>Peers - ao - (read)</h3>
1605   </li>
1606
1607   <li>
1608     <h3>Role - s - (read)</h3>
1609     <p>\bug What is this trying to indicate? It does not make much sense to have a P2PDevice property role since there can be multiple concurrent groups and the P2P Device role is always active anyway.</p>
1610   </li>
1611
1612   <li>
1613     <h3>Group - o - (read)</h3>
1614     <p>\bug What is this trying to indicate? It does not make much sense to have a P2PDevice property Group since there can be multiple concurrent groups.</p>
1615   </li>
1616
1617   <li>
1618     <h3>PeerGO - o - (read)</h3>
1619     <p>\bug What is this trying to indicate? It does not make much sense to have a P2PDevice property PeerGO since there can be multiple concurrent groups.</p>
1620   </li>
1621
1622   <li>
1623     <h3>PersistentGroups - ao - (read)</h3>
1624   </li>
1625 </ul>
1626
1627 \subsection dbus_p2pdevice_signals Signals
1628
1629 <ul>
1630   <li>
1631     <h3>DeviceFound ( o : path )</h3>
1632   </li>
1633
1634   <li>
1635     <h3>DeviceFoundProperties ( o : path, a{sv} : properties )</h3>
1636     <p>A new peer device has been found.</p>
1637     <h4>Arguments</h4>
1638     <dl>
1639       <dt>o : path</dt>
1640       <dd>A D-Bus path to an object representing the found peer device.</dd>
1641     </dl>
1642     <dl>
1643       <dt>a{sv} : properties</dt>
1644       <dd>A dictionary containing properties of the found peer device.</dd>
1645     </dl>
1646   </li>
1647
1648   <li>
1649     <h3>DeviceLost ( o : path )</h3>
1650   </li>
1651
1652   <li>
1653     <h3>FindStopped ( )</h3>
1654   </li>
1655
1656   <li>
1657     <h3>ProvisionDiscoveryRequestDisplayPin ( o : peer_object, s : pin )</h3>
1658   </li>
1659
1660   <li>
1661     <h3>ProvisionDiscoveryResponseDisplayPin ( o : peer_object, s : pin )</h3>
1662   </li>
1663
1664   <li>
1665     <h3>ProvisionDiscoveryRequestEnterPin ( o : peer_object )</h3>
1666   </li>
1667
1668   <li>
1669     <h3>ProvisionDiscoveryResponseEnterPin ( o : peer_object )</h3>
1670   </li>
1671
1672   <li>
1673     <h3>ProvisionDiscoveryPBCRequest ( o : peer_object )</h3>
1674   </li>
1675
1676   <li>
1677     <h3>ProvisionDiscoveryPBCResponse ( o : peer_object )</h3>
1678   </li>
1679
1680   <li>
1681     <h3>ProvisionDiscoveryFailure ( o : peer_object, i : status )</h3>
1682   </li>
1683
1684   <li>
1685     <h3>GroupStarted ( a{sv} : properties )</h3>
1686     <p>A new P2P group was started or joined.</p>
1687     <h4>Arguments</h4>
1688     <dl>
1689       <dt>a{sv} : properties</dt>
1690       <dd>A dictionary with following information on the added group:
1691         <table>
1692           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1693           <tr><td>interface_object</td><td>o</td><td>D-Bus path of the interface on which this group is operating on. See \ref dbus_interface.</td></tr>
1694           <tr><td>role</td><td>s</td><td>The role of the local device in the group: "GO" or "client".</td></tr>
1695           <tr><td>group_object</td><td>o</td><td>D-Bus path of the group. See \ref dbus_group.</td></tr>
1696         </table>
1697       </dd>
1698     </dl>
1699   </li>
1700
1701   <li>
1702     <h3>GONegotiationSuccess ( a{sv} : properties )</h3>
1703     <p></p>
1704     <h4>Arguments</h4>
1705     <dl>
1706       <dt>a{sv} : properties</dt>
1707       <dd>A dictionary with following information:
1708         <table>
1709           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1710           <tr><td>peer_object</td><td>o</td><td>D-Bus path of the peer. See \ref dbus_peer.</td></tr>
1711           <tr><td>status</td><td>i</td><td></td></tr>
1712           <tr><td>passphrase</td><td>s</td><td>Passphrase for the group. Included only if this device becomes the GO of the group.</td></tr>
1713           <tr><td>role_go</td><td>s</td><td>The role of the local device in the group: "GO" or "client".</td></tr>
1714           <tr><td>ssid</td><td>ay</td><td></td></tr>
1715           <tr><td>peer_device_addr</td><td>ay</td><td></td></tr>
1716           <tr><td>peer_interface_addr</td><td>ay</td><td></td></tr>
1717           <tr><td>wps_method</td><td>s</td><td></td></tr>
1718           <tr><td>frequency_list</td><td>ai</td><td></td></tr>
1719           <tr><td>persistent_group</td><td>i</td><td></td></tr>
1720           <tr><td>peer_config_timeout</td><td>u</td><td></td></tr>
1721         </table>
1722       </dd>
1723     </dl>
1724   </li>
1725
1726   <li>
1727     <h3>GONegotiationFailure ( a{sv} : properties )</h3>
1728     <p></p>
1729     <h4>Arguments</h4>
1730     <dl>
1731       <dt>a{sv} : properties</dt>
1732       <dd>A dictionary with following information:
1733         <table>
1734           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1735           <tr><td>peer_object</td><td>o</td><td>D-Bus path of the peer. See \ref dbus_peer.</td></tr>
1736           <tr><td>status</td><td>i</td><td></td></tr>
1737         </table>
1738       </dd>
1739     </dl>
1740   </li>
1741
1742   <li>
1743     <h3>GONegotiationRequest ( o : path, q : dev_passwd_id, y : device_go_intent )</h3>
1744   </li>
1745
1746   <li>
1747     <h3>InvitationResult ( a{sv} : invite_result )</h3>
1748     <p></p>
1749     <h4>Arguments</h4>
1750     <dl>
1751       <dt>a{sv} : invite_result</dt>
1752       <dd>A dictionary with following information:
1753         <table>
1754           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1755           <tr><td>status</td><td>i</td><td></td></tr>
1756           <tr><td>BSSID</td><td>ay</td><td>Optionally present</td></tr>
1757         </table>
1758       </dd>
1759     </dl>
1760   </li>
1761
1762   <li>
1763     <h3>GroupFinished ( a{sv} : properties )</h3>
1764     <p>A P2P group was removed.</p>
1765     <h4>Arguments</h4>
1766     <dl>
1767       <dt>a{sv} : properties</dt>
1768       <dd>A dictionary with following information of the removed group:
1769         <table>
1770           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1771           <tr><td>interface_object</td><td>o</td><td>D-Bus path of the interface on which this group is operating on. See \ref dbus_interface.</td></tr>
1772           <tr><td>role</td><td>s</td><td>The role of the local device in the group: "GO" or "client".</td></tr>
1773           <tr><td>group_object</td><td>o</td><td>D-Bus path of the group. See \ref dbus_group.</td></tr>
1774         </table>
1775       </dd>
1776     </dl>
1777   </li>
1778
1779   <li>
1780     <h3>ServiceDiscoveryRequest ( a{sv} : sd_request )</h3>
1781     <p></p>
1782     <h4>Arguments</h4>
1783     <dl>
1784       <dt>a{sv} : sd_request</dt>
1785       <dd>A dictionary with following information:
1786         <table>
1787           <tr><td>peer_object</td><td>o</td><td></td></tr>
1788           <tr><td>frequency</td><td>i</td><td></td></tr>
1789           <tr><td>dialog_token</td><td>i</td><td></td></tr>
1790           <tr><td>update_indicator</td><td>q</td><td></td></tr>
1791           <tr><td>tlvs</td><td>ay</td><td></td></tr>
1792         </table>
1793       </dd>
1794     </dl>
1795   </li>
1796
1797   <li>
1798     <h3>ServiceDiscoveryResponse ( a{sv} : sd_response )</h3>
1799     <p></p>
1800     <h4>Arguments</h4>
1801     <dl>
1802       <dt>a{sv} : sd_response</dt>
1803       <dd>A dictionary with following information:
1804         <table>
1805           <tr><td>peer_object</td><td>o</td><td></td></tr>
1806           <tr><td>update_indicator</td><td>q</td><td></td></tr>
1807           <tr><td>tlvs</td><td>ay</td><td></td></tr>
1808         </table>
1809       </dd>
1810     </dl>
1811   </li>
1812
1813   <li>
1814     <h3>PersistentGroupAdded ( o : path, a{sv} : properties )</h3>
1815     <p></p>
1816     <h4>Arguments</h4>
1817     <dl>
1818       <dt>o : path</dt>
1819       <dd>D-Bus object path for the persistent group. See \ref dbus_persistent_group.</dd>
1820       <dt>a{sv} : properties</dt>
1821       <dd>A dictionary with following information:
1822         <table>
1823         <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1824         <tr><td>bssid</td><td>s</td><td>P2P Device Address of the GO in the persistent group.</td></tr>
1825         <tr><td>ssid</td><td>s</td><td>SSID of the group</td></tr>
1826         <tr><td>psk</td><td>s</td><td>Passphrase (on the GO and optionally on P2P Client) or PSK (on P2P Client if passphrase ise not known)</td></tr>
1827         <tr><td>disabled</td><td>s</td><td>Set to "2" to indicate special network block use as a P2P persistent group information</td></tr>
1828         <tr><td>mode</td><td>s</td><td>"3" on GO or "0" on P2P Client</td></tr>
1829         </table>
1830       </dd>
1831     </dl>
1832   </li>
1833
1834   <li>
1835     <h3>PersistentGroupRemoved ( o : path )</h3>
1836     <p></p>
1837     <h4>Arguments</h4>
1838     <dl>
1839       <dt>o : path</dt>
1840       <dd>D-Bus object path for the persistent group. See \ref dbus_persistent_group.</dd>
1841     </dl>
1842   </li>
1843
1844   <li>
1845     <h3>WpsFailed ( s : name, a{sv} : args )</h3>
1846     <p></p>
1847     <h4>Arguments</h4>
1848     <dl>
1849       <dt>s : name</dt>
1850       <dd>"fail"</dd>
1851       <dt>a{sv} : args</dt>
1852       <dd>A dictionary with following information:
1853         <table>
1854           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1855           <tr><td>msg</td><td>i</td><td></td></tr>
1856           <tr><td>config_error</td><td>n</td><td></td></tr>
1857         </table>
1858       </dd>
1859     </dl>
1860   </li>
1861
1862   <li>
1863     <h3>InvitationReceived ( a{sv} : properties )</h3>
1864     <p></p>
1865     <h4>Arguments</h4>
1866     <dl>
1867       <dt>a{sv} : properties</dt>
1868       <dd>A dictionary with following information:
1869         <table>
1870           <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
1871           <tr><td>sa</td><td>ay</td><td>Optionally present</td></tr>
1872           <tr><td>go_dev_addr</td><td>ay</td><td>Optionally present</td></tr>
1873           <tr><td>bssid</td><td>ay</td><td>Optionally present</td></tr>
1874           <tr><td>persistent_id</td><td>i</td><td>Optionally present</td></tr>
1875           <tr><td>op_freq</td><td>i</td><td></td></tr>
1876         </table>
1877       </dd>
1878     </dl>
1879   </li>
1880
1881   <li>
1882     <h3>GroupFormationFailure ( s : reason )</h3>
1883     <p></p>
1884     <h4>Arguments</h4>
1885     <dl>
1886       <dt>s : reason</dt>
1887       <dd>Reason for failure or empty string if not known.</dd>
1888     </dl>
1889   </li>
1890 </ul>
1891
1892 \section dbus_bss fi.w1.wpa_supplicant1.BSS
1893
1894 Interface implemented by objects representing a scanned BSSs, i.e.,
1895 scan results.
1896
1897 \subsection dbus_bss_properties Properties
1898
1899 <ul>
1900       <li>
1901         <h3>BSSID - ay - (read)</h3>
1902         <p>BSSID of the BSS.</p>
1903       </li>
1904       <li>
1905         <h3>SSID - ay - (read)</h3>
1906         <p>SSID of the BSS.</p>
1907       </li>
1908       <li>
1909         <h3>WPA - a{sv} - (read)</h3>
1910         <p>WPA information of the BSS. Empty dictionary indicates no WPA support. Dictionary entries are:</p>
1911         <table>
1912           <tr><td>KeyMgmt</td><td>as</td><td>Key management suite. Possible array elements: "wpa-psk", "wpa-eap", "wpa-none"</td>
1913           <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
1914           <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
1915         </table>
1916       </li>
1917       <li>
1918         <h3>RSN - a{sv} - (read)</h3>
1919         <p>RSN information of the BSS. Empty dictionary indicates no RSN support. Dictionary entries are:</p>
1920         <table>
1921           <tr><td>KeyMgmt</td><td>as</td><td>Key management suite. Possible array elements: "wpa-psk", "wpa-eap", "wpa-ft-psk", "wpa-ft-eap", "wpa-psk-sha256", "wpa-eap-sha256",</td>
1922           <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
1923           <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
1924           <tr><td>MgmtGroup</td><td>s</td><td>Mangement frames cipher suite. Possible values are: "aes128cmac"</td>
1925         </table>
1926       </li>
1927       <li>
1928         <h3>WPS - a{sv} - (read)</h3>
1929         <p>WPS information of the BSS. Empty dictionary indicates no WPS support. Dictionary entries are:</p>
1930         <table>
1931           <tr><td>Type</td><td>s</td><td>"pbc", "pin", ""</td>
1932         </table>
1933       </li>
1934       <li>
1935         <h3>IEs - ay - (read)</h3>
1936         <p>All IEs of the BSS as a chain of TLVs</p>
1937       </li>
1938       <li>
1939         <h3>Privacy - b - (read)</h3>
1940         <p>Indicates if BSS supports privacy.</p>
1941       </li>
1942       <li>
1943         <h3>Mode - s - (read)</h3>
1944         <p>Describes mode of the BSS. Possible values are: "ad-hoc" and "infrastructure".</p>
1945       </li>
1946       <li>
1947         <h3>Frequency - q - (read)</h3>
1948         <p>Frequency of the BSS in MHz.</p>
1949       </li>
1950       <li>
1951         <h3>Rates - au - (read)</h3>
1952         <p>Descending ordered array of rates supported by the BSS in bits per second.</p>
1953       </li>
1954       <li>
1955         <h3>Signal - n - (read)</h3>
1956         <p>Signal strength of the BSS.</p>
1957       </li>
1958       <li>
1959         <h3>Age - u - (read)</h3>
1960         <p>Number of seconds since the BSS was last seen.</p>
1961       </li>
1962     </ul>
1963
1964 \subsection dbus_bss_signals Signals
1965
1966 <ul>
1967       <li>
1968         <h3>PropertiesChanged ( a{sv} : properties )</h3>
1969         <p>Some properties have changed.</p>
1970         <h4>Arguments</h4>
1971         <dl>
1972           <dt>a{sv} : properties</dt>
1973           <dd>A dictionary with pairs of properties names which have changed and theirs new values.</dd>
1974         </dl>
1975       </li>
1976     </ul>
1977
1978
1979 \section dbus_network fi.w1.wpa_supplicant1.Network
1980
1981 Interface implemented by objects representing configured networks,
1982 i.e., returned by fi.w1.wpa_supplicant1.Interface.AddNetwork.
1983
1984 \subsection dbus_network_properties Properties
1985
1986 <ul>
1987       <li>
1988         <h3>Enabled - b - (read/write)</h3>
1989         <p>Determines if the configured network is enabled or not.</p>
1990       </li>
1991
1992       <li>
1993         <h3>Properties - a{sv} - (read/write)</h3>
1994         <p>Properties of the configured network. Dictionary contains entries from "network" block of wpa_supplicant configuration file. All values are string type, e.g., frequency is "2437", not 2437.
1995       </li>
1996     </ul>
1997
1998 \subsection dbus_network_signals Signals
1999
2000 <ul>
2001       <li>
2002         <h3>PropertiesChanged ( a{sv} : properties )</h3>
2003         <p>Some properties have changed.</p>
2004         <h4>Arguments</h4>
2005         <dl>
2006           <dt>a{sv} : properties</dt>
2007           <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "Enabled"</dd>
2008         </dl>
2009       </li>
2010     </ul>
2011
2012 \section dbus_peer fi.w1.wpa_supplicant1.Peer
2013
2014 Interface implemented by objects representing P2P peer devices.
2015
2016 \subsection dbus_peer_properties Properties
2017
2018 <ul>
2019   <li>
2020     <h3>DeviceName - s - (read)</h3>
2021   </li>
2022
2023   <li>
2024     <h3>Manufacturer - s - (read)</h3>
2025   </li>
2026
2027   <li>
2028     <h3>ModelName - s - (read)</h3>
2029   </li>
2030
2031   <li>
2032     <h3>ModelNumber - s - (read)</h3>
2033   </li>
2034
2035   <li>
2036     <h3>SerialNumber - s - (read)</h3>
2037   </li>
2038
2039   <li>
2040     <h3>PrimaryDeviceType - ay - (read)</h3>
2041   </li>
2042
2043   <li>
2044     <h3>config_method - q - (read)</h3>
2045   </li>
2046
2047   <li>
2048     <h3>level - i - (read)</h3>
2049   </li>
2050
2051   <li>
2052     <h3>devicecapability - y - (read)</h3>
2053   </li>
2054
2055   <li>
2056     <h3>groupcapability - y - (read)</h3>
2057     <p>Group Capability field from the last frame from which this peer information was updated.
2058     \note This field is only for debugging purposes and must not be used to determine whether the peer happens to be operating a group as a GO at the moment.
2059     </p>
2060   </li>
2061
2062   <li>
2063     <h3>SecondaryDeviceTypes - aay - (read)</h3>
2064   </li>
2065
2066   <li>
2067     <h3>VendorExtension - aay - (read)</h3>
2068   </li>
2069
2070   <li>
2071     <h3>IEs - ay - (read)</h3>
2072     <p>This is a confusingly named property that includes Wi-Fi Display subelements from the peer.
2073     \bug This should really be renamed since "IEs" means something completely different..
2074     </p>
2075   </li>
2076
2077   <li>
2078     <h3>DeviceAddress - ay - (read)</h3>
2079     <p>The P2P Device Address of the peer.</p>
2080   </li>
2081
2082   <li>
2083     <h3>Groups - ao - (read)</h3>
2084     <p>The current groups in which this peer is connected.</p>
2085   </li>
2086 </ul>
2087
2088 \subsection dbus_peer_signals Signals
2089
2090 <ul>
2091   <li>
2092     <h3>PropertiesChanged ( a{sv} : properties )</h3>
2093     <p>Some properties have changed.
2094     \deprecated Use org.freedesktop.DBus.Properties.PropertiesChanged instead.</p>
2095     \todo Explain how ProertiesChanged signals are supposed to be of any real use with Peer objects (i.e., one signal for multiple peers).
2096         <h4>Arguments</h4>
2097         <dl>
2098           <dt>a{sv} : properties</dt>
2099           <dd>A dictionary with pairs of properties names which have changed and their new values.</dd>
2100         </dl>
2101       </li>
2102     </ul>
2103
2104 \section dbus_group fi.w1.wpa_supplicant1.Group
2105
2106 Interface implemented by objects representing active P2P groups.
2107
2108 \subsection dbus_group_properties Properties
2109
2110 <ul>
2111   <li>
2112     <h3>Members - ao - (read)</h3>
2113     <p>Array of D-Bus object paths for the peer devices that are currently connected to the group. This is valid only on the GO device. An empty array is returned in P2P Client role.
2114   </li>
2115
2116   <li>
2117     <h3>Group - o - (read)</h3>
2118     <p>\todo Why is this here? This D-Bus object path is to this specific group and one needs to know it to fetching this information in the first place..
2119     </p>
2120   </li>
2121
2122   <li>
2123     <h3>Role - s - (read)</h3>
2124     <p>The role of this device in the group: "GO", "client".</p>
2125   </li>
2126
2127   <li>
2128     <h3>SSID - ay - (read)</h3>
2129     <p>P2P Group SSID.</p>
2130   </li>
2131
2132   <li>
2133     <h3>BSSID - ay - (read)</h3>
2134     <p>P2P Group BSSID (the P2P Interface Address of the GO).</p>
2135   </li>
2136
2137   <li>
2138     <h3>Frequency - q - (read)</h3>
2139     <p>The frequency (in MHz) of the group operating channel.</p>
2140   </li>
2141
2142   <li>
2143     <h3>Passphrase - s - (read)</h3>
2144     <p>Passphrase used in the group. This is always available on the GO. For P2P Client role, this may be available depending on whether the peer GO provided the passphrase during the WPS provisioning step. If not available, an empty string is returned.</p>
2145   </li>
2146
2147   <li>
2148     <h3>PSK - ay - (read)</h3>
2149     <p>PSK used in the group.</p>
2150   </li>
2151
2152   <li>
2153     <h3>WPSVendorExtensions - aay - (read/write)</h3>
2154     <p>WPS vendor extension attributes used on the GO. This is valid only the in the GO role. An empty array is returned in P2P Client role. At maximum, 10 separate vendor extension byte arrays can be configured. The GO device will include the configured attributes in WPS exchanges.</p>
2155   </li>
2156 </ul>
2157
2158 \subsection dbus_group_signals Signals
2159
2160 <ul>
2161   <li>
2162     <h3>PeerJoined ( o : peer )</h3>
2163     <p>A peer device has joined the group. This is indicated only on the GO device.</p>
2164     <h4>Arguments</h4>
2165     <dl>
2166       <dt>o : peer</dt>
2167       <dd>A D-Bus path to the object representing the peer. See \ref dbus_peer.</dd>
2168     </dl>
2169   </li>
2170
2171   <li>
2172     <h3>PeerDisconnected ( o : peer )</h3>
2173     <p>A peer device has left the group. This is indicated only on the GO device.</p>
2174     <h4>Arguments</h4>
2175     <dl>
2176       <dt>o : peer</dt>
2177       <dd>A D-Bus path to the object representing the peer. See \ref dbus_peer.</dd>
2178     </dl>
2179   </li>
2180 </ul>
2181
2182 \section dbus_persistent_group fi.w1.wpa_supplicant1.PersistentGroup
2183
2184 Interface implemented by objects representing persistent P2P groups.
2185
2186 \subsection dbus_persistent_group_properties Properties
2187
2188 <ul>
2189   <li>
2190     <h3>Properties - a{sv} - (read/write)</h3>
2191     <p>Properties of the persistent group. These are same properties as in the \ref dbus_network. When writing this, only the entries to be modified are included, i.e., any item that is not included will be left at its existing value. The following entries are used for persistent groups:</p>
2192     <table>
2193       <tr><th>Key</th><th>Value type</th><th>Description</th></tr>
2194       <tr><td>bssid</td><td>s</td><td>P2P Device Address of the GO in the persistent group.</td></tr>
2195       <tr><td>ssid</td><td>s</td><td>SSID of the group</td></tr>
2196       <tr><td>psk</td><td>s</td><td>Passphrase (on the GO and optionally on P2P Client) or PSK (on P2P Client if passphrase ise not known)</td></tr>
2197       <tr><td>disabled</td><td>s</td><td>Set to "2" to indicate special network block use as a P2P persistent group information</td></tr>
2198       <tr><td>mode</td><td>s</td><td>"3" on GO or "0" on P2P Client</td></tr>
2199     </table>
2200   </li>
2201 </ul>
2202
2203 */