[gnome-shell] Revert "network: ignore APs that hide their SSID"



commit ef8772916d419acff5ea7e506176f6ba887ddab4
Author: Rui Matos <tiagomatos gmail com>
Date:   Sun Aug 14 23:35:55 2011 +0100

    Revert "network: ignore APs that hide their SSID"
    
    This reverts commit 6a3130e25fb8a9d83688f29346c187314d1c5745.
    
    It would hide those APs forever, even after connecting to them, which users
    can do via other means. Thanks to Giovanni Campagna for pointing this.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=654898

 js/ui/status/network.js |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index 3f38062..e2ae3f1 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -995,11 +995,7 @@ NMDeviceWireless.prototype = {
                 obj = this._networks[pos];
                 obj.accessPoints.push(ap);
             } else {
-                let ssid = ap.get_ssid();
-                if (ssid == null)
-                    continue;
-
-                obj = { ssid: ssid,
+                obj = { ssid: ap.get_ssid(),
                         mode: ap.mode,
                         security: this._getApSecurityType(ap),
                         connections: [ ],
@@ -1198,13 +1194,8 @@ NMDeviceWireless.prototype = {
     _accessPointAdded: function(device, accessPoint) {
         let pos = this._findNetwork(accessPoint);
         let apObj;
-        let ssid;
         let needsupdate = false;
 
-        ssid = accessPoint.get_ssid();
-        if (ssid == null)
-            return;
-
         if (pos != -1) {
             apObj = this._networks[pos];
             if (apObj.accessPoints.indexOf(accessPoint) != -1) {
@@ -1216,7 +1207,7 @@ NMDeviceWireless.prototype = {
             if (apObj.item)
                 apObj.item.updateAccessPoints(apObj.accessPoints);
         } else {
-            apObj = { ssid: ssid,
+            apObj = { ssid: accessPoint.get_ssid(),
                       mode: accessPoint.mode,
                       security: this._getApSecurityType(accessPoint),
                       connections: [ ],



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]