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

Commit dcc036c5 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Fix port logic in WifiDisplayController." into jb-mr1-dev

parents 1434e29a 5e0cc0d7
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -493,8 +493,13 @@ final class WifiDisplayController implements DumpUtils.Dump {
                return; // done
            }

            WifiP2pWfdInfo wfdInfo = mConnectedDevice.wfdInfo;
            int port = (wfdInfo != null ? wfdInfo.getControlPort() : DEFAULT_CONTROL_PORT);
            int port = DEFAULT_CONTROL_PORT;
            if (mConnectedDevice.deviceName.startsWith("DIRECT-")
                    && mConnectedDevice.deviceName.endsWith("Broadcom")) {
                // These dongles ignore the port we broadcast in our WFD IE.
                port = 8554;
            }

            final WifiDisplay display = createWifiDisplay(mConnectedDevice);
            final String iface = addr.getHostAddress() + ":" + port;