diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c index 97464c4a27..5886414468 100644 --- a/libnm-glib/nm-access-point.c +++ b/libnm-glib/nm-access-point.c @@ -359,7 +359,7 @@ nm_access_point_get_strength (NMAccessPoint *ap) } /** - * nm_access_point_filter_connections: + * nm_access_point_connection_valid: * @ap: an #NMAccessPoint to validate @connection against * @connections: an #NMConnection to validate against @ap * @@ -368,11 +368,6 @@ nm_access_point_get_strength (NMAccessPoint *ap) * @ap's SSID, (if given) BSSID, and other attributes like security settings, * channel, band, etc. * - * To obtain the list of connections that are compatible with this access point, - * use nm_remote_settings_list_connections() and then filter the returned list - * for a given #NMDevice using nm_device_filter_connections() and finally - * filter that list with this function. - * * Returns: %TRUE if the connection may be activated with this WiFi AP, * %FALSE if it cannot be. **/ @@ -480,6 +475,11 @@ nm_access_point_connection_valid (NMAccessPoint *ap, NMConnection *connection) * returned connections will match the @ap'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_remote_settings_list_connections() and then filter the returned list + * for a given #NMDevice using nm_device_filter_connections() and finally + * filter that list with this function. + * * Returns: (transfer container) (element-type NetworkManager.Connection): a * list of #NMConnection objects that could be activated with the given @ap. * The elements of the list are owned by their creator and should not be freed