Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e25f9d24 authored by Dmitry Shmidt's avatar Dmitry Shmidt
Browse files

P2P: Turn OFF PS-mode for DHCP session



Bug: 8494584

Change-Id: I1d7519a40342538ab31ccad6210e47b3622ae31e
Signed-off-by: default avatarDmitry Shmidt <dimitrysh@google.com>
parent 9766caed
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1356,6 +1356,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);