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.
This commit is contained in:
Dan Williams 2013-10-15 16:50:05 -05:00
parent 1d0a26e19d
commit fe9dee6bc8

View file

@ -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) {