From 31d5a5f1db053e8a2565d8667b3bfea88e861247 Mon Sep 17 00:00:00 2001
From: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
Date: Tue, 15 Apr 2014 09:41:39 -0400
Subject: [PATCH] Remove automatic wifi activation

Experimental feature, not needed
---
 src/org/sflphone/fragments/CallFragment.java | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/org/sflphone/fragments/CallFragment.java b/src/org/sflphone/fragments/CallFragment.java
index e33989489..c27482b7e 100644
--- a/src/org/sflphone/fragments/CallFragment.java
+++ b/src/org/sflphone/fragments/CallFragment.java
@@ -91,7 +91,6 @@ public class CallFragment extends CallableWrapperFragment implements CallInterfa
             WifiInfo info = wifiManager.getConnectionInfo();
             Log.i(TAG, "Level of wifi " + info.getRssi());
         }
-
     };
 
     @Override
@@ -117,17 +116,8 @@ public class CallFragment extends CallableWrapperFragment implements CallInterfa
     }
 
     private void initializeWiFiListener() {
-        Log.i(TAG, "executing initializeWiFiListener");
-
         String connectivity_context = Context.WIFI_SERVICE;
         wifiManager = (WifiManager) getActivity().getSystemService(connectivity_context);
-
-        if (!wifiManager.isWifiEnabled()) {
-            if (wifiManager.getWifiState() != WifiManager.WIFI_STATE_ENABLING) {
-                wifiManager.setWifiEnabled(true);
-            }
-        }
-
         getActivity().registerReceiver(wifiReceiver, new IntentFilter(WifiManager.RSSI_CHANGED_ACTION));
     }
 
-- 
GitLab