[network-manager-applet] applet: ignore APs with hidden SSID when checking available APs
- From: Beniamino Galvani <bgalvani src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: ignore APs with hidden SSID when checking available APs
- Date: Fri, 24 Mar 2017 12:33:36 +0000 (UTC)
commit 174c00cdb88a87d1f52a5dd91a715fcead405609
Author: Beniamino Galvani <bgalvani redhat com>
Date: Mon Mar 20 16:17:27 2017 +0100
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
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 cd44e05..7b70621 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]