summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net
diff options
context:
space:
mode:
authorVitaly Wool <vitaly.wool@sonymobile.com>2012-09-04 15:03:13 +0200
committerJohan Redestig <johan.redestig@sonymobile.com>2012-12-03 16:00:44 +0100
commitd7fc38cead0d1da007834214eba102b294f7923c (patch)
tree1fd88bb3607325f2196bf4eef8dccd25a4132265 /wifi/java/android/net
parent4299f63e54dceeaaa44a057ba03f0881834491ec (diff)
downloadframeworks_base-d7fc38cead0d1da007834214eba102b294f7923c.zip
frameworks_base-d7fc38cead0d1da007834214eba102b294f7923c.tar.gz
frameworks_base-d7fc38cead0d1da007834214eba102b294f7923c.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/java/android/net')
-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 dafa8e8..99bc748 100644
--- a/wifi/java/android/net/wifi/WifiStateMachine.java
+++ b/wifi/java/android/net/wifi/WifiStateMachine.java
@@ -3412,6 +3412,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;
}