NM.SettingWifiP2P

g GObject.Object GObject.Object NM.Setting NM.Setting GObject.Object->NM.Setting NM.SettingWifiP2P NM.SettingWifiP2P NM.Setting->NM.SettingWifiP2P

Subclasses:

None

Methods

Inherited:

NM.Setting (21), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

get_peer ()

get_wfd_ies ()

get_wps_method ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Inherited:

NM.Setting (1)

Name

Type

Flags

Short Description

peer

str

r/w/en

wfd-ies

GLib.Bytes

r/w/en

wps-method

int

r/w/en

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class NM.SettingWifiP2P(**kwargs)
Bases:

NM.Setting

Abstract:

No

Structure:

NM.SettingWifiP2PClass

Wi-Fi P2P Settings

New in version 1.16.

classmethod new()
Returns:

the new empty NM.SettingWifiP2P object

Return type:

NM.Setting

Creates a new NM.SettingWifiP2P object with default values.

New in version 1.16.

get_peer()
Returns:

the NM.SettingWifiP2P :peer property of the setting

Return type:

str

New in version 1.16.

get_wfd_ies()
Returns:

the #NMSettingWiFiP2P:wfd-ies property of the setting

Return type:

GLib.Bytes

New in version 1.16.

get_wps_method()
Returns:

the NM.SettingWifiP2P :wps-method property of the setting

Return type:

NM.SettingWirelessSecurityWpsMethod

New in version 1.16.

Property Details

NM.SettingWifiP2P.props.peer
Name:

peer

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

The P2P device that should be connected to. Currently, this is the only way to create or join a group.

New in version 1.16.

NM.SettingWifiP2P.props.wfd_ies
Name:

wfd-ies

Type:

GLib.Bytes

Default Value:

None

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

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.

New in version 1.16.

NM.SettingWifiP2P.props.wps_method
Name:

wps-method

Type:

int

Default Value:

0

Flags:

READABLE, WRITABLE, EXPLICIT_NOTIFY

Flags indicating which mode of WPS is to be used.

There’s little point in changing the default setting as NetworkManager will automatically determine the best method to use.

New in version 1.16.