]> git.ipfire.org Git - thirdparty/hostap.git/blame - doc/dbus.doxygen
Create DBus getter/setter for ScanInterval
[thirdparty/hostap.git] / doc / dbus.doxygen
CommitLineData
612bb516
JM
1/**
2\page dbus %wpa_supplicant D-Bus API
3
4This section documents the %wpa_supplicant D-Bus API. Every D-Bus
5interface implemented by %wpa_supplicant is described here including
6their methods, signals, and properties with arguments, returned
7values, and possible errors.
8
9Interfaces:
10- \ref dbus_main
11- \ref dbus_interface
12- \ref dbus_wps
13- \ref dbus_bss
14- \ref dbus_network
15
16
17\section dbus_main fi.w1.wpa_supplicant1
18
19Interface implemented by the main %wpa_supplicant D-Bus object
20registered in the bus with fi.w1.wpa_supplicant1 name.
21
22\subsection dbus_main_methods Methods
23
24 <ul>
25 <li>
26 <h3>CreateInterface ( a{sv} : args ) --> o : interface</h3>
27 <p>Registers a wireless interface in %wpa_supplicant.</p>
28 <h4>Arguments</h4>
29 <dl>
30 <dt>a{sv} : args</dt>
31 <dd>
32 A dictionary with arguments used to add the interface to %wpa_supplicant. The dictionary may contain the following entries:
33 <table>
34 <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
35 <tr><td>Ifname</td><td>s</td><td>Name of the network interface to control, e.g., wlan0</td><td>Yes</td>
36 <tr><td>Bridge_ifname</td><td>s</td><td>Name of the bridge interface to control, e.g., br0</td><td>No</td>
37 <tr><td>Driver</td><td>s</td><td>Driver name which the interface uses, e.g., nl80211</td><td>No</td>
38 </table>
39 </dd>
40 </dl>
41 <h4>Returns</h4>
42 <dl>
43 <dt>o : interface</dt>
44 <dd>A D-Bus path to object representing created interface</dd>
45 </dl>
46 <h4>Possible errors</h4>
47 <dl>
48 <dt>fi.w1.wpa_supplicant1.InterfaceExists</dt>
49 <dd>%wpa_supplicant already controls this interface.</dd>
50 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
51 <dd>Creating interface failed for an unknown reason.</dd>
52 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
53 <dd>Invalid entries were found in the passed argument.</dd>
54 </dl>
55 </li>
56
57 <li>
58 <h3>RemoveInterface ( o : interface ) --> nothing</h3>
59 <p>Deregisters a wireless interface from %wpa_supplicant.</p>
60 <h4>Arguments</h4>
61 <dl>
62 <dt>o : interface</dt>
63 <dd>A D-Bus path to an object representing an interface to remove returned by CreateInterface</dd>
64 </dl>
65 <h4>Possible errors</h4>
66 <dl>
67 <dt>fi.w1.wpa_supplicant1.InterfaceUnknown</dt>
68 <dd>Object pointed by the path doesn't exist or doesn't represent an interface.</dd>
69 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
70 <dd>Removing interface failed for an unknown reason.</dd>
71 </dl>
72 </li>
73
74 <li>
75 <h3>GetInterface ( s : ifname ) --> o : interface</h3>
76 <p>Returns a D-Bus path to an object related to an interface which %wpa_supplicant already controls.</p>
77 <h4>Arguments</h4>
78 <dl>
79 <dt>s : ifname</dt>
80 <dd>Name of the network interface, e.g., wlan0</dd>
81 </dl>
82 <h4>Returns</h4>
83 <dl>
84 <dt>o : interface</dt>
85 <dd>A D-Bus path to an object representing an interface</dd>
86 </dl>
87 <h4>Possible errors</h4>
88 <dl>
89 <dt>fi.w1.wpa_supplicant1.InterfaceUnknown</dt>
90 <dd>An interface with the passed name in not controlled by %wpa_supplicant.</dd>
91 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
92 <dd>Getting an interface object path failed for an unknown reason.</dd>
93 </dl>
94 </li>
95 </ul>
96
97\subsection dbus_main_properties Properties
98
99 <ul>
100 <li>
a2753c28 101 <h3>DebugLevel - s - (read/write)</h3>
2ea856aa 102 <p>Global %wpa_supplicant debugging level. Possible values are
a2753c28
MH
103 "msgdump" (verbose debugging), "debug" (debugging),
104 "info" (informative), "warning" (warnings), and "error" (errors).</p>
db9133ac
WS
105 </li>
106
107 <li>
108 <h3>DebugTimestamp - b - (read/write)</h3>
2ea856aa 109 <p>Global %wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
db9133ac
WS
110 </li>
111
112 <li>
113 <h3>DebugShowKeys - b - (read/write)</h3>
2ea856aa 114 <p>Global %wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
612bb516
JM
115 </li>
116
117 <li>
118 <h3>Interfaces - ao - (read)</h3>
119 <p>An array with paths to D-Bus objects representing controlled interfaces each.</p>
120 </li>
121
122 <li>
123 <h3>EapMethods - as - (read)</h3>
124 <p>An array with supported EAP methods names.</p>
125 </li>
126 </ul>
127
128\subsection dbus_main_signals Signals
129
130 <ul>
131 <li>
e376f119 132 <h3>InterfaceAdded ( o : interface, a{sv} : properties )</h3>
612bb516
JM
133 <p>A new interface was added to %wpa_supplicant.</p>
134 <h4>Arguments</h4>
135 <dl>
136 <dt>o : interface</dt>
137 <dd>A D-Bus path to an object representing the added interface</dd>
138 </dl>
e376f119
WS
139 <dl>
140 <dt>a{sv} : properties</dt>
141 <dd>A dictionary containing properties of added interface.</dd>
142 </dl>
612bb516
JM
143 </li>
144
145 <li>
146 <h3>InterfaceRemoved ( o : interface )</h3>
147 <p>An interface was removed from %wpa_supplicant.</p>
148 <h4>Arguments</h4>
149 <dl>
150 <dt>o : interface</dt>
151 <dd>A D-Bus path to an object representing the removed interface</dd>
152 </dl>
153 </li>
154
155 <li>
156 <h3>PropertiesChanged ( a{sv} : properties )</h3>
157 <p>Some properties have changed.</p>
158 <h4>Arguments</h4>
159 <dl>
160 <dt>a{sv} : properties</dt>
161 <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "DebugParams"</dd>
162 </dl>
163 </li>
164 </ul>
165
166
167\section dbus_interface fi.w1.wpa_supplicant1.Interface
168
169Interface implemented by objects related to network interface added to
170%wpa_supplicant, i.e., returned by
171fi.w1.wpa_supplicant1.CreateInterface.
172
173\subsection dbus_interface_methods Methods
174
175 <ul>
176 <li>
177 <h3>Scan ( a{sv} : args ) --> nothing</h3>
178 <p>Triggers a scan.</p>
179 <h4>Arguments</h4>
180 <dl>
181 <dt>a{sv} : args</dt>
182 <dd>
183 A dictionary with arguments describing scan type:
184 <table>
185 <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
186 <tr><td>Type</td><td>s</td><td>Type of the scan. Possible values: "active", "passive"</td><td>Yes</td>
187 <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>
188 <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>
189 <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>
190 </table>
191 </dd>
192 </dl>
193 <h4>Possible errors</h4>
194 <dl>
195 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
196 <dd>Invalid entries were found in the passed argument.</dd>
197 </dl>
198 </li>
199
200 <li>
201 <h3>Disconnect ( ) --> nothing</h3>
202 <p>Disassociates the interface from current network.</p>
203 <h4>Possible errors</h4>
204 <dl>
8e5568f8 205 <dt>fi.w1.wpa_supplicant1.NotConnected</dt>
612bb516
JM
206 <dd>Interface is not connected to any network.</dd>
207 </dl>
208 </li>
209
210 <li>
211 <h3>AddNetwork ( a{sv} : args ) --> o : network</h3>
212 <p>Adds a new network to the interface.</p>
213 <h4>Arguments</h4>
214 <dl>
215 <dt>a{sv} : args</dt>
216 <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>
217 </dl>
218 <h4>Returns</h4>
219 <dl>
220 <dt>o : network</dt>
221 <dd>A D-Bus path to an object representing a configured network</dd>
222 </dl>
223 <h4>Possible errors</h4>
224 <dl>
225 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
226 <dd>Invalid entries were found in the passed argument.</dd>
227 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
228 <dd>Adding network failed for an unknown reason.</dd>
229 </dl>
230 </li>
231
232 <li>
233 <h3>RemoveNetwork ( o : network ) --> nothing</h3>
234 <p>Removes a configured network from the interface.</p>
235 <h4>Arguments</h4>
236 <dl>
237 <dt>o : network</dt>
238 <dd>A D-Bus path to an object representing a configured network returned by fi.w1.wpa_supplicant1.Interface.AddNetwork</dd>
239 </dl>
240 <h4>Possible errors</h4>
241 <dl>
8e5568f8 242 <dt>fi.w1.wpa_supplicant1.NetworkUnknown</dt>
612bb516
JM
243 <dd>A passed path doesn't point to any network object.</dd>
244 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
245 <dd>A passed path doesn't point to any network object.</dd>
246 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
247 <dd>Removing network failed for an unknown reason.</dd>
248 </dl>
249 </li>
250
251 <li>
252 <h3>SelectNetwork ( o : network ) --> nothing</h3>
253 <p>Attempt association with a configured network.</p>
254 <h4>Arguments</h4>
255 <dl>
256 <dt>o : network</dt>
257 <dd>A D-Bus path to an object representing a configured network returned by fi.w1.wpa_supplicant1.Interface.AddNetwork</dd>
258 </dl>
259 <h4>Possible errors</h4>
260 <dl>
8e5568f8 261 <dt>fi.w1.wpa_supplicant1.NetworkUnknown</dt>
612bb516
JM
262 <dd>A passed path doesn't point to any network object.</dd>
263 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
264 <dd>A passed path doesn't point to any network object.</dd>
265 </dl>
266 </li>
267
268 <li>
269 <h3>AddBlob ( s : name, ay : data ) --> nothing</h3>
270 <p>Adds a blob to the interface.</p>
271 <h4>Arguments</h4>
272 <dl>
273 <dt>s : name</dt>
274 <dd>A name of a blob</dd>
275 <dt>ay : data</dt>
276 <dd>A blob data</dd>
277 </dl>
278 <h4>Possible errors</h4>
279 <dl>
8e5568f8 280 <dt>fi.w1.wpa_supplicant1.BlobExists</dt>
612bb516
JM
281 <dd>A blob with the specified name already exists.</dd>
282 </dl>
283 </li>
284
285 <li>
286 <h3>RemoveBlob ( s : name ) --> nothing</h3>
287 <p>Removes the blob from the interface.</p>
288 <h4>Arguments</h4>
289 <dl>
290 <dt>s : name</dt>
291 <dd>A name of the blob to remove</dd>
292 </dl>
293 <h4>Possible errors</h4>
294 <dl>
8e5568f8 295 <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
612bb516
JM
296 <dd>A blob with the specified name doesn't exist.</dd>
297 </dl>
298 </li>
299
300 <li>
301 <h3>GetBlob ( s : name ) --> ay : data</h3>
302 <p>Returns the blob data of a previously added blob.</p>
303 <h4>Arguments</h4>
304 <dl>
305 <dt>s : name</dt>
306 <dd>A name of the blob</dd>
307 </dl>
308 <h4>Returns</h4>
309 <dl>
310 <dt>ay : data</dt>
311 <dd>A blob data</dd>
312 </dl>
313 <h4>Possible errors</h4>
314 <dl>
8e5568f8 315 <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
612bb516
JM
316 <dd>A blob with the specified name doesn't exist.</dd>
317 </dl>
318 </li>
319 </ul>
320
321\subsection dbus_interface_properties Properties
322
323 <ul>
324 <li>
325 <h3>Capabilities - a{sv} - (read)</h3>
326 <p>Capabilities of the interface. Dictionary contains following entries:</p>
327 <table>
328 <tr><th>Key</th><th>Value type</th><th>Description</th>
329 <tr><td>Pairwise</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "none"</td>
330 <tr><td>Group</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "wep104", "wep40"</td>
c56ce48a 331 <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>
612bb516
JM
332 <tr><td>Protocol</td><td>as</td><td>Possible array elements: "rsn", "wpa"</td>
333 <tr><td>AuthAlg</td><td>as</td><td>Possible array elements: "open", "shared", "leap"</td>
334 <tr><td>Scan</td><td>as</td><td>Possible array elements: "active", "passive", "ssid"</td>
335 <tr><td>Modes</td><td>as</td><td>Possible array elements: "infrastructure", "ad-hoc", "ap"</td>
336 </table>
337 </li>
338
339 <li>
340 <h3>State - s - (read)</h3>
341 <p>A state of the interface. Possible values are: return "disconnected", "inactive", "scanning", "authenticating", "associating", "associated", "4way_handshake", "group_handshake", "completed","unknown".</p>
342 </li>
343
344 <li>
345 <h3>Scanning - b - (read)</h3>
346 <p>Determines if the interface is already scanning or not</p>
347 </li>
348
349 <li>
350 <h3>ApScan - u - (read/write)</h3>
351 <p>Identical to ap_scan entry in %wpa_supplicant configuration file. Possible values are 0, 1 or 2.</p>
352 </li>
353
c6e86b63
MA
354 <li>
355 <h3>BSSExpireAge - u - (read/write)</h3>
356 <p>Identical to bss_expiration_age entry in %wpa_supplicant configuration file.</p>
357 </li>
358
359 <li>
360 <h3>BSSExpireCount - u - (read/write)</h3>
361 <p>Identical to bss_expiration_scan_count entry in %wpa_supplicant configuration file.</p>
362 </li>
363
364 <li>
365 <h3>Country - s - (read/write)</h3>
366 <p>Identical to country entry in %wpa_supplicant configuration file.</p>
367 </li>
368
612bb516
JM
369 <li>
370 <h3>Ifname - s - (read)</h3>
371 <p>Name of network interface controlled by the interface, e.g., wlan0.</p>
372 </li>
373
374 <li>
375 <h3>BridgeIfname - s - (read)</h3>
376 <p>Name of bridge network interface controlled by the interface, e.g., br0.</p>
377 </li>
378
379 <li>
380 <h3>Driver - s - (read)</h3>
381 <p>Name of driver used by the interface, e.g., nl80211.</p>
382 </li>
383
384 <li>
385 <h3>CurrentBSS - o - (read)</h3>
386 <p>Path to D-Bus object representing BSS which %wpa_supplicant is associated with, or "/" if is not associated at all.</p>
387 </li>
388
389 <li>
390 <h3>CurrentNetwork - o - (read)</h3>
391 <p>Path to D-Bus object representing configured network which %wpa_supplicant uses at the moment, or "/" if doesn't use any.</p>
392 </li>
393
394 <li>
395 <h3>Blobs - as - (read)</h3>
396 <p>List of blobs names added to the Interface.</p>
397 </li>
398
399 <li>
400 <h3>BSSs - ao - (read)</h3>
401 <p>List of D-Bus objects paths representing BSSs known to the interface, i.e., scan results.</p>
402 </li>
403
404 <li>
405 <h3>Networks - ao - (read)</h3>
406 <p>List of D-Bus objects paths representing configured networks.</p>
407 </li>
c6e86b63
MA
408
409 <li>
410 <h3>FastReauth - b - (read/write)</h3>
411 <p>Identical to fast_reauth entry in %wpa_supplicant configuration file.</p>
412 </li>
413
414 <li>
415 <h3>ScanInterval - i - (read/write)</h3>
416 <p>Time (in seconds) between scans for a suitable AP. Must be >= 0.</p>
417 </li>
612bb516
JM
418 </ul>
419
420\subsection dbus_interface_signals Signals
421
422 <ul>
423 <li>
424 <h3>ScanDone ( b : success )</h3>
425 <p>Scanning finished. </p>
426 <h4>Arguments</h4>
427 <dl>
428 <dt>s : success</dt>
429 <dd>Determines if scanning was successful. If so, results are available.</dd>
430 </dl>
431 </li>
432
612bb516 433 <li>
e376f119 434 <h3>BSSAdded ( o : BSS, a{sv} : properties )</h3>
612bb516
JM
435 <p>Interface became aware of a new BSS.</p>
436 <h4>Arguments</h4>
437 <dl>
438 <dt>o : BSS</dt>
439 <dd>A D-Bus path to an object representing the new BSS.</dd>
440 </dl>
e376f119
WS
441 <dl>
442 <dt>a{sv} : properties</dt>
443 <dd>A dictionary containing properties of added BSS.</dd>
444 </dl>
612bb516
JM
445 </li>
446
447 <li>
448 <h3>BSSRemoved ( o : BSS )</h3>
449 <p>BSS disappeared.</p>
450 <h4>Arguments</h4>
451 <dl>
452 <dt>o : BSS</dt>
453 <dd>A D-Bus path to an object representing the BSS.</dd>
454 </dl>
455 </li>
456
457 <li>
458 <h3>BlobAdded ( s : blobName )</h3>
459 <p>A new blob has been added to the interface.</p>
460 <h4>Arguments</h4>
461 <dl>
462 <dt>s : blobName</dt>
463 <dd>A name of the added blob.</dd>
464 </dl>
465 </li>
466
467 <li>
468 <h3>BlobRemoved ( s : blobName )</h3>
469 <p>A blob has been removed from the interface.</p>
470 <h4>Arguments</h4>
471 <dl>
472 <dt>s : blobName</dt>
473 <dd>A name of the removed blob.</dd>
474 </dl>
475 </li>
476
477 <li>
e376f119 478 <h3>NetworkAdded ( o : network, a{sv} : properties )</h3>
612bb516
JM
479 <p>A new network has been added to the interface.</p>
480 <h4>Arguments</h4>
481 <dl>
482 <dt>o : network</dt>
483 <dd>A D-Bus path to an object representing the added network.</dd>
484 </dl>
e376f119
WS
485 <dl>
486 <dt>a{sv} : properties</dt>
487 <dd>A dictionary containing properties of added network.</dd>
488 </dl>
612bb516
JM
489 </li>
490
491 <li>
492 <h3>NetworkRemoved ( o : network )</h3>
493 <p>The network has been removed from the interface.</p>
494 <h4>Arguments</h4>
495 <dl>
496 <dt>o : network</dt>
497 <dd>A D-Bus path to an object representing the removed network.</dd>
498 </dl>
499 </li>
500
501 <li>
502 <h3>NetworkSelected ( o : network )</h3>
503 <p>The network has been selected.</p>
504 <h4>Arguments</h4>
505 <dl>
506 <dt>o : network</dt>
507 <dd>A D-Bus path to an object representing the selected network.</dd>
508 </dl>
509 </li>
510
511 <li>
512 <h3>PropertiesChanged ( a{sv} : properties )</h3>
513 <p>Some properties have changed.</p>
514 <h4>Arguments</h4>
515 <dl>
516 <dt>a{sv} : properties</dt>
27f43d8d 517 <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>
612bb516
JM
518 </dl>
519 </li>
520 </ul>
521
522
523\section dbus_wps fi.w1.wpa_supplicant1.Interface.WPS
524
525Interface implemented by objects related to network interface added to
d89530f7 526%wpa_supplicant, i.e., returned by fi.w1.wpa_supplicant1.CreateInterface.
612bb516
JM
527
528\subsection dbus_wps_methods Methods
529
530 <ul>
531 <li>
532 <h3>Start ( a{sv} : args ) --> a{sv} : output</h3>
533 <p>Starts WPS configuration.</p>
534 <h4>Arguments</h4>
535 <dl>
536 <dt>a{sv} : args</dt>
537 <dd>
538 A dictionary with arguments used to start WPS configuration. The dictionary may contain the following entries:
539 <table>
540 <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
541 <tr><td>Role</td><td>s</td><td>The device's role. Possible values are "enrollee" and "registrar".</td><td>Yes</td>
542 <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>
543 <tr><td>Pin</td><td>s</td><td>WPS Pin.</td><td>Yes, for registrar role; otherwise optional</td>
544 <tr><td>Bssid</td><td>ay</td><td></td><td>No</td>
545 </table>
546 </dd>
547 </dl>
548 <h4>Returns</h4>
549 <dl>
550 <dt>a{sv} : output</dt>
551 <dd>
552 <table>
553 <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
554 <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>
555 </table>
556 </dd>
557 </dl>
558 <h4>Possible errors</h4>
559 <dl>
560 <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
561 <dd>Starting WPS configuration failed for an unknown reason.</dd>
562 <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
563 <dd>Invalid entries were found in the passed argument.</dd>
564 </dl>
565 </li>
566 </ul>
567
568\subsection dbus_wps_properties Properties
569
570 <ul>
571 <li>
572 <h3>ProcessCredentials - b - (read/write)</h3>
573 <p>Determines if the interface will process the credentials (credentials_processed configuration file parameter).</p>
574 </li>
575 </ul>
576
577\subsection dbus_wps_signals Signals
578
579 <ul>
580 <li>
581 <h3>Event ( s : name, a{sv} : args )</h3>
582 <p>WPS event occurred.</p>
583 <h4>Arguments</h4>
584 <dl>
585 <dt>s : event</dt>
586 <dd>Event type. Possible values are: "success, "fail" and "m2d"</dd>
587 <dt>a{sv} : args</dt>
588 <dd>
589 Event arguments. Empty for success event, one entry ( "msg" : i ) for fail event and following entries for m2d event:
590 <table>
591 <tr><th>config_methods</th><th>Value type</th>
592 <tr><td>manufacturer</td><td>q</td>
593 <tr><td>model_name</td><td>ay</td>
594 <tr><td>model_number</td><td>ay</td>
595 <tr><td>serial_number</td><td>ay</td>
596 <tr><td>dev_name</td><td>ay</td>
597 <tr><td>primary_dev_type</td><td>ay</td>
598 <tr><td>config_error</td><td>q</td>
599 <tr><td>dev_password_id</td><td>q</td>
600 </table>
601 </dd>
602 </dl>
603 </li>
604
605 <li>
606 <h3>Credentials ( a{sv} : credentials )</h3>
607 <p>WPS credentials. Dictionary contains:</p>
608 <table>
609 <tr><th>Key</th><th>Value type</th><th>Description</th>
610 <tr><td>BSSID</td><td>ay</td><td></td>
611 <tr><td>SSID</td><td>s</td><td></td>
612 <tr><td>AuthType</td><td>as</td><td>Possible array elements: "open", "shared", "wpa-psk", "wpa-eap", "wpa2-eap", "wpa2-psk"</td>
613 <tr><td>EncrType</td><td>as</td><td>Possible array elements: "none", "wep", "tkip", "aes"</td>
614 <tr><td>Key</td><td>ay</td><td>Key data</td>
615 <tr><td>KeyIndex</td><td>u</td><td>Key index</td>
616 </table>
617 </li>
618
619 <li>
620 <h3>PropertiesChanged ( a{sv} : properties )</h3>
621 <p>Some properties have changed.</p>
622 <h4>Arguments</h4>
623 <dl>
624 <dt>a{sv} : properties</dt>
625 <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "ProcessCredentials"</dd>
626 </dl>
627 </li>
628 </ul>
629
630
8e5568f8 631\section dbus_bss fi.w1.wpa_supplicant1.BSS
612bb516
JM
632
633Interface implemented by objects representing a scanned BSSs, i.e.,
634scan results.
635
636\subsection dbus_bss_properties Properties
637
638 <ul>
639 <li>
58605c6e
WS
640 <h3>BSSID - ay - (read)</h3>
641 <p>BSSID of the BSS.</p>
642 </li>
643 <li>
644 <h3>SSID - ay - (read)</h3>
645 <p>SSID of the BSS.</p>
646 </li>
647 <li>
7899e2f4
WS
648 <h3>WPA - a{sv} - (read)</h3>
649 <p>WPA information of the BSS. Empty dictionary indicates no WPA support. Dictionary entries are:</p>
650 <table>
651 <tr><td>KeyMgmt</td><td>as</td><td>Key management suite. Possible array elements: "wpa-psk", "wpa-eap", "wpa-none"</td>
652 <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
653 <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
654 </table>
58605c6e
WS
655 </li>
656 <li>
7899e2f4
WS
657 <h3>RSN - a{sv} - (read)</h3>
658 <p>RSN information of the BSS. Empty dictionary indicates no RSN support. Dictionary entries are:</p>
659 <table>
660 <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>
661 <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
662 <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
663 <tr><td>MgmtGroup</td><td>s</td><td>Mangement frames cipher suite. Possible values are: "aes128cmac"</td>
664 </table>
58605c6e
WS
665 </li>
666 <li>
7899e2f4
WS
667 <h3>IEs - ay - (read)</h3>
668 <p>All IEs of the BSS as a chain of TLVs</p>
58605c6e
WS
669 </li>
670 <li>
671 <h3>Privacy - b - (read)</h3>
672 <p>Indicates if BSS supports privacy.</p>
673 </li>
674 <li>
675 <h3>Mode - s - (read)</h3>
676 <p>Describes mode of the BSS. Possible values are: "ad-hoc" and "infrastructure".</p>
677 </li>
678 <li>
679 <h3>Frequency - q - (read)</h3>
680 <p>Frequency of the BSS in MHz.</p>
681 </li>
682 <li>
75d328af
WS
683 <h3>Rates - au - (read)</h3>
684 <p>Descending ordered array of rates supported by the BSS in bits per second.</p>
58605c6e
WS
685 </li>
686 <li>
687 <h3>Signal - n - (read)</h3>
688 <p>Signal strength of the BSS.</p>
612bb516
JM
689 </li>
690 </ul>
12694895
JM
691
692\subsection dbus_bss_signals Signals
693
694 <ul>
695 <li>
696 <h3>PropertiesChanged ( a{sv} : properties )</h3>
697 <p>Some properties have changed.</p>
698 <h4>Arguments</h4>
699 <dl>
700 <dt>a{sv} : properties</dt>
701 <dd>A dictionary with pairs of properties names which have changed and theirs new values.</dd>
702 </dl>
703 </li>
704 </ul>
612bb516
JM
705
706
8e5568f8 707\section dbus_network fi.w1.wpa_supplicant1.Network
612bb516
JM
708
709Interface implemented by objects representing configured networks,
710i.e., returned by fi.w1.wpa_supplicant1.Interface.AddNetwork.
711
712\subsection dbus_network_properties Properties
713
714 <ul>
715 <li>
716 <h3>Enabled - b - (read/write)</h3>
717 <p>Determines if the configured network is enabled or not.</p>
718 </li>
719
720 <li>
721 <h3>Properties - a{sv} - (read)</h3>
722 <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.
723 </li>
724 </ul>
725
726\subsection dbus_network_signals Signals
727
728 <ul>
729 <li>
730 <h3>PropertiesChanged ( a{sv} : properties )</h3>
731 <p>Some properties have changed.</p>
732 <h4>Arguments</h4>
733 <dl>
734 <dt>a{sv} : properties</dt>
735 <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "Enabled"</dd>
736 </dl>
737 </li>
738 </ul>
739
740*/