Skip to content

Commit 218e2f1

Browse files
isheriffAndroid (Google) Code Review
authored andcommitted
Merge "Specify max go intent for wifi display" into jb-mr1-dev
2 parents f1aa107 + 7ab7260 commit 218e2f1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

services/java/com/android/server/display/WifiDisplayController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,8 @@ private void next() {
485485
mConnectingDevice = mDesiredDevice;
486486
WifiP2pConfig config = new WifiP2pConfig();
487487
config.deviceAddress = mConnectingDevice.deviceAddress;
488+
// Helps with STA & P2P concurrency
489+
config.groupOwnerIntent = WifiP2pConfig.MAX_GO_INTENT;
488490

489491
final WifiDisplay display = createWifiDisplay(mConnectingDevice);
490492
mHandler.post(new Runnable() {

wifi/java/android/net/wifi/p2p/WifiP2pConfig.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public class WifiP2pConfig implements Parcelable {
3737
*/
3838
public WpsInfo wps;
3939

40+
/** @hide */
41+
public static final int MAX_GO_INTENT = 15;
42+
4043
/**
4144
* This is an integer value between 0 and 15 where 0 indicates the least
4245
* inclination to be a group owner and 15 indicates the highest inclination

0 commit comments

Comments
 (0)