diff options
author | Sravanthi Palakonda <srapal@codeaurora.org> | 2016-02-02 16:57:08 +0530 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2016-06-24 11:28:49 -1000 |
commit | 045ddba043181ce2dc3602b88419ff79f53307ec (patch) | |
tree | 0ec239c87bc28b3c0daef9a5d0d5d8930162cb3b | |
parent | c17a63eddba6d339cccddb65416a209e889c148c (diff) | |
download | frameworks_opt_net_wifi-045ddba043181ce2dc3602b88419ff79f53307ec.tar.gz frameworks_opt_net_wifi-045ddba043181ce2dc3602b88419ff79f53307ec.tar.bz2 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.java | 2 |
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 2664d64..5ac5564 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"); } } |