D-BUS: dev_passwd_id should be "q" because it uses DBUS_TYPE_UINT16
[mech_eap.git] / doc / dbus.doxygen
index a44d5f4..912bc7c 100644 (file)
@@ -1,8 +1,8 @@
 /**
-\page dbus %wpa_supplicant D-Bus API
+\page dbus wpa_supplicant D-Bus API
 
-This section documents the %wpa_supplicant D-Bus API. Every D-Bus
-interface implemented by %wpa_supplicant is described here including
+This section documents the wpa_supplicant D-Bus API. Every D-Bus
+interface implemented by wpa_supplicant is described here including
 their methods, signals, and properties with arguments, returned
 values, and possible errors.
 
@@ -20,7 +20,7 @@ Interfaces:
 
 \section dbus_main fi.w1.wpa_supplicant1
 
-Interface implemented by the main %wpa_supplicant D-Bus object
+Interface implemented by the main wpa_supplicant D-Bus object
 registered in the bus with fi.w1.wpa_supplicant1 name.
 
 \subsection dbus_main_methods Methods
@@ -28,12 +28,12 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 <ul>
       <li>
        <h3>CreateInterface ( a{sv} : args ) --> o : interface</h3>
-       <p>Registers a wireless interface in %wpa_supplicant.</p>
+       <p>Registers a wireless interface in wpa_supplicant.</p>
        <h4>Arguments</h4>
        <dl>
          <dt>a{sv} : args</dt>
          <dd>
-           A dictionary with arguments used to add the interface to %wpa_supplicant. The dictionary may contain the following entries:
+           A dictionary with arguments used to add the interface to wpa_supplicant. The dictionary may contain the following entries:
            <table>
              <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th>
              <tr><td>Ifname</td><td>s</td><td>Name of the network interface to control, e.g., wlan0</td><td>Yes</td>
@@ -51,7 +51,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
        <h4>Possible errors</h4>
        <dl>
          <dt>fi.w1.wpa_supplicant1.InterfaceExists</dt>
-         <dd>%wpa_supplicant already controls this interface.</dd>
+         <dd>wpa_supplicant already controls this interface.</dd>
          <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
          <dd>Creating interface failed for an unknown reason.</dd>
          <dt>fi.w1.wpa_supplicant1.InvalidArgs</dt>
@@ -61,7 +61,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 
       <li>
        <h3>RemoveInterface ( o : interface ) --> nothing</h3>
-       <p>Deregisters a wireless interface from %wpa_supplicant.</p>
+       <p>Deregisters a wireless interface from wpa_supplicant.</p>
        <h4>Arguments</h4>
        <dl>
          <dt>o : interface</dt>
@@ -78,7 +78,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 
       <li>
        <h3>GetInterface ( s : ifname ) --> o : interface</h3>
-       <p>Returns a D-Bus path to an object related to an interface which %wpa_supplicant already controls.</p>
+       <p>Returns a D-Bus path to an object related to an interface which wpa_supplicant already controls.</p>
        <h4>Arguments</h4>
        <dl>
          <dt>s : ifname</dt>
@@ -92,7 +92,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
        <h4>Possible errors</h4>
        <dl>
          <dt>fi.w1.wpa_supplicant1.InterfaceUnknown</dt>
-         <dd>An interface with the passed name in not controlled by %wpa_supplicant.</dd>
+         <dd>An interface with the passed name in not controlled by wpa_supplicant.</dd>
          <dt>fi.w1.wpa_supplicant1.UnknownError</dt>
          <dd>Getting an interface object path failed for an unknown reason.</dd>
        </dl>
@@ -104,19 +104,19 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 <ul>
       <li>
        <h3>DebugLevel - s - (read/write)</h3>
-       <p>Global %wpa_supplicant debugging level. Possible values are
+       <p>Global wpa_supplicant debugging level. Possible values are
        "msgdump" (verbose debugging), "debug" (debugging),
        "info" (informative), "warning" (warnings), and "error" (errors).</p>
       </li>
 
       <li>
        <h3>DebugTimestamp - b - (read/write)</h3>
-       <p>Global %wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
+       <p>Global wpa_supplicant debugging parameter. Determines if timestamps are shown in debug logs.</p>
       </li>
 
       <li>
        <h3>DebugShowKeys - b - (read/write)</h3>
-       <p>Global %wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
+       <p>Global wpa_supplicant debugging parameter. Determines if secrets are shown in debug logs.</p>
       </li>
 
       <li>
@@ -145,7 +145,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 <ul>
       <li>
        <h3>InterfaceAdded ( o : interface, a{sv} : properties )</h3>
-       <p>A new interface was added to %wpa_supplicant.</p>
+       <p>A new interface was added to wpa_supplicant.</p>
        <h4>Arguments</h4>
        <dl>
          <dt>o : interface</dt>
@@ -159,7 +159,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 
       <li>
        <h3>InterfaceRemoved ( o : interface )</h3>
-       <p>An interface was removed from %wpa_supplicant.</p>
+       <p>An interface was removed from wpa_supplicant.</p>
        <h4>Arguments</h4>
        <dl>
          <dt>o : interface</dt>
@@ -182,7 +182,7 @@ registered in the bus with fi.w1.wpa_supplicant1 name.
 \section dbus_interface fi.w1.wpa_supplicant1.Interface
 
 Interface implemented by objects related to network interface added to
-%wpa_supplicant, i.e., returned by
+wpa_supplicant, i.e., returned by
 fi.w1.wpa_supplicant1.CreateInterface.
 
 \subsection dbus_interface_methods Methods
@@ -229,7 +229,7 @@ fi.w1.wpa_supplicant1.CreateInterface.
        <h4>Arguments</h4>
        <dl>
          <dt>a{sv} : args</dt>
-         <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>
+         <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>
        </dl>
        <h4>Returns</h4>
        <dl>
@@ -307,6 +307,16 @@ fi.w1.wpa_supplicant1.CreateInterface.
       </li>
 
       <li>
+       <h3>Reconnect ( ) --> nothing</h3>
+       <p>Attempt reconnection and connect if in disconnected state.</p>
+       <h4>Possible errors</h4>
+       <dl>
+         <dt>fi.w1.wpa_supplicant1.InterfaceDisabled</dt>
+         <dd>The interface is disabled.</dd>
+       </dl>
+      </li>
+
+      <li>
        <h3>AddBlob ( s : name, ay : data ) --> nothing</h3>
        <p>Adds a blob to the interface.</p>
        <h4>Arguments</h4>
@@ -576,22 +586,22 @@ fi.w1.wpa_supplicant1.CreateInterface.
 
       <li>
        <h3>ApScan - u - (read/write)</h3>
-       <p>Identical to ap_scan entry in %wpa_supplicant configuration file. Possible values are 0, 1 or 2.</p>
+       <p>Identical to ap_scan entry in wpa_supplicant configuration file. Possible values are 0, 1 or 2.</p>
       </li>
 
       <li>
        <h3>BSSExpireAge - u - (read/write)</h3>
-       <p>Identical to bss_expiration_age entry in %wpa_supplicant configuration file.</p>
+       <p>Identical to bss_expiration_age entry in wpa_supplicant configuration file.</p>
       </li>
 
       <li>
        <h3>BSSExpireCount - u - (read/write)</h3>
-       <p>Identical to bss_expiration_scan_count entry in %wpa_supplicant configuration file.</p>
+       <p>Identical to bss_expiration_scan_count entry in wpa_supplicant configuration file.</p>
       </li>
 
       <li>
        <h3>Country - s - (read/write)</h3>
-       <p>Identical to country entry in %wpa_supplicant configuration file.</p>
+       <p>Identical to country entry in wpa_supplicant configuration file.</p>
       </li>
 
       <li>
@@ -611,12 +621,12 @@ fi.w1.wpa_supplicant1.CreateInterface.
 
       <li>
        <h3>CurrentBSS - o - (read)</h3>
-       <p>Path to D-Bus object representing BSS which %wpa_supplicant is associated with, or "/" if is not associated at all.</p>
+       <p>Path to D-Bus object representing BSS which wpa_supplicant is associated with, or "/" if is not associated at all.</p>
       </li>
 
       <li>
        <h3>CurrentNetwork - o - (read)</h3>
-       <p>Path to D-Bus object representing configured network which %wpa_supplicant uses at the moment, or "/" if doesn't use any.</p>
+       <p>Path to D-Bus object representing configured network which wpa_supplicant uses at the moment, or "/" if doesn't use any.</p>
       </li>
 
       <li>
@@ -641,7 +651,7 @@ fi.w1.wpa_supplicant1.CreateInterface.
 
       <li>
        <h3>FastReauth - b - (read/write)</h3>
-       <p>Identical to fast_reauth entry in %wpa_supplicant configuration file.</p>
+       <p>Identical to fast_reauth entry in wpa_supplicant configuration file.</p>
       </li>
 
       <li>
@@ -792,7 +802,7 @@ fi.w1.wpa_supplicant1.CreateInterface.
        <h4>Arguments</h4>
        <dl>
          <dt>a{sv} : parameters</dt>
-         <dd>A dictionary with pairs of field names and their values. Possible dictionary keys are: "depth", "subject", "cert_hash", "cert".</dd>
+         <dd>A dictionary with pairs of field names and their values. Possible dictionary keys are: "depth", "subject", "altsubject", "cert_hash", "cert".</dd>
        </dl>
       </li>
 
@@ -877,6 +887,10 @@ Interface for performing WPS (Wi-Fi Simple Config) operations.
          <dd>Invalid entries were found in the passed argument.</dd>
        </dl>
       </li>
+      <li>
+       <h3>Cancel ( nothing ) --> nothing</h3>
+       <p>Cancel ongoing WPS operation.</p>
+      </li>
     </ul>
 
 \subsection dbus_wps_properties Properties
@@ -901,10 +915,11 @@ Interface for performing WPS (Wi-Fi Simple Config) operations.
        <h4>Arguments</h4>
        <dl>
          <dt>s : event</dt>
-         <dd>Event type. Possible values are: "success, "fail" and "m2d"</dd>
+         <dd>Event type. Possible values are: "success, "fail", "m2d", and
+         "pbc-overlap".</dd>
          <dt>a{sv} : args</dt>
          <dd>
-           Event arguments. Empty for success event, one entry ( "msg" : i ) for fail event and following entries for m2d event:
+           Event arguments. Empty for success and pbc-voerlap events, one entry ( "msg" : i ) for fail event and following entries for m2d event:
            <table>
              <tr><th>config_methods</th><th>Value type</th>
              <tr><td>manufacturer</td><td>q</td>
@@ -964,7 +979,7 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
        <table>
        <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
        <tr><td>Timeout</td><td>i</td><td>Timeout for operating in seconds</td><td>no</td></tr>
-       <tr><td>RequestedDevicesTypes</td><td>aay</td><td>WPS Device Types to search for</td><td>no</td></tr>
+       <tr><td>RequestedDeviceTypes</td><td>aay</td><td>WPS Device Types to search for</td><td>no</td></tr>
        <tr><td>DiscoveryType</td><td>s</td><td>"start_with_full" (default, if not specified), "social", "progressive"</td><td>no</td></tr>
        </table>
       </dd>
@@ -1070,6 +1085,11 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
   </li>
 
   <li>
+    <h3>Cancel ( nothing ) --> nothing</h3>
+    <p>Stop ongoing P2P group formation operation.</p>
+  </li>
+
+  <li>
     <h3>Invite ( a{sv} : args ) --> nothing</h3>
     <p>Invite a peer to join an already operating group or to re-invoke a persistent group.</p>
     <h4>Arguments</h4>
@@ -1099,6 +1119,23 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
   </li>
 
   <li>
+    <h3>RemoveClient ( a{sv} : args ) --> nothing</h3>
+    <p>Remove the client from all groups (operating and persistent) from the local GO.</p>
+    <h4>Arguments</h4>
+    <dl>
+      <dt>a{sv} : args</dt>
+      <dd>
+       A dictionary with parameters for removing a client:
+       <table>
+       <tr><th>Key</th><th>Value type</th><th>Description</th><th>Required</th></tr>
+       <tr><td>peer</td><td>o</td><td>Object path for peer's P2P Device Address</td><td>yes</td></tr>
+       <tr><td>iface</td><td>s</td><td>Interface address[MAC Address format] of the peer to be disconnected. Required if object path is not provided.</td><td>no</td></tr>
+       </table>
+      </dd>
+    </dl>
+  </li>
+
+  <li>
     <h3>Flush ( nothing ) --> nothing</h3>
     <p>Flush P2P peer table and state.</p>
   </li>
@@ -1240,6 +1277,7 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
     <tr><td>GOIntent</td><td>u</td><td></td></tr>
     <tr><td>PersistentReconnect</td><td>b</td><td></td></tr>
     <tr><td>ListenRegClass</td><td>u</td><td></td></tr>
+    <tr><td>ListenChannel</td><td>u</td><td></td></tr>
     <tr><td>OperRegClass</td><td>u</td><td></td></tr>
     <tr><td>OperChannel</td><td>u</td><td></td></tr>
     <tr><td>SsidPostfix</td><td>s</td><td></td></tr>
@@ -1287,6 +1325,10 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
   </li>
 
   <li>
+    <h3>FindStopped ( )</h3>
+  </li>
+
+  <li>
     <h3>ProvisionDiscoveryRequestDisplayPin ( o : peer_object, s : pin )</h3>
   </li>
 
@@ -1373,7 +1415,7 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
   </li>
 
   <li>
-    <h3>GONegotiationRequest ( o : path, i : dev_passwd_id )</h3>
+    <h3>GONegotiationRequest ( o : path, q : dev_passwd_id, y : device_go_intent )</h3>
   </li>
 
   <li>
@@ -1491,6 +1533,16 @@ Interface for performing P2P (Wi-Fi Peer-to-Peer) P2P Device operations.
       </dd>
     </dl>
   </li>
+
+  <li>
+    <h3>GroupFormationFailure ( s : reason )</h3>
+    <p></p>
+    <h4>Arguments</h4>
+    <dl>
+      <dt>s : reason</dt>
+      <dd>Reason for failure or empty string if not known.</dd>
+    </dl>
+  </li>
 </ul>
 
 \section dbus_bss fi.w1.wpa_supplicant1.BSS
@@ -1595,7 +1647,7 @@ i.e., returned by fi.w1.wpa_supplicant1.Interface.AddNetwork.
 
       <li>
        <h3>Properties - a{sv} - (read/write)</h3>
-       <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.
+       <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.
       </li>
     </ul>
 
@@ -1625,6 +1677,22 @@ Interface implemented by objects representing P2P peer devices.
   </li>
 
   <li>
+    <h3>Manufacturer - s - (read)</h3>
+  </li>
+
+  <li>
+    <h3>ModelName - s - (read)</h3>
+  </li>
+
+  <li>
+    <h3>ModelNumber - s - (read)</h3>
+  </li>
+
+  <li>
+    <h3>SerialNumber - s - (read)</h3>
+  </li>
+
+  <li>
     <h3>PrimaryDeviceType - ay - (read)</h3>
   </li>