dbus.doxygen 24 KB

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