Remove the BSSID retrieval for hidden networks
authorMartin Xu <martin.xu@intel.com>
Fri, 17 Jul 2009 10:04:04 +0000 (18:04 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 17 Jul 2009 10:40:12 +0000 (12:40 +0200)
plugins/supplicant.c

index 901ff1484c98ccb6919b1a106c48484cb0ba40d9..a31967467b265c2a487e801c74bdd01b3531455f 100644 (file)
@@ -1559,35 +1559,6 @@ static void state_change(struct supplicant_task *task, DBusMessage *msg)
 
        switch (task->state) {
        case WPA_COMPLETED:
-               if (connman_network_get_group(task->network) == NULL) {
-                       const char *name, *mode, *security;
-                       char *bssid;
-
-                       /*
-                        * This is a hidden network, we need to set its
-                        * group based on the BSSID we just joined.
-                        */
-                       bssid = get_bssid(task->device);
-
-                       name = connman_network_get_string(task->network,
-                                                               "Name");
-                       mode = connman_network_get_string(task->network,
-                                                               "WiFi.Mode");
-                       security = connman_network_get_string(task->network,
-                                                       "WiFi.Security");
-
-                       if (bssid && name && mode && security) {
-                               char *group;
-
-                               group = build_group(bssid, name, NULL, 0,
-                                                               mode, security);
-                               connman_network_set_group(task->network, group);
-                               g_free(group);
-                       }
-
-                       g_free(bssid);
-               }
-
                /* carrier on */
                connman_network_set_connected(task->network, TRUE);
                connman_device_set_scanning(task->device, FALSE);