Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7ab72606 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

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
parent 968df85b
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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() {
+3 −0
Original line number Diff line number Diff line
@@ -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