summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorVitaly Wool <vitaly.wool@sonymobile.com>2012-09-04 15:03:13 +0200
committerChirayu Desai <cdesai@cyanogenmod.org>2012-12-04 18:48:53 +0530
commitc70ebdae9f02d133504874bb8d0ed842c4e812c2 (patch)
treecbe1b39d4cca9ffa9e59271da94209a4c648e258 /wifi
parent9b35cd5321b4cc2110f4b8dcb20601cc92c852c2 (diff)
downloadframeworks_base-c70ebdae9f02d133504874bb8d0ed842c4e812c2.zip
frameworks_base-c70ebdae9f02d133504874bb8d0ed842c4e812c2.tar.gz
frameworks_base-c70ebdae9f02d133504874bb8d0ed842c4e812c2.tar.bz2
Prevent scanning during DHCP process
Wi-Fi should be in active state during the entire DHCP process, and shouldn't go to IEEE 802.11 power save mode. If the framework requests scan during the DHCP process, the Wi-Fi chip has to start scanning on channels different from the current one, and going to power save mode is a prerequisite for scan. The result directly impacts user experience: DHCP process takes longer, and even can fail. Change-Id: I8171388bb70072e4c42cb3c074dd955da84e494b
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiStateMachine.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiStateMachine.java b/wifi/java/android/net/wifi/WifiStateMachine.java
index 040ff24..ff6c692 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3404,6 +3404,10 @@ public class WifiStateMachine extends StateMachine {
case CMD_SET_HIGH_PERF_MODE:
deferMessage(message);
break;
+ /* Defer scan request since we should not switch to other channels at DHCP */
+ case CMD_START_SCAN:
+ deferMessage(message);
+ break;
default:
return NOT_HANDLED;
}