Top |
Functions
Properties
gchar * | band | Read / Write |
gchar * | bssid | Read / Write |
guint | channel | Read / Write / Construct |
gchar * | cloned-mac-address | Read / Write |
gboolean | hidden | Read / Write |
gchar * | mac-address | Read / Write |
GStrv | mac-address-blacklist | Read / Write |
gchar * | mode | Read / Write |
guint | mtu | Read / Write / Construct |
guint | rate | Read / Write / Construct |
GStrv | seen-bssids | Read / Write |
GBytes * | ssid | Read / Write |
guint | tx-power | Read / Write / Construct |
Types and Values
#define | NM_SETTING_WIRELESS_SETTING_NAME |
#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_CLONED_MAC_ADDRESS |
#define | NM_SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST |
#define | NM_SETTING_WIRELESS_MTU |
#define | NM_SETTING_WIRELESS_SEEN_BSSIDS |
#define | NM_SETTING_WIRELESS_HIDDEN |
#define | NM_SETTING_WIRELESS_MODE_ADHOC |
#define | NM_SETTING_WIRELESS_MODE_AP |
#define | NM_SETTING_WIRELESS_MODE_INFRA |
Description
The NMSettingWireless object is a NMSetting subclass that describes properties necessary for connection to 802.11 Wi-Fi networks.
Functions
nm_setting_wireless_new ()
NMSetting *
nm_setting_wireless_new (void
);
Creates a new NMSettingWireless object with default values.
nm_setting_wireless_get_mode ()
const char *
nm_setting_wireless_get_mode (NMSettingWireless *setting
);
nm_setting_wireless_get_band ()
const char *
nm_setting_wireless_get_band (NMSettingWireless *setting
);
nm_setting_wireless_get_channel ()
guint32
nm_setting_wireless_get_channel (NMSettingWireless *setting
);
nm_setting_wireless_get_bssid ()
const char *
nm_setting_wireless_get_bssid (NMSettingWireless *setting
);
nm_setting_wireless_get_tx_power ()
guint32
nm_setting_wireless_get_tx_power (NMSettingWireless *setting
);
nm_setting_wireless_get_mac_address ()
const char *
nm_setting_wireless_get_mac_address (NMSettingWireless *setting
);
nm_setting_wireless_get_cloned_mac_address ()
const char *
nm_setting_wireless_get_cloned_mac_address
(NMSettingWireless *setting
);
nm_setting_wireless_get_mac_address_blacklist ()
const char * const *
nm_setting_wireless_get_mac_address_blacklist
(NMSettingWireless *setting
);
nm_setting_wireless_get_num_mac_blacklist_items ()
guint32
nm_setting_wireless_get_num_mac_blacklist_items
(NMSettingWireless *setting
);
nm_setting_wireless_get_mac_blacklist_item ()
const char * nm_setting_wireless_get_mac_blacklist_item (NMSettingWireless *setting
,guint32 idx
);
nm_setting_wireless_add_mac_blacklist_item ()
gboolean nm_setting_wireless_add_mac_blacklist_item (NMSettingWireless *setting
,const char *mac
);
Adds a new MAC address to the “mac-address-blacklist” property.
nm_setting_wireless_remove_mac_blacklist_item ()
void nm_setting_wireless_remove_mac_blacklist_item (NMSettingWireless *setting
,guint32 idx
);
Removes the MAC address at index idx
from the blacklist.
nm_setting_wireless_remove_mac_blacklist_item_by_value ()
gboolean nm_setting_wireless_remove_mac_blacklist_item_by_value (NMSettingWireless *setting
,const char *mac
);
Removes the MAC address mac
from the blacklist.
nm_setting_wireless_clear_mac_blacklist_items ()
void
nm_setting_wireless_clear_mac_blacklist_items
(NMSettingWireless *setting
);
Removes all blacklisted MAC addresses.
nm_setting_wireless_get_hidden ()
gboolean
nm_setting_wireless_get_hidden (NMSettingWireless *setting
);
nm_setting_wireless_add_seen_bssid ()
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.
nm_setting_wireless_get_num_seen_bssids ()
guint32
nm_setting_wireless_get_num_seen_bssids
(NMSettingWireless *setting
);
nm_setting_wireless_get_seen_bssid ()
const char * nm_setting_wireless_get_seen_bssid (NMSettingWireless *setting
,guint32 i
);
nm_setting_wireless_ap_security_compatible ()
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.
Parameters
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 |
Types and Values
NM_SETTING_WIRELESS_CLONED_MAC_ADDRESS
#define NM_SETTING_WIRELESS_CLONED_MAC_ADDRESS "cloned-mac-address"
NM_SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST
#define NM_SETTING_WIRELESS_MAC_ADDRESS_BLACKLIST "mac-address-blacklist"
NM_SETTING_WIRELESS_MODE_ADHOC
#define NM_SETTING_WIRELESS_MODE_ADHOC "adhoc"
Indicates Ad-Hoc mode where no access point is expected to be present.
NM_SETTING_WIRELESS_MODE_AP
#define NM_SETTING_WIRELESS_MODE_AP "ap"
Indicates AP/master mode where the wireless device is started as an access point/hotspot.