From fe9dee6bc87badf297a371950337e74b107f1f46 Mon Sep 17 00:00:00 2001 From: Dan Williams Date: Tue, 15 Oct 2013 16:50:05 -0500 Subject: libnm-glib: remove bogus warning When connecting to a hidden SSID, the Access Point object that NetworkManager creates will have no frequency, because the frequency is unknown until the connection succeeds. The warning has no use; if the AP doesn't have a frequency then it even match a connection with a specified frequency. --- libnm-glib/nm-access-point.c | 1 - 1 file changed, 1 deletion(-) (limited to 'libnm-glib') diff --git a/libnm-glib/nm-access-point.c b/libnm-glib/nm-access-point.c index ade8d6ee61..c185ab0b6c 100644 --- a/libnm-glib/nm-access-point.c +++ b/libnm-glib/nm-access-point.c @@ -354,7 +354,6 @@ nm_access_point_connection_valid (NMAccessPoint *ap, NMConnection *connection) /* Band and Channel/Frequency */ ap_freq = nm_access_point_get_frequency (ap); - g_warn_if_fail (ap_freq > 0); if (ap_freq) { setting_band = nm_setting_wireless_get_band (s_wifi); if (g_strcmp0 (setting_band, "a") == 0) { -- cgit v1.2.3