eiwd

no dbus iwd with iwctl functionality
git clone https://git.daat.foo/repos/eiwd.git
Log | Files | Refs | Submodules | README | LICENSE

p2p-api.txt (3144B)


      1 P2P hierarchy
      2 =============
      3 
      4 Service		net.connman.iwd
      5 Interface	net.connman.iwd.p2p.Device [Experimental]
      6 Object path	/net/connman/iwd/{phy0,phy1,...}
      7 
      8 Methods		array(on) GetPeers()
      9 
     10 			Returns a list (possibly empty) of detected P2P peers.
     11 			Each record returned contains a tuple of the following
     12 			values.
     13 
     14 			object Object
     15 
     16 				The net.connman.iwd.p2p.Peer object
     17 				representing the peer device.
     18 
     19 			int16 SignalStrength
     20 
     21 				Peer's signal strength expressed in 100 * dBm.
     22 				The value is the range of 0 (strongest signal)
     23 				to -10000 (weakest signal.)
     24 
     25 		void RequestDiscovery()
     26 
     27 			Starts device discovery if not already happening and
     28 			registers the calling D-Bus client as requiring device
     29 			discovery.  The discovery phase will be active until
     30 			all registered clients have called ReleaseDiscovery()
     31 			or disconnected from D-Bus.
     32 
     33 			Possible errors: [service].Error.AlreadyExists
     34 
     35 		void ReleaseDiscovery()
     36 
     37 			Unregisters the calling client as requiring device
     38 			discovery.  Clients should do this as soon as they
     39 			stop displaying or otherwise using the list of
     40 			discovered peer devices to avoid keeping the Wi-Fi
     41 			adapter occupied unnecessarily.
     42 
     43 			Possible errors: [service].Error.NotFound
     44 
     45 		void RegisterSignalLevelAgent(object path,
     46 						 array(int16) levels)
     47 
     48 			Register the agent object to receive signal strength
     49 			level change notifications on the
     50 			net.connman.iwd.SignalLevelAgent interface, see
     51 			station-api.txt.  The "levels" parameter decides
     52 			the thresholds in dBm that will generate a call to
     53 			the agent's Changed method whenever current RSSI
     54 			crosses any of the values.  The values must be
     55 			passed in descending order.  The number and distance
     56 			between requested threshold values is a compromise
     57 			between resolution and the frequency of system
     58 			wakeups and context-switches that are going to be
     59 			occurring to update the client's signal meter.  Only
     60 			one agent can be registered at any time.
     61 
     62 			Possible errors: [service].Error.InvalidArguments
     63 					 [service].Error.Failed
     64 					 [service].Error.AlreadyExists
     65 					 [service].Error.NotSupported
     66 
     67 		void UnregisterSignalLevelAgent(object path)
     68 
     69 			Unregister an existing agent.
     70 
     71 			Possible errors: [service].Error.InvalidArguments
     72 					 [service].Error.NotFound
     73 
     74 Properties	boolean Enabled [readwrite]
     75 
     76 			Whether local P2P device is started and ready to
     77 			start device discovery, become discoverable by peers
     78 			and connect to peers.
     79 
     80 		string Name [readwrite]
     81 
     82 			Sets local P2P device name as it is going to be
     83 			presented on other devices that we will connect to
     84 			or ones that discover us in scanning.
     85 
     86 		uint16 AvailableConnections [readonly]
     87 
     88 			Minimum number of peers the hardware is capable of
     89 			connecting to in the current configuration and in
     90 			addition to any connections already established.
     91 			Often 1 while idle and 0 if connected to a peer,
     92 			connecting, disconnecting or otherwise busy.
     93 
     94 			A non-zero number is to be interpreted as meaning
     95 			that the device is capable of making *at least*
     96 			that many new connections as the final number may
     97 			depend on parameters negotiated with future peers.