Skip to content

Commit d3081bc

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Revert setting GO idle time out" into jb-mr1-dev
2 parents 8421556 + ce6fc8d commit d3081bc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

wifi/java/android/net/wifi/p2p/WifiP2pService.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,10 +1231,17 @@ public boolean processMessage(Message message) {
12311231
mGroup.getNetworkName()));
12321232
}
12331233

1234-
mWifiNative.setP2pGroupIdle(mGroup.getInterface(), GROUP_IDLE_TIME_S);
12351234
if (mGroup.isGroupOwner()) {
1235+
/* Setting an idle time out on GO causes issues with certain scenarios
1236+
* on clients where it can be off-channel for longer and with the power
1237+
* save modes used.
1238+
*
1239+
* TODO: Verify multi-channel scenarios and supplicant behavior are
1240+
* better before adding a time out in future
1241+
*/
12361242
startDhcpServer(mGroup.getInterface());
12371243
} else {
1244+
mWifiNative.setP2pGroupIdle(mGroup.getInterface(), GROUP_IDLE_TIME_S);
12381245
mDhcpStateMachine = DhcpStateMachine.makeDhcpStateMachine(mContext,
12391246
P2pStateMachine.this, mGroup.getInterface());
12401247
mDhcpStateMachine.sendMessage(DhcpStateMachine.CMD_START_DHCP);

0 commit comments

Comments
 (0)