dbus.doxygen 24 KB

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