summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSravanthi Palakonda <srapal@codeaurora.org>2016-02-02 16:57:08 +0530
committerSteve Kondik <steve@cyngn.com>2016-06-24 11:28:49 -1000
commit045ddba043181ce2dc3602b88419ff79f53307ec (patch)
tree0ec239c87bc28b3c0daef9a5d0d5d8930162cb3b
parentc17a63eddba6d339cccddb65416a209e889c148c (diff)
downloadandroid_frameworks_opt_net_wifi-045ddba043181ce2dc3602b88419ff79f53307ec.tar.gz
android_frameworks_opt_net_wifi-045ddba043181ce2dc3602b88419ff79f53307ec.tar.bz2
android_frameworks_opt_net_wifi-045ddba043181ce2dc3602b88419ff79f53307ec.zip
Wifi: send an explicit ENABLE_NETWORK with "no-connect"
ENABLE_NETWORK command is called from the framework because of PNO state change, which triggers the connect.This command is only expected to enable the network and not issue a connect because from framework the expected sequence of operations for a connect are SET_NETWORK, ENABLE_NETWORK and SELECT_NETWORK. Send an explicit ENABLE_NETWORK with "no-connect" to avoid connection. Change-Id: Ibf85875a73271ef0b8540bb0e182b66ea42d65e7 CRs-Fixed: 970896
-rw-r--r--service/java/com/android/server/wifi/WifiNative.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/WifiNative.java b/service/java/com/android/server/wifi/WifiNative.java
index 2664d6426..5ac556449 100644
--- a/service/java/com/android/server/wifi/WifiNative.java
+++ b/service/java/com/android/server/wifi/WifiNative.java
@@ -334,7 +334,7 @@ public class WifiNative {
if (disableOthers) {
return doBooleanCommand("SELECT_NETWORK " + netId);
} else {
- return doBooleanCommand("ENABLE_NETWORK " + netId);
+ return doBooleanCommand("ENABLE_NETWORK " + netId + " " + "no-connect");
}
}