Merge "Specify max go intent for wifi display" into jb-mr1-dev

This commit is contained in:
Irfan Sheriff
2012-09-17 17:37:47 -07:00
committed by Android (Google) Code Review
2 changed files with 5 additions and 0 deletions

View File

@@ -485,6 +485,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() {

View File

@@ -37,6 +37,9 @@ public class WifiP2pConfig implements Parcelable {
*/
public WpsInfo wps;
/** @hide */
public static final int MAX_GO_INTENT = 15;
/**
* This is an integer value between 0 and 15 where 0 indicates the least
* inclination to be a group owner and 15 indicates the highest inclination