summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorDmitry Shmidt <dimitrysh@google.com>2013-05-11 16:50:37 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-05-11 16:50:38 +0000
commitde1361fa12cef43cc97e98321408e1c4c5e44b38 (patch)
tree32fe6432d0acef30518c13549e47a1a66f546c97 /wifi
parent9e2632037d3a683d2513e5e38437e00102a3076d (diff)
parente25f9d246ee1f0487d39c9cc7edbadb2d355a6e1 (diff)
downloadframeworks_base-de1361fa12cef43cc97e98321408e1c4c5e44b38.zip
frameworks_base-de1361fa12cef43cc97e98321408e1c4c5e44b38.tar.gz
frameworks_base-de1361fa12cef43cc97e98321408e1c4c5e44b38.tar.bz2
Merge "P2P: Turn OFF PS-mode for DHCP session" into jb-mr2-dev
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/p2p/WifiP2pService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/p2p/WifiP2pService.java b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
index 0f7c84f..4cfc4ac 100644
--- a/wifi/java/android/net/wifi/p2p/WifiP2pService.java
+++ b/wifi/java/android/net/wifi/p2p/WifiP2pService.java
@@ -1361,6 +1361,8 @@ public class WifiP2pService extends IWifiP2pManager.Stub {
mWifiNative.setP2pGroupIdle(mGroup.getInterface(), GROUP_IDLE_TIME_S);
mDhcpStateMachine = DhcpStateMachine.makeDhcpStateMachine(mContext,
P2pStateMachine.this, mGroup.getInterface());
+ // TODO: We should use DHCP state machine PRE message like WifiStateMachine
+ mWifiNative.setP2pPowerSave(mGroup.getInterface(), false);
mDhcpStateMachine.sendMessage(DhcpStateMachine.CMD_START_DHCP);
WifiP2pDevice groupOwner = mGroup.getOwner();
WifiP2pDevice peer = mPeers.get(groupOwner.deviceAddress);