wifi-p2p

wifi-p2p — Wi-Fi P2P Settings

Properties

Table 84. 

Key Name Value Type Default Value Value Description
peer
string
The P2P device that should be connected to. Currently, this is the only way to create or join a group.
wfd-ies
byte array
The Wi-Fi Display (WFD) Information Elements (IEs) to set. Wi-Fi Display requires a protocol specific information element to be set in certain Wi-Fi frames. These can be specified here for the purpose of establishing a connection. This setting is only useful when implementing a Wi-Fi Display client.
wps-method
uint32
0
Flags indicating which mode of WPS is to be used. With the default setting, the push-button method (0x4 (pbc)) is used. For the PIN method there are two directions: set this to 0x8 (pin) to enter the code that the peer displays (for example a display-capable Miracast sink), or to 0x10 (pin-display) to instead show a code that the user enters on the peer. Either way the code is the "wps-pin" property. 0x10 (pin-display) is not supported by the IWD backend.
wps-pin
string
The WPS PIN used by the PIN methods of the "wps-method" property. With 0x8 (pin) it is the code that the peer (for example a display-capable Miracast sink) generates and displays, and that the user then enters on this machine. With 0x10 (pin-display) it is the code that the user enters on the peer instead; whoever provides the code is expected to show it: a client that sets it in the profile, or otherwise the secret agent that is asked for it, which may simply make one up. When the PIN is not set, NetworkManager asks a secret agent for it; if enrollment then fails, it asks again for a new one. The code is normally used only once, in which case saving it is pointless: set the "wps-pin-flags" property to 0x2 (not-saved) so that the user is asked every time.
wps-pin-flags
NMSettingSecretFlags (uint32)
Flags indicating how to handle the "wps-pin" property.