summaryrefslogtreecommitdiffstats
path: root/services/java
diff options
context:
space:
mode:
authorIrfan Sheriff <isheriff@google.com>2012-09-17 17:34:03 -0700
committerIrfan Sheriff <isheriff@google.com>2012-09-17 17:34:03 -0700
commit7ab7260697de617aced0b0ba594304a42e5395bd (patch)
tree298dc8a4972a7b83aabc42250c081b4a8e154eea /services/java
parent968df85b8e9121120a0709f8fa36cc4d700ffd79 (diff)
downloadframeworks_base-7ab7260697de617aced0b0ba594304a42e5395bd.zip
frameworks_base-7ab7260697de617aced0b0ba594304a42e5395bd.tar.gz
frameworks_base-7ab7260697de617aced0b0ba594304a42e5395bd.tar.bz2
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
Diffstat (limited to 'services/java')
-rw-r--r--services/java/com/android/server/display/WifiDisplayController.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/java/com/android/server/display/WifiDisplayController.java b/services/java/com/android/server/display/WifiDisplayController.java
index 141cbd7..9ab2881 100644
--- a/services/java/com/android/server/display/WifiDisplayController.java
+++ b/services/java/com/android/server/display/WifiDisplayController.java
@@ -483,6 +483,8 @@ final class WifiDisplayController implements DumpUtils.Dump {
mConnectingDevice = mDesiredDevice;
WifiP2pConfig config = new WifiP2pConfig();
config.deviceAddress = mConnectingDevice.deviceAddress;
+ // Helps with STA & P2P concurrency
+ config.groupOwnerIntent = WifiP2pConfig.MAX_GO_INTENT;
final WifiDisplay display = createWifiDisplay(mConnectingDevice);
mHandler.post(new Runnable() {