[gnome-shell] network: Let NetworkManager figure out the best AP for the connection



commit 4faf421d5ad9d8658dbaf268cbb194ec5a4a25ca
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Thu Jan 23 14:35:10 2014 -0500

    network: Let NetworkManager figure out the best AP for the connection
    
    According to dcbw, this can be handled by NetworkManager now.

 js/ui/status/network.js |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/js/ui/status/network.js b/js/ui/status/network.js
index c3212cc..489d533 100644
--- a/js/ui/status/network.js
+++ b/js/ui/status/network.js
@@ -733,16 +733,11 @@ const NMWirelessDialog = new Lang.Class({
 
     _connect: function() {
         let network = this._selectedNetwork;
-        let accessPoints = network.accessPoints;
         if (network.connections.length > 0) {
             let connection = network.connections[0];
-            for (let i = 0; i < accessPoints.length; i++) {
-                if (accessPoints[i].connection_valid(connection)) {
-                    this._client.activate_connection(connection, this._device, accessPoints[i].dbus_path, 
null);
-                    break;
-                }
-            }
+            this._client.activate_connection(connection, this._device, null, null);
         } else {
+            let accessPoints = network.accessPoints;
             if ((accessPoints[0]._secType == NMAccessPointSecurity.WPA2_ENT)
                 || (accessPoints[0]._secType == NMAccessPointSecurity.WPA_ENT)) {
                 // 802.1x-enabled APs require further configuration, so they're


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