Skip to content

Commit 99766cf

Browse files
committed
Use min group owner intent for concurrency
Our device only supports STA & GC concurrency Change-Id: I4f16c959a6f4e7ad5610dcae67be830d741f162c
1 parent 9538bdd commit 99766cf

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ private void next() {
536536
WifiP2pConfig config = new WifiP2pConfig();
537537
config.deviceAddress = mConnectingDevice.deviceAddress;
538538
// Helps with STA & P2P concurrency
539-
config.groupOwnerIntent = WifiP2pConfig.MAX_GROUP_OWNER_INTENT;
539+
config.groupOwnerIntent = WifiP2pConfig.MIN_GROUP_OWNER_INTENT;
540540

541541
WifiDisplay display = createWifiDisplay(mConnectingDevice);
542542
advertiseDisplay(display, null, 0, 0, 0);

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public class WifiP2pConfig implements Parcelable {
3939

4040
/** @hide */
4141
public static final int MAX_GROUP_OWNER_INTENT = 15;
42+
/** @hide */
43+
public static final int MIN_GROUP_OWNER_INTENT = 0;
4244

4345
/**
4446
* This is an integer value between 0 and 15 where 0 indicates the least

0 commit comments

Comments
 (0)