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

Commit ce6fc8d7 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

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
parent 95841ac3
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -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);