wifi-p2p

wifi-p2p — Wi-Fi P2P Settings

Properties

Table 55. 

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, push-button (PBC) is used. For the PIN method there are two directions: set this to "pin" to enter the code that the peer displays (for example a display-capable Miracast sink), or to "pin-display" to instead show a code that the user enters on the peer. Either way the code is the "wps-pin" property; with "pin-display" it is also published as the "WpsPin" property of the Wi-Fi P2P device, so that it can be shown to the user. "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 "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 "pin-display" it is the code that the user enters on the peer instead; a secret agent is expected to make one up and show it, and NetworkManager also publishes it as the "WpsPin" property of the Wi-Fi P2P device. 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 "not-saved" so that the user is asked every time.
wps-pin-flags
NMSettingSecretFlags (uint32)
0
Flags indicating how to handle the "wps-pin" property.