SettingWireless
Object Hierarchy:
Description:
Namespace: NM
Package: libnm-util
Content:
Constants:
- public const string BAND
- public const string BSSID
- public const string CHANNEL
- public const string CLONED_MAC_ADDRESS
- public const string HIDDEN
- public const string MAC_ADDRESS
- public const string MAC_ADDRESS_BLACKLIST
- public const string MODE
- public const string MODE_ADHOC
Indicates Ad-Hoc mode where no access point is expected to be present.
- public const string MODE_AP
Indicates AP/master mode where the wireless device is started as an access point/hotspot.
- public const string MODE_INFRA
Indicates infrastructure mode where an access point is expected to be present for this connection.
- public const string MTU
- public const string POWERSAVE
- public const string RATE
- public const string SEC
- public const string SEEN_BSSIDS
- public const string SETTING_NAME
- public const string SSID
- public const string TX_POWER
Properties:
- public string band { owned get; set; }
802.11 frequency band of the network.
- public uint channel { get; set construct; }
Wireless channel to use for the Wi-Fi connection.
- public bool hidden { get; set; }
If
true
, indicates this network is a non-broadcasting network that hides its SSID. - public string mode { owned get; set; }
Wi-Fi network mode; one of "infrastructure", "adhoc" or "ap".
- public uint mtu { get; set construct; }
If non-zero, only transmit packets of the specified size or smaller, breaking larger packets up into multiple Ethernet frames.
- public uint powersave { get; set; }
If set to
false
, Wi-Fi power saving behavior is disabled. - public uint rate { get; set construct; }
If non-zero, directs the device to only use the specified bitrate for communication with the access point.
- public string security { owned get; set; }
If the wireless connection has any security restrictions, like 802.1x, WEP, or WPA, set this property to SETTING_NAME and ensure the connection contains a valid SettingWirelessSecurity setting.
- public uint tx_power { get; set construct; }
If non-zero, directs the device to use the specified transmit power.
Creation methods:
- public SettingWireless ()
Creates a new SettingWireless object with default values.
Methods:
- public bool add_mac_blacklist_item (string mac)
Adds a new MAC address to the
NMSettingWireless:mac-address-blacklist
property. - public bool add_seen_bssid (string bssid)
Adds a new Wi-Fi AP's BSSID to the previously seen BSSID list of the setting.
- public bool ap_security_compatible (SettingWirelessSecurity s_wireless_sec, @80211ApFlags ap_flags, @80211ApSecurityFlags ap_wpa, @80211ApSecurityFlags ap_rsn, @80211Mode ap_mode)
Given a SettingWireless and an optional SettingWirelessSecurity, determine if the configuration given by the settings is compatible with the security of an access point using that access point's capability flags and mode.
- public void clear_mac_blacklist_items ()
Removes all blacklisted MAC addresses.
- public unowned string get_band ()
- public unowned ByteArray get_bssid ()
- public uint32 get_channel ()
- public unowned ByteArray get_cloned_mac_address ()
- public bool get_hidden ()
- public unowned ByteArray get_mac_address ()
- public unowned SList<ByteArray> get_mac_address_blacklist ()
- public unowned string get_mac_blacklist_item (uint32 idx)
- public unowned string get_mode ()
- public uint32 get_mtu ()
- public uint32 get_num_mac_blacklist_items ()
- public uint32 get_num_seen_bssids ()
- public uint32 get_powersave ()
- public uint32 get_rate ()
- public unowned string get_security ()
- public unowned string get_seen_bssid (uint32 i)
- public unowned ByteArray get_ssid ()
- public uint32 get_tx_power ()
- public void remove_mac_blacklist_item (uint32 idx)
Removes the MAC address at index
idx
from the blacklist. - public bool remove_mac_blacklist_item_by_value (string mac)
Removes the MAC address
mac
from the blacklist.
Inherited Members:
All known members inherited from class NM.Setting
All known members inherited from class GLib.Object