summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2012-09-28 16:49:50 -0700
committerIrfan Sheriff <isheriff@google.com>2012-09-28 16:53:33 -0700
commitce6fc8d7a49d1b246e37c4e87fd5e715e408bca2 (patch)
tree23e421c7c3bfa9cede158f1ee8f6688662f95f72 /wifi
parent95841ac3c2d45a839cc3cd0bd420fd9d91ccd583 (diff)
downloadframeworks_base-ce6fc8d7a49d1b246e37c4e87fd5e715e408bca2.zip
frameworks_base-ce6fc8d7a49d1b246e37c4e87fd5e715e408bca2.tar.gz
frameworks_base-ce6fc8d7a49d1b246e37c4e87fd5e715e408bca2.tar.bz2
Revert setting GO idle time out
GO idle time out causes issues with multi-channel capable client which can take longer to connect. Use the supplicant default detection when acting as a GO. Bug: 7254008 Change-Id: I6c40081cfa83ca0ddbb764640a48c92d69e609fd
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/p2p/WifiP2pService.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
index 2e6aa88..ef57e63 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -1231,10 +1231,17 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
mGroup.getNetworkName()));
}
- mWifiNative.setP2pGroupIdle(mGroup.getInterface(), GROUP_IDLE_TIME_S);
if (mGroup.isGroupOwner()) {
+ /* Setting an idle time out on GO causes issues with certain scenarios
+ * on clients where it can be off-channel for longer and with the power
+ * save modes used.
+ *
+ * TODO: Verify multi-channel scenarios and supplicant behavior are
+ * better before adding a time out in future
+ */
startDhcpServer(mGroup.getInterface());
} else {
+ mWifiNative.setP2pGroupIdle(mGroup.getInterface(), GROUP_IDLE_TIME_S);
mDhcpStateMachine = DhcpStateMachine.makeDhcpStateMachine(mContext,
P2pStateMachine.this, mGroup.getInterface());
mDhcpStateMachine.sendMessage(DhcpStateMachine.CMD_START_DHCP);