dbus.doxygen 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891
  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>Reassociate ( ) --> nothing</h3>
  242. <p>Attempt reassociation.</p>
  243. <h4>Possible errors</h4>
  244. <dl>
  245. <dt>fi.w1.wpa_supplicant1.InterfaceDisabled</dt>
  246. <dd>The interface is disabled.</dd>
  247. </dl>
  248. </li>
  249. <li>
  250. <h3>AddBlob ( s : name, ay : data ) --> nothing</h3>
  251. <p>Adds a blob to the interface.</p>
  252. <h4>Arguments</h4>
  253. <dl>
  254. <dt>s : name</dt>
  255. <dd>A name of a blob</dd>
  256. <dt>ay : data</dt>
  257. <dd>A blob data</dd>
  258. </dl>
  259. <h4>Possible errors</h4>
  260. <dl>
  261. <dt>fi.w1.wpa_supplicant1.BlobExists</dt>
  262. <dd>A blob with the specified name already exists.</dd>
  263. </dl>
  264. </li>
  265. <li>
  266. <h3>RemoveBlob ( s : name ) --> nothing</h3>
  267. <p>Removes the blob from the interface.</p>
  268. <h4>Arguments</h4>
  269. <dl>
  270. <dt>s : name</dt>
  271. <dd>A name of the blob to remove</dd>
  272. </dl>
  273. <h4>Possible errors</h4>
  274. <dl>
  275. <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
  276. <dd>A blob with the specified name doesn't exist.</dd>
  277. </dl>
  278. </li>
  279. <li>
  280. <h3>GetBlob ( s : name ) --> ay : data</h3>
  281. <p>Returns the blob data of a previously added blob.</p>
  282. <h4>Arguments</h4>
  283. <dl>
  284. <dt>s : name</dt>
  285. <dd>A name of the blob</dd>
  286. </dl>
  287. <h4>Returns</h4>
  288. <dl>
  289. <dt>ay : data</dt>
  290. <dd>A blob data</dd>
  291. </dl>
  292. <h4>Possible errors</h4>
  293. <dl>
  294. <dt>fi.w1.wpa_supplicant1.BlobUnknown</dt>
  295. <dd>A blob with the specified name doesn't exist.</dd>
  296. </dl>
  297. </li>
  298. <li>
  299. <h3>AutoScan ( s : arg ) --> nothing</h3>
  300. <p>Set autoscan parameters for the interface.</p>
  301. <h4>Arguments</h4>
  302. <dl>
  303. <dt>s : arg</dt>
  304. <dd>Autoscan parameter line or empty to unset autoscan.</dd>
  305. </dl>
  306. <h4>Possible errors</h4>
  307. <dl>
  308. <dt>fi.w1.wpa_supplicant1.NoMemory</dt>
  309. <dd>Needed memory was not possible to get allocated.</dd>
  310. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  311. <dd>Invalid entries were found in the passed argument.</dd>
  312. </dl>
  313. </li>
  314. <li>
  315. <h3>TDLSDiscover ( s : peer_address ) --> nothing</h3>
  316. <p>Initiate a TDLS discovery for a peer.</p>
  317. <h4>Arguments</h4>
  318. <dl>
  319. <dt>s : peer_address</dt>
  320. <dd>MAC address for the peer to perform TDLS discovery.</dd>
  321. </dl>
  322. <h4>Possible errors</h4>
  323. <dl>
  324. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  325. <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
  326. <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
  327. <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
  328. </dl>
  329. </li>
  330. <li>
  331. <h3>TDLSSetup ( s : peer_address ) --> nothing</h3>
  332. <p>Setup a TDLS session for a peer.</p>
  333. <h4>Arguments</h4>
  334. <dl>
  335. <dt>s : peer_address</dt>
  336. <dd>MAC address for the peer to perform TDLS setup.</dd>
  337. </dl>
  338. <h4>Possible errors</h4>
  339. <dl>
  340. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  341. <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
  342. <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
  343. <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
  344. </dl>
  345. </li>
  346. <li>
  347. <h3>TDLSStatus ( s : peer_address ) --> s</h3>
  348. <p>Return TDLS status with respect to a peer.</p>
  349. <h4>Arguments</h4>
  350. <dl>
  351. <dt>s : peer_address</dt>
  352. <dd>MAC address for the peer for which status is requested.</dd>
  353. </dl>
  354. <h4>Returns</h4>
  355. <dl>
  356. <dt>s : status</dt>
  357. <dd>Current status of the TDLS link with the selected peer.</dd>
  358. </dl>
  359. <h4>Possible errors</h4>
  360. <dl>
  361. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  362. <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
  363. </dl>
  364. </li>
  365. <li>
  366. <h3>TDLSTeardown ( s : peer_address ) --> nothing</h3>
  367. <p>Tear down a TDLS session with a peer.</p>
  368. <h4>Arguments</h4>
  369. <dl>
  370. <dt>s : peer_address</dt>
  371. <dd>MAC address for the peer to tear down TDLS connectivity with.</dd>
  372. </dl>
  373. <h4>Possible errors</h4>
  374. <dl>
  375. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  376. <dd>The "peer_address" argument is not a properly formatted MAC.</dd>
  377. <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
  378. <dd>Initiating the TDLS operation failed for an unknown reason.</dd>
  379. </dl>
  380. </li>
  381. <li>
  382. <h3>EAPLogoff ( ) --> nothing</h3>
  383. <p>IEEE 802.1X EAPOL state machine logoff.</p>
  384. </li>
  385. <li>
  386. <h3>EAPLogon ( ) --> nothing</h3>
  387. <p>IEEE 802.1X EAPOL state machine logon.</p>
  388. </li>
  389. <li>
  390. <h3>SetPKCS11EngineAndModulePath ( s : pkcs11_engine_path, s : pkcs11_module_path ) --> nothing</h3>
  391. <p>Set PKCS #11 engine and module path.</p>
  392. <h4>Arguments</h4>
  393. <dl>
  394. <dt>s : pkcs11_engine_path</dt>
  395. <dd>PKCS #11 engine path.</dd>
  396. <dt>s : pkcs11_module_path</dt>
  397. <dd>PKCS #11 module path.</dd>
  398. </dl>
  399. <h4>Possible errors</h4>
  400. <dl>
  401. <dt>org.freedesktop.DBus.Error.Failed.InvalidArgs</dt>
  402. <dd>Invalid PKCS #11 engine or module path.</dd>
  403. <dt>org.freedesktop.DBus.Error.Failed</dt>
  404. <dd>Reinit of the EAPOL state machine with the new PKCS #11 engine and module path failed.</dd>
  405. </dl>
  406. </li>
  407. </ul>
  408. \subsection dbus_interface_properties Properties
  409. <ul>
  410. <li>
  411. <h3>Capabilities - a{sv} - (read)</h3>
  412. <p>Capabilities of the interface. Dictionary contains following entries:</p>
  413. <table>
  414. <tr><th>Key</th><th>Value type</th><th>Description</th>
  415. <tr><td>Pairwise</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "none"</td>
  416. <tr><td>Group</td><td>as</td><td>Possible array elements: "ccmp", "tkip", "wep104", "wep40"</td>
  417. <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>
  418. <tr><td>Protocol</td><td>as</td><td>Possible array elements: "rsn", "wpa"</td>
  419. <tr><td>AuthAlg</td><td>as</td><td>Possible array elements: "open", "shared", "leap"</td>
  420. <tr><td>Scan</td><td>as</td><td>Possible array elements: "active", "passive", "ssid"</td>
  421. <tr><td>Modes</td><td>as</td><td>Possible array elements: "infrastructure", "ad-hoc", "ap"</td>
  422. </table>
  423. </li>
  424. <li>
  425. <h3>State - s - (read)</h3>
  426. <p>A state of the interface. Possible values are: return "disconnected", "inactive", "scanning", "authenticating", "associating", "associated", "4way_handshake", "group_handshake", "completed","unknown".</p>
  427. </li>
  428. <li>
  429. <h3>Scanning - b - (read)</h3>
  430. <p>Determines if the interface is already scanning or not</p>
  431. </li>
  432. <li>
  433. <h3>ApScan - u - (read/write)</h3>
  434. <p>Identical to ap_scan entry in %wpa_supplicant configuration file. Possible values are 0, 1 or 2.</p>
  435. </li>
  436. <li>
  437. <h3>BSSExpireAge - u - (read/write)</h3>
  438. <p>Identical to bss_expiration_age entry in %wpa_supplicant configuration file.</p>
  439. </li>
  440. <li>
  441. <h3>BSSExpireCount - u - (read/write)</h3>
  442. <p>Identical to bss_expiration_scan_count entry in %wpa_supplicant configuration file.</p>
  443. </li>
  444. <li>
  445. <h3>Country - s - (read/write)</h3>
  446. <p>Identical to country entry in %wpa_supplicant configuration file.</p>
  447. </li>
  448. <li>
  449. <h3>Ifname - s - (read)</h3>
  450. <p>Name of network interface controlled by the interface, e.g., wlan0.</p>
  451. </li>
  452. <li>
  453. <h3>BridgeIfname - s - (read)</h3>
  454. <p>Name of bridge network interface controlled by the interface, e.g., br0.</p>
  455. </li>
  456. <li>
  457. <h3>Driver - s - (read)</h3>
  458. <p>Name of driver used by the interface, e.g., nl80211.</p>
  459. </li>
  460. <li>
  461. <h3>CurrentBSS - o - (read)</h3>
  462. <p>Path to D-Bus object representing BSS which %wpa_supplicant is associated with, or "/" if is not associated at all.</p>
  463. </li>
  464. <li>
  465. <h3>CurrentNetwork - o - (read)</h3>
  466. <p>Path to D-Bus object representing configured network which %wpa_supplicant uses at the moment, or "/" if doesn't use any.</p>
  467. </li>
  468. <li>
  469. <h3>Blobs - as - (read)</h3>
  470. <p>List of blobs names added to the Interface.</p>
  471. </li>
  472. <li>
  473. <h3>BSSs - ao - (read)</h3>
  474. <p>List of D-Bus objects paths representing BSSs known to the interface, i.e., scan results.</p>
  475. </li>
  476. <li>
  477. <h3>Networks - ao - (read)</h3>
  478. <p>List of D-Bus objects paths representing configured networks.</p>
  479. </li>
  480. <li>
  481. <h3>FastReauth - b - (read/write)</h3>
  482. <p>Identical to fast_reauth entry in %wpa_supplicant configuration file.</p>
  483. </li>
  484. <li>
  485. <h3>ScanInterval - i - (read/write)</h3>
  486. <p>Time (in seconds) between scans for a suitable AP. Must be >= 0.</p>
  487. </li>
  488. <li>
  489. <h3>PKCS11EnginePath - s - (read)</h3>
  490. <p>PKCS #11 engine path.</p>
  491. </li>
  492. <li>
  493. <h3>PKCS11ModulePath - s - (read)</h3>
  494. <p>PKCS #11 module path.</p>
  495. </li>
  496. </ul>
  497. \subsection dbus_interface_signals Signals
  498. <ul>
  499. <li>
  500. <h3>ScanDone ( b : success )</h3>
  501. <p>Scanning finished. </p>
  502. <h4>Arguments</h4>
  503. <dl>
  504. <dt>s : success</dt>
  505. <dd>Determines if scanning was successful. If so, results are available.</dd>
  506. </dl>
  507. </li>
  508. <li>
  509. <h3>BSSAdded ( o : BSS, a{sv} : properties )</h3>
  510. <p>Interface became aware of a new BSS.</p>
  511. <h4>Arguments</h4>
  512. <dl>
  513. <dt>o : BSS</dt>
  514. <dd>A D-Bus path to an object representing the new BSS.</dd>
  515. </dl>
  516. <dl>
  517. <dt>a{sv} : properties</dt>
  518. <dd>A dictionary containing properties of added BSS.</dd>
  519. </dl>
  520. </li>
  521. <li>
  522. <h3>BSSRemoved ( o : BSS )</h3>
  523. <p>BSS disappeared.</p>
  524. <h4>Arguments</h4>
  525. <dl>
  526. <dt>o : BSS</dt>
  527. <dd>A D-Bus path to an object representing the BSS.</dd>
  528. </dl>
  529. </li>
  530. <li>
  531. <h3>BlobAdded ( s : blobName )</h3>
  532. <p>A new blob has been added to the interface.</p>
  533. <h4>Arguments</h4>
  534. <dl>
  535. <dt>s : blobName</dt>
  536. <dd>A name of the added blob.</dd>
  537. </dl>
  538. </li>
  539. <li>
  540. <h3>BlobRemoved ( s : blobName )</h3>
  541. <p>A blob has been removed from the interface.</p>
  542. <h4>Arguments</h4>
  543. <dl>
  544. <dt>s : blobName</dt>
  545. <dd>A name of the removed blob.</dd>
  546. </dl>
  547. </li>
  548. <li>
  549. <h3>NetworkAdded ( o : network, a{sv} : properties )</h3>
  550. <p>A new network has been added to the interface.</p>
  551. <h4>Arguments</h4>
  552. <dl>
  553. <dt>o : network</dt>
  554. <dd>A D-Bus path to an object representing the added network.</dd>
  555. </dl>
  556. <dl>
  557. <dt>a{sv} : properties</dt>
  558. <dd>A dictionary containing properties of added network.</dd>
  559. </dl>
  560. </li>
  561. <li>
  562. <h3>NetworkRemoved ( o : network )</h3>
  563. <p>The network has been removed from the interface.</p>
  564. <h4>Arguments</h4>
  565. <dl>
  566. <dt>o : network</dt>
  567. <dd>A D-Bus path to an object representing the removed network.</dd>
  568. </dl>
  569. </li>
  570. <li>
  571. <h3>NetworkSelected ( o : network )</h3>
  572. <p>The network has been selected.</p>
  573. <h4>Arguments</h4>
  574. <dl>
  575. <dt>o : network</dt>
  576. <dd>A D-Bus path to an object representing the selected network.</dd>
  577. </dl>
  578. </li>
  579. <li>
  580. <h3>StaAuthorized ( s : mac )</h3>
  581. <p>A new station has been authorized to the interface.</p>
  582. <h4>Arguments</h4>
  583. <dl>
  584. <dt>s : mac</dt>
  585. <dd>A mac address which has been authorized.</dd>
  586. </dl>
  587. </li>
  588. <li>
  589. <h3>StaDeauthorized ( s : mac )</h3>
  590. <p>A station has been deauthorized to the interface.</p>
  591. <h4>Arguments</h4>
  592. <dl>
  593. <dt>s : mac</dt>
  594. <dd>A mac address which has been deauthorized.</dd>
  595. </dl>
  596. </li>
  597. <li>
  598. <h3>PropertiesChanged ( a{sv} : properties )</h3>
  599. <p>Some properties have changed.</p>
  600. <h4>Arguments</h4>
  601. <dl>
  602. <dt>a{sv} : properties</dt>
  603. <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>
  604. </dl>
  605. </li>
  606. </ul>
  607. \section dbus_wps fi.w1.wpa_supplicant1.Interface.WPS
  608. Interface implemented by objects related to network interface added to
  609. %wpa_supplicant, i.e., returned by fi.w1.wpa_supplicant1.CreateInterface.
  610. \subsection dbus_wps_methods Methods
  611. <ul>
  612. <li>
  613. <h3>Start ( a{sv} : args ) --> a{sv} : output</h3>
  614. <p>Starts WPS configuration.</p>
  615. <h4>Arguments</h4>
  616. <dl>
  617. <dt>a{sv} : args</dt>
  618. <dd>
  619. A dictionary with arguments used to start WPS configuration. The dictionary may contain the following entries:
  620. <table>
  621. <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
  622. <tr><td>Role</td><td>s</td><td>The device's role. Possible values are "enrollee" and "registrar".</td><td>Yes</td>
  623. <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>
  624. <tr><td>Pin</td><td>s</td><td>WPS Pin.</td><td>Yes, for registrar role; otherwise optional</td>
  625. <tr><td>Bssid</td><td>ay</td><td></td><td>No</td>
  626. </table>
  627. </dd>
  628. </dl>
  629. <h4>Returns</h4>
  630. <dl>
  631. <dt>a{sv} : output</dt>
  632. <dd>
  633. <table>
  634. <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
  635. <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>
  636. </table>
  637. </dd>
  638. </dl>
  639. <h4>Possible errors</h4>
  640. <dl>
  641. <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
  642. <dd>Starting WPS configuration failed for an unknown reason.</dd>
  643. <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
  644. <dd>Invalid entries were found in the passed argument.</dd>
  645. </dl>
  646. </li>
  647. </ul>
  648. \subsection dbus_wps_properties Properties
  649. <ul>
  650. <li>
  651. <h3>ProcessCredentials - b - (read/write)</h3>
  652. <p>Determines if the interface will process the credentials (credentials_processed configuration file parameter).</p>
  653. </li>
  654. </ul>
  655. \subsection dbus_wps_signals Signals
  656. <ul>
  657. <li>
  658. <h3>Event ( s : name, a{sv} : args )</h3>
  659. <p>WPS event occurred.</p>
  660. <h4>Arguments</h4>
  661. <dl>
  662. <dt>s : event</dt>
  663. <dd>Event type. Possible values are: "success, "fail" and "m2d"</dd>
  664. <dt>a{sv} : args</dt>
  665. <dd>
  666. Event arguments. Empty for success event, one entry ( "msg" : i ) for fail event and following entries for m2d event:
  667. <table>
  668. <tr><th>config_methods</th><th>Value type</th>
  669. <tr><td>manufacturer</td><td>q</td>
  670. <tr><td>model_name</td><td>ay</td>
  671. <tr><td>model_number</td><td>ay</td>
  672. <tr><td>serial_number</td><td>ay</td>
  673. <tr><td>dev_name</td><td>ay</td>
  674. <tr><td>primary_dev_type</td><td>ay</td>
  675. <tr><td>config_error</td><td>q</td>
  676. <tr><td>dev_password_id</td><td>q</td>
  677. </table>
  678. </dd>
  679. </dl>
  680. </li>
  681. <li>
  682. <h3>Credentials ( a{sv} : credentials )</h3>
  683. <p>WPS credentials. Dictionary contains:</p>
  684. <table>
  685. <tr><th>Key</th><th>Value type</th><th>Description</th>
  686. <tr><td>BSSID</td><td>ay</td><td></td>
  687. <tr><td>SSID</td><td>s</td><td></td>
  688. <tr><td>AuthType</td><td>as</td><td>Possible array elements: "open", "shared", "wpa-psk", "wpa-eap", "wpa2-eap", "wpa2-psk"</td>
  689. <tr><td>EncrType</td><td>as</td><td>Possible array elements: "none", "wep", "tkip", "aes"</td>
  690. <tr><td>Key</td><td>ay</td><td>Key data</td>
  691. <tr><td>KeyIndex</td><td>u</td><td>Key index</td>
  692. </table>
  693. </li>
  694. <li>
  695. <h3>PropertiesChanged ( a{sv} : properties )</h3>
  696. <p>Some properties have changed.</p>
  697. <h4>Arguments</h4>
  698. <dl>
  699. <dt>a{sv} : properties</dt>
  700. <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "ProcessCredentials"</dd>
  701. </dl>
  702. </li>
  703. </ul>
  704. \section dbus_bss fi.w1.wpa_supplicant1.BSS
  705. Interface implemented by objects representing a scanned BSSs, i.e.,
  706. scan results.
  707. \subsection dbus_bss_properties Properties
  708. <ul>
  709. <li>
  710. <h3>BSSID - ay - (read)</h3>
  711. <p>BSSID of the BSS.</p>
  712. </li>
  713. <li>
  714. <h3>SSID - ay - (read)</h3>
  715. <p>SSID of the BSS.</p>
  716. </li>
  717. <li>
  718. <h3>WPA - a{sv} - (read)</h3>
  719. <p>WPA information of the BSS. Empty dictionary indicates no WPA support. Dictionary entries are:</p>
  720. <table>
  721. <tr><td>KeyMgmt</td><td>as</td><td>Key management suite. Possible array elements: "wpa-psk", "wpa-eap", "wpa-none"</td>
  722. <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
  723. <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
  724. </table>
  725. </li>
  726. <li>
  727. <h3>RSN - a{sv} - (read)</h3>
  728. <p>RSN information of the BSS. Empty dictionary indicates no RSN support. Dictionary entries are:</p>
  729. <table>
  730. <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>
  731. <tr><td>Pairwise</td><td>as</td><td>Pairwise cipher suites. Possible array elements: "ccmp", "tkip"</td>
  732. <tr><td>Group</td><td>s</td><td>Group cipher suite. Possible values are: "ccmp", "tkip", "wep104", "wep40"</td>
  733. <tr><td>MgmtGroup</td><td>s</td><td>Mangement frames cipher suite. Possible values are: "aes128cmac"</td>
  734. </table>
  735. </li>
  736. <li>
  737. <h3>IEs - ay - (read)</h3>
  738. <p>All IEs of the BSS as a chain of TLVs</p>
  739. </li>
  740. <li>
  741. <h3>Privacy - b - (read)</h3>
  742. <p>Indicates if BSS supports privacy.</p>
  743. </li>
  744. <li>
  745. <h3>Mode - s - (read)</h3>
  746. <p>Describes mode of the BSS. Possible values are: "ad-hoc" and "infrastructure".</p>
  747. </li>
  748. <li>
  749. <h3>Frequency - q - (read)</h3>
  750. <p>Frequency of the BSS in MHz.</p>
  751. </li>
  752. <li>
  753. <h3>Rates - au - (read)</h3>
  754. <p>Descending ordered array of rates supported by the BSS in bits per second.</p>
  755. </li>
  756. <li>
  757. <h3>Signal - n - (read)</h3>
  758. <p>Signal strength of the BSS.</p>
  759. </li>
  760. </ul>
  761. \subsection dbus_bss_signals Signals
  762. <ul>
  763. <li>
  764. <h3>PropertiesChanged ( a{sv} : properties )</h3>
  765. <p>Some properties have changed.</p>
  766. <h4>Arguments</h4>
  767. <dl>
  768. <dt>a{sv} : properties</dt>
  769. <dd>A dictionary with pairs of properties names which have changed and theirs new values.</dd>
  770. </dl>
  771. </li>
  772. </ul>
  773. \section dbus_network fi.w1.wpa_supplicant1.Network
  774. Interface implemented by objects representing configured networks,
  775. i.e., returned by fi.w1.wpa_supplicant1.Interface.AddNetwork.
  776. \subsection dbus_network_properties Properties
  777. <ul>
  778. <li>
  779. <h3>Enabled - b - (read/write)</h3>
  780. <p>Determines if the configured network is enabled or not.</p>
  781. </li>
  782. <li>
  783. <h3>Properties - a{sv} - (read)</h3>
  784. <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.
  785. </li>
  786. </ul>
  787. \subsection dbus_network_signals Signals
  788. <ul>
  789. <li>
  790. <h3>PropertiesChanged ( a{sv} : properties )</h3>
  791. <p>Some properties have changed.</p>
  792. <h4>Arguments</h4>
  793. <dl>
  794. <dt>a{sv} : properties</dt>
  795. <dd>A dictionary with pairs of properties names which have changed and theirs new values. Possible dictionary keys are: "Enabled"</dd>
  796. </dl>
  797. </li>
  798. </ul>
  799. */