No need to scan wifi until propertyChanged signal is received
[profile/ivi/SettingsApp.git] / js / panel-connman.js
index b3e605c..3e27cdd 100644 (file)
@@ -457,12 +457,6 @@ function connmanConstructTechnologyElement(technology) {
                 /* success */
                 $('#toggle_connman_' + technology.prop.Type).slider('enable');
                 $('#toggle_connman_' + technology.prop.Type).slider('refresh');
-                if (technology.prop.Type === 'wifi') {
-                    setTimeout(function() {
-                        /* add a 1 sec delay */
-                        connmanScan(technology.id);
-                    }, 1000);
-                }
                 console.log('Successfully enabled connman technology ' + technology.prop.Type);
             }, function(e) {
                 /* error */