Skip to content

Commit 7ab7260

Browse files
committed
Specify max go intent for wifi display
For p2p and sta single channel concurrency, we need the device to be a GO Change-Id: I8c3f180b8fc450238e24dace478f03cdf4e370a7
1 parent 968df85 commit 7ab7260

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
@@ -483,6 +483,8 @@ private void next() {
483483
mConnectingDevice = mDesiredDevice;
484484
WifiP2pConfig config = new WifiP2pConfig();
485485
config.deviceAddress = mConnectingDevice.deviceAddress;
486+
// Helps with STA & P2P concurrency
487+
config.groupOwnerIntent = WifiP2pConfig.MAX_GO_INTENT;
486488

487489
final WifiDisplay display = createWifiDisplay(mConnectingDevice);
488490
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)