diff options
author | Beniamino Galvani <bgalvani@redhat.com> | 2017-03-20 16:17:27 +0100 |
---|---|---|
committer | Beniamino Galvani <bgalvani@redhat.com> | 2017-03-24 13:32:04 +0100 |
commit | 174c00cdb88a87d1f52a5dd91a715fcead405609 (patch) | |
tree | 19e84e2ae1d8421c5b6652309c381385f778727b | |
parent | ca6d36bcdbf8d6a078cdef33987b7fa5a3d1f928 (diff) | |
download | network-manager-applet-174c00cdb88a87d1f52a5dd91a715fcead405609.tar.gz |
applet: ignore APs with hidden SSID when checking available APs
Any APs with no SSID should be ignored in
idle_check_avail_access_point_notification(), because they are hidden
in the GUI and we don't want to raise notifications for them.
https://bugzilla.gnome.org/show_bug.cgi?id=773675
-rw-r--r-- | src/applet-device-wifi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/applet-device-wifi.c b/src/applet-device-wifi.c index cd44e05a..7b706212 100644 --- a/src/applet-device-wifi.c +++ b/src/applet-device-wifi.c @@ -1082,10 +1082,15 @@ idle_check_avail_access_point_notification (gpointer datap) aps = nm_device_wifi_get_access_points (device); for (i = 0; i < aps->len; i++) { NMAccessPoint *ap = aps->pdata[i]; - GPtrArray *ap_connections = nm_access_point_filter_connections (ap, connections); + GPtrArray *ap_connections; int a; gboolean is_autoconnect = FALSE; + if (!nm_access_point_get_ssid (ap)) + continue; + + ap_connections = nm_access_point_filter_connections (ap, connections); + for (a = 0; a < ap_connections->len; a++) { NMConnection *connection = NM_CONNECTION (ap_connections->pdata[a]); NMSettingConnection *s_con; |