Top |
GEnum ├── NMSettingWirelessChannelWidth ╰── NMSettingWirelessPowersave GFlags ╰── NMSettingWirelessWakeOnWLan
The NMSettingWireless object is a NMSetting subclass that describes properties necessary for connection to 802.11 Wi-Fi networks.
NMSetting *
nm_setting_wireless_new (void
);
Creates a new NMSettingWireless object with default values.
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 char *
nm_setting_wireless_get_bssid (NMSettingWireless *setting
);
guint32
nm_setting_wireless_get_rate (NMSettingWireless *setting
);
nm_setting_wireless_get_rate
has been deprecated since version 1.44 and should not be used in newly-written code.
This setting is not implemented and has no effect.
guint32
nm_setting_wireless_get_tx_power (NMSettingWireless *setting
);
nm_setting_wireless_get_tx_power
has been deprecated since version 1.44 and should not be used in newly-written code.
This setting is not implemented and has no effect.
const char *
nm_setting_wireless_get_mac_address (NMSettingWireless *setting
);
const char *
nm_setting_wireless_get_cloned_mac_address
(NMSettingWireless *setting
);
const char *
nm_setting_wireless_get_generate_mac_address_mask
(NMSettingWireless *setting
);
Since: 1.4
const char *const *
nm_setting_wireless_get_mac_address_blacklist
(NMSettingWireless *setting
);
nm_setting_wireless_get_mac_address_blacklist
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_get_mac_address_denylist()
instead.
guint32
nm_setting_wireless_get_num_mac_blacklist_items
(NMSettingWireless *setting
);
nm_setting_wireless_get_num_mac_blacklist_items
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_get_num_mac_denylist_items()
instead.
const char * nm_setting_wireless_get_mac_blacklist_item (NMSettingWireless *setting
,guint32 idx
);
nm_setting_wireless_get_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_get_mac_denylist_item()
instead.
Since 1.46, access at index "len" is allowed and returns NULL.
gboolean nm_setting_wireless_add_mac_blacklist_item (NMSettingWireless *setting
,const char *mac
);
nm_setting_wireless_add_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_add_mac_denylist_item()
instead.
Adds a new MAC address to the “mac-address-denylist” property.
void nm_setting_wireless_remove_mac_blacklist_item (NMSettingWireless *setting
,guint32 idx
);
nm_setting_wireless_remove_mac_blacklist_item
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_remove_mac_denylist_item()
instead.
Removes the MAC address at index idx
from the denylist.
gboolean nm_setting_wireless_remove_mac_blacklist_item_by_value (NMSettingWireless *setting
,const char *mac
);
nm_setting_wireless_remove_mac_blacklist_item_by_value
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_remove_mac_denylist_item_by_value()
instead.
Removes the MAC address mac
from the denylist.
void
nm_setting_wireless_clear_mac_blacklist_items
(NMSettingWireless *setting
);
nm_setting_wireless_clear_mac_blacklist_items
has been deprecated since version 1.48. and should not be used in newly-written code.
Use nm_setting_wireless_clear_mac_denylist_items()
instead.
Removes all denylisted MAC addresses.
const char *const *
nm_setting_wireless_get_mac_address_denylist
(NMSettingWireless *setting
);
Since: 1.48
guint32
nm_setting_wireless_get_num_mac_denylist_items
(NMSettingWireless *setting
);
Since: 1.48
const char * nm_setting_wireless_get_mac_denylist_item (NMSettingWireless *setting
,guint32 idx
);
Since: 1.48
gboolean nm_setting_wireless_add_mac_denylist_item (NMSettingWireless *setting
,const char *mac
);
Adds a new MAC address to the “mac-address-denylist” property.
TRUE
if the MAC address was added; FALSE
if the MAC address
is invalid or was already present
Since: 1.48
void nm_setting_wireless_remove_mac_denylist_item (NMSettingWireless *setting
,guint32 idx
);
Removes the MAC address at index idx
from the denylist.
Since: 1.48
gboolean nm_setting_wireless_remove_mac_denylist_item_by_value (NMSettingWireless *setting
,const char *mac
);
Removes the MAC address mac
from the denylist.
setting |
||
mac |
the MAC address string (hex-digits-and-colons notation) to remove from the denylist |
Since: 1.48
void
nm_setting_wireless_clear_mac_denylist_items
(NMSettingWireless *setting
);
Removes all denylisted MAC addresses.
Since: 1.48
gboolean
nm_setting_wireless_get_hidden (NMSettingWireless *setting
);
guint32
nm_setting_wireless_get_powersave (NMSettingWireless *setting
);
Since: 1.2
NMSettingMacRandomization
nm_setting_wireless_get_mac_address_randomization
(NMSettingWireless *setting
);
Since: 1.2
gboolean nm_setting_wireless_add_seen_bssid (NMSettingWireless *setting
,const char *bssid
);
Adds a new Wi-Fi AP's BSSID to the previously seen BSSID list of the setting. NetworkManager now tracks previously seen BSSIDs internally so this function no longer has much use. Actually, changes you make using this function will not be preserved.
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
,NM80211ApFlags ap_flags
,NM80211ApSecurityFlags ap_wpa
,NM80211ApSecurityFlags ap_rsn
,NM80211Mode ap_mode
);
Given a NMSettingWireless and an optional NMSettingWirelessSecurity, 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. Useful for clients that wish to filter a set of connections against a set of access points and determine which connections are compatible with which access points.
s_wireless |
||
s_wireless_sec |
a NMSettingWirelessSecurity or |
|
ap_flags |
the |
|
ap_wpa |
the |
|
ap_rsn |
the |
|
ap_mode |
the 802.11 mode of the AP, either Ad-Hoc or Infrastructure |
NMSettingWirelessWakeOnWLan
nm_setting_wireless_get_wake_on_wlan (NMSettingWireless *setting
);
Returns the Wake-on-WLAN options enabled for the connection
Since: 1.12
NMTernary
nm_setting_wireless_get_ap_isolation (NMSettingWireless *setting
);
Since: 1.28
NMSettingWirelessChannelWidth
nm_setting_wireless_get_channel_width (NMSettingWireless *setting
);
Returns the “channel-width” property.
Since: 1.50
Options for “wake-on-wlan”. Note that not all options are supported by all devices.
Wake-on-WLAN disabled |
||
Wake on any activity |
||
Wake on disconnect |
||
Wake on magic packet |
||
Wake on GTK rekey failure |
||
Wake on EAP identity request |
||
Wake on 4way handshake |
||
Wake on rfkill release |
||
Wake on all events. This does not
include the exclusive flags |
||
Use the default value |
||
Don't change configured settings |
||
Mask of flags that are incompatible with other flags |
Since: 1.12
#define NM_SETTING_WIRELESS_CLONED_MAC_ADDRESS "cloned-mac-address"
#define NM_SETTING_WIRELESS_GENERATE_MAC_ADDRESS_MASK "generate-mac-address-mask"
#define NM_SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST "mac-address-blacklist"
#define NM_SETTING_WIRELESS_MAC_ADDRESS_DENYLIST "mac-address-denylist"
#define NM_SETTING_WIRELESS_MAC_ADDRESS_RANDOMIZATION "mac-address-randomization"
#define NM_SETTING_WIRELESS_MODE_ADHOC "adhoc"
Indicates Ad-Hoc mode where no access point is expected to be present.
#define NM_SETTING_WIRELESS_MODE_AP "ap"
Indicates AP/master mode where the wireless device is started as an access point/hotspot.
#define NM_SETTING_WIRELESS_MODE_INFRA "infrastructure"
Indicates infrastructure mode where an access point is expected to be present for this connection.
#define NM_SETTING_WIRELESS_MODE_MESH "mesh"
Indicates that the connection should create a mesh point.
Since: 1.20
These flags indicate whether wireless powersave must be enabled.
Since: 1.2