NM.AccessPoint¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
|||
|
r |
||
r |
|||
r |
|
||
r |
|||
r |
|||
|
r |
||
|
r |
||
r |
|||
r |
|||
|
r |
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class NM.AccessPoint(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- connection_valid(connection)¶
- Parameters:
connection (
NM.Connection
) – anNM.Connection
to validate against self- Returns:
True
if the connection may be activated with this Wi-Fi AP,False
if it cannot be.- Return type:
Validates a given connection against a given Wi-Fi access point to ensure that the connection may be activated with that AP. The connection must match the self's SSID, (if given) BSSID, and other attributes like security settings, channel, band, etc.
- filter_connections(connections)¶
- Parameters:
connections ([
NM.Connection
]) – an array ofNM.Connections
to filter- Returns:
an array of
NM.Connections
that could be activated with the given self. The array should be freed with g_ptr_array_unref() when it is no longer required.WARNING: the transfer annotation for this function may not work correctly with bindings. See https://gitlab.gnome.org/GNOME/gobject-introspection/-/issues/305. You can filter the list yourself with
NM.AccessPoint.connection_valid
().- Return type:
Filters a given array of connections for a given
NM.AccessPoint
object and returns connections which may be activated with the access point. Any returned connections will match the self's SSID and (if given) BSSID and other attributes like security settings, channel, etc.To obtain the list of connections that are compatible with this access point, use
NM.Client.get_connections
() and then filter the returned list for a givenNM.Device
usingNM.Device.filter_connections
() and finally filter that list with this function.
- get_bandwidth()¶
- Returns:
the advertised bandwidth (MHz)
- Return type:
Gets the bandwidth advertised by the access point in MHz.
New in version 1.46.
- get_bssid()¶
- Returns:
the BSSID of the access point. This is an internal string and must not be modified or freed.
- Return type:
Gets the Basic Service Set ID (BSSID) of the Wi-Fi access point.
- get_flags()¶
- Returns:
the flags
- Return type:
NM.80211ApFlags
Gets the flags of the access point.
- get_frequency()¶
- Returns:
the frequency in MHz
- Return type:
Gets the frequency of the access point in MHz.
- get_last_seen()¶
- Returns:
the last seen time in seconds
- Return type:
Returns the timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has not been found in a scan.
New in version 1.2.
- get_max_bitrate()¶
- Returns:
the maximum bit rate (kbit/s)
- Return type:
Gets the maximum bit rate of the access point in kbit/s.
- get_mode()¶
- Returns:
the mode
- Return type:
NM.80211Mode
Gets the mode of the access point.
- get_rsn_flags()¶
- Returns:
the RSN flags
- Return type:
NM.80211ApSecurityFlags
Gets the RSN (Robust Secure Network, ie WPA version 2) flags of the access point.
- get_ssid()¶
- Returns:
the
GLib.Bytes
containing the SSID, orNone
if the SSID is unknown.- Return type:
Gets the SSID of the access point.
- get_strength()¶
- Returns:
the signal strength (0 to 100)
- Return type:
Gets the current signal strength of the access point as a percentage.
- get_wpa_flags()¶
- Returns:
the WPA flags
- Return type:
NM.80211ApSecurityFlags
Gets the WPA (version 1) flags of the access point.
Property Details¶
- NM.AccessPoint.props.bandwidth¶
-
The channel bandwidth announced by the AP in MHz.
New in version 1.46.
- NM.AccessPoint.props.bssid¶
-
The BSSID of the access point.
- NM.AccessPoint.props.flags¶
- Name:
flags
- Type:
NM.80211ApFlags
- Default Value:
NM.80211ApFlags.NONE
- Flags:
The flags of the access point.
- NM.AccessPoint.props.frequency¶
-
The frequency of the access point.
- NM.AccessPoint.props.hw_address¶
-
Alias for
NM.AccessPoint
:bssid
.Deprecated since version 1.0: Use
NM.AccessPoint
:bssid
.
- NM.AccessPoint.props.last_seen¶
-
The timestamp (in CLOCK_BOOTTIME seconds) for the last time the access point was found in scan results. A value of -1 means the access point has not been found in a scan.
New in version 1.2.
- NM.AccessPoint.props.max_bitrate¶
-
The maximum bit rate of the access point in kbit/s.
- NM.AccessPoint.props.mode¶
- Name:
mode
- Type:
NM.80211Mode
- Default Value:
NM.80211Mode.UNKNOWN
- Flags:
The mode of the access point; either “infrastructure” (a central coordinator of the wireless network allowing clients to connect) or “ad-hoc” (a network with no central controller).
- NM.AccessPoint.props.rsn_flags¶
- Name:
rsn-flags
- Type:
NM.80211ApSecurityFlags
- Default Value:
NM.80211ApSecurityFlags.NONE
- Flags:
The RSN flags of the access point.
- NM.AccessPoint.props.ssid¶
- Name:
ssid
- Type:
- Default Value:
- Flags:
The SSID of the access point, or
None
if it is not known.
- NM.AccessPoint.props.strength¶
- Name:
strength
- Type:
- Default Value:
0
- Flags:
The current signal strength of the access point.