![]() |
![]() |
![]() |
libnm-util Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#define NM_SETTING_WIRELESS_SETTING_NAME enum NMSettingWirelessError; #define NM_TYPE_SETTING_WIRELESS_ERROR #define NM_SETTING_WIRELESS_ERROR GQuark nm_setting_wireless_error_quark (void); #define NM_SETTING_WIRELESS_SSID #define NM_SETTING_WIRELESS_MODE #define NM_SETTING_WIRELESS_BAND #define NM_SETTING_WIRELESS_CHANNEL #define NM_SETTING_WIRELESS_BSSID #define NM_SETTING_WIRELESS_RATE #define NM_SETTING_WIRELESS_TX_POWER #define NM_SETTING_WIRELESS_MAC_ADDRESS #define NM_SETTING_WIRELESS_MTU #define NM_SETTING_WIRELESS_SEEN_BSSIDS #define NM_SETTING_WIRELESS_SEC NMSettingWireless; GType nm_setting_wireless_get_type (void); NMSetting * nm_setting_wireless_new (void); const GByteArray * nm_setting_wireless_get_ssid (NMSettingWireless *setting); const char * nm_setting_wireless_get_mode (NMSettingWireless *setting); const char * nm_setting_wireless_get_band (NMSettingWireless *setting); guint32 nm_setting_wireless_get_channel (NMSettingWireless *setting); const GByteArray * nm_setting_wireless_get_bssid (NMSettingWireless *setting); guint32 nm_setting_wireless_get_rate (NMSettingWireless *setting); guint32 nm_setting_wireless_get_tx_power (NMSettingWireless *setting); const GByteArray * nm_setting_wireless_get_mac_address (NMSettingWireless *setting); guint32 nm_setting_wireless_get_mtu (NMSettingWireless *setting); const char * nm_setting_wireless_get_security (NMSettingWireless *setting); gboolean nm_setting_wireless_add_seen_bssid (NMSettingWireless *setting, const char *bssid); guint32 nm_setting_wireless_get_num_seen_bssids (NMSettingWireless *setting); const char * nm_setting_wireless_get_seen_bssid (NMSettingWireless *setting, guint32 i); gboolean nm_setting_wireless_ap_security_compatible (NMSettingWireless *s_wireless, NMSettingWirelessSecurity *s_wireless_sec, guint32 ap_flags, guint32 ap_wpa, guint32 ap_rsn, guint32 ap_mode);
"band" gchar* : Read / Write "channel" guint : Read / Write / Construct "mode" gchar* : Read / Write "mtu" guint : Read / Write / Construct "rate" guint : Read / Write / Construct "security" gchar* : Read / Write "tx-power" guint : Read / Write / Construct
typedef enum { NM_SETTING_WIRELESS_ERROR_UNKNOWN = 0, NM_SETTING_WIRELESS_ERROR_INVALID_PROPERTY, NM_SETTING_WIRELESS_ERROR_MISSING_PROPERTY, NM_SETTING_WIRELESS_ERROR_MISSING_SECURITY_SETTING, NM_SETTING_WIRELESS_ERROR_CHANNEL_REQUIRES_BAND } NMSettingWirelessError;
#define NM_TYPE_SETTING_WIRELESS_ERROR (nm_setting_wireless_error_get_type ())
const GByteArray * nm_setting_wireless_get_ssid (NMSettingWireless *setting);
|
|
Returns : |
const char * nm_setting_wireless_get_mode (NMSettingWireless *setting);
|
|
Returns : |
const char * nm_setting_wireless_get_band (NMSettingWireless *setting);
|
|
Returns : |
guint32 nm_setting_wireless_get_channel (NMSettingWireless *setting);
|
|
Returns : |
const GByteArray * nm_setting_wireless_get_bssid (NMSettingWireless *setting);
|
|
Returns : |
guint32 nm_setting_wireless_get_rate (NMSettingWireless *setting);
|
|
Returns : |
guint32 nm_setting_wireless_get_tx_power (NMSettingWireless *setting);
|
|
Returns : |
const GByteArray * nm_setting_wireless_get_mac_address (NMSettingWireless *setting);
|
|
Returns : |
guint32 nm_setting_wireless_get_mtu (NMSettingWireless *setting);
|
|
Returns : |
const char * nm_setting_wireless_get_security (NMSettingWireless *setting);
|
|
Returns : |
gboolean nm_setting_wireless_add_seen_bssid (NMSettingWireless *setting, const char *bssid);
|
|
|
|
Returns : |
guint32 nm_setting_wireless_get_num_seen_bssids (NMSettingWireless *setting);
|
|
Returns : |
const char * nm_setting_wireless_get_seen_bssid (NMSettingWireless *setting, guint32 i);
|
|
|
|
Returns : |
gboolean nm_setting_wireless_ap_security_compatible (NMSettingWireless *s_wireless, NMSettingWirelessSecurity *s_wireless_sec, guint32 ap_flags, guint32 ap_wpa, guint32 ap_rsn, guint32 ap_mode);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
"band"
property"band" gchar* : Read / Write
802.11 frequency band of the network. One of 'a' for 5GHz 802.11a or 'bg' for 2.4GHz 802.11. This will lock associations to the WiFi network to the specific band, i.e. if 'a' is specified, the device will not associate with the same network in the 2.4GHz band even if the network's settings are compatible. This setting depends on specific driver capability and may not work with all drivers.
Default value: NULL
"channel"
property"channel" guint : Read / Write / Construct
Wireless channel to use for the WiFi connection. The device will only join (or create for Ad-Hoc networks) a WiFi network on the specified channel. Because channel numbers overlap between bands, this property also requires the 'band' property to be set.
Default value: 0
"mode"
property"mode" gchar* : Read / Write
WiFi network mode; one of 'infrastructure' or 'adhoc'. If blank, infrastructure is assumed.
Default value: NULL
"mtu"
property"mtu" guint : Read / Write / Construct
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple Ethernet frames.
Default value: 0
"rate"
property"rate" guint : Read / Write / Construct
If non-zero, directs the device to only use the specified bitrate for communication with the access point. Units are in Kb/s, ie 5500 = 5.5 Mbit/s. This property is highly driver dependent and not all devices support setting a static bitrate.
Default value: 0
"security"
property"security" gchar* : Read / Write
If the wireless connection has any security restrictions, like 802.1x, WEP, or WPA, set this property to '802-11-wireless-security' and ensure the connection contains a valid 802-11-wireless-security setting.
Default value: NULL
"tx-power"
property"tx-power" guint : Read / Write / Construct
If non-zero, directs the device to use the specified transmit power. Units are dBm. This property is highly driver dependent and not all devices support setting a static transmit power.
Default value: 0