Skip to content

Commit

Permalink
Prevent scanning during DHCP process
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Vitaly Wool authored and chirayudesai committed Dec 4, 2012
1 parent 9b35cd5 commit c70ebda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wifi/java/android/net/wifi/WifiStateMachine.java
Original file line number Diff line number Diff line change
Expand Up @@ -3404,6 +3404,10 @@ public boolean processMessage(Message message) {
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;
}
Expand Down

0 comments on commit c70ebda

Please sign in to comment.