NMSettingWifiP2P

NMSettingWifiP2P — Describes connection properties for 802.11 Wi-Fi P2P networks

Functions

Types and Values

Description

The NMSettingWifiP2P object is a NMSetting subclass that describes properties necessary for connection to 802.11 Wi-Fi P2P networks (aka Wi-Fi Direct).

Functions

nm_setting_wifi_p2p_new ()

NMSetting *
nm_setting_wifi_p2p_new (void);

Creates a new NMSettingWifiP2P object with default values.

Returns

the new empty NMSettingWifiP2P object.

[transfer full]

Since: 1.16


nm_setting_wifi_p2p_get_peer ()

const char *
nm_setting_wifi_p2p_get_peer (NMSettingWifiP2P *setting);

Parameters

setting

the NMSettingWifiP2P

 

Returns

the “peer” property of the setting

Since: 1.16


nm_setting_wifi_p2p_get_wps_method ()

NMSettingWirelessSecurityWpsMethod
nm_setting_wifi_p2p_get_wps_method (NMSettingWifiP2P *setting);

Parameters

setting

the NMSettingWifiP2P

 

Returns

the “wps-method” property of the setting

Since: 1.16


nm_setting_wifi_p2p_get_wfd_ies ()

GBytes *
nm_setting_wifi_p2p_get_wfd_ies (NMSettingWifiP2P *setting);

Parameters

setting

the NMSettingWiFiP2P

 

Returns

the “wfd-ies” property of the setting.

[transfer none]

Since: 1.16


nm_setting_wifi_p2p_get_wps_pin ()

const char *
nm_setting_wifi_p2p_get_wps_pin (NMSettingWifiP2P *setting);

Parameters

setting

the NMSettingWifiP2P

 

Returns

the “wps-pin” property of the setting

Since: 1.60


nm_setting_wifi_p2p_get_wps_pin_flags ()

NMSettingSecretFlags
nm_setting_wifi_p2p_get_wps_pin_flags (NMSettingWifiP2P *setting);

Parameters

setting

the NMSettingWifiP2P

 

Returns

the NMSettingSecretFlags pertaining to the “wps-pin”

Since: 1.60

Types and Values

NM_SETTING_WIFI_P2P_SETTING_NAME

#define NM_SETTING_WIFI_P2P_SETTING_NAME "wifi-p2p"

NM_SETTING_WIFI_P2P_PEER

#define NM_SETTING_WIFI_P2P_PEER          "peer"

The mac address of the peer to connect to.


NM_SETTING_WIFI_P2P_WPS_METHOD

#define NM_SETTING_WIFI_P2P_WPS_METHOD    "wps-method"

NM_SETTING_WIFI_P2P_WFD_IES

#define NM_SETTING_WIFI_P2P_WFD_IES       "wfd-ies"

NM_SETTING_WIFI_P2P_WPS_PIN

#define NM_SETTING_WIFI_P2P_WPS_PIN       "wps-pin"

NM_SETTING_WIFI_P2P_WPS_PIN_FLAGS

#define NM_SETTING_WIFI_P2P_WPS_PIN_FLAGS "wps-pin-flags"