Skip to content

Commit dcc036c

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Fix port logic in WifiDisplayController." into jb-mr1-dev
2 parents 1434e29 + 5e0cc0d commit dcc036c

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

services/java/com/android/server/display/WifiDisplayController.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,13 @@ public void onFailure(int reason) {
493493
return; // done
494494
}
495495

496-
WifiP2pWfdInfo wfdInfo = mConnectedDevice.wfdInfo;
497-
int port = (wfdInfo != null ? wfdInfo.getControlPort() : DEFAULT_CONTROL_PORT);
496+
int port = DEFAULT_CONTROL_PORT;
497+
if (mConnectedDevice.deviceName.startsWith("DIRECT-")
498+
&& mConnectedDevice.deviceName.endsWith("Broadcom")) {
499+
// These dongles ignore the port we broadcast in our WFD IE.
500+
port = 8554;
501+
}
502+
498503
final WifiDisplay display = createWifiDisplay(mConnectedDevice);
499504
final String iface = addr.getHostAddress() + ":" + port;
500505

0 commit comments

Comments
 (0)