3.2.5.4 Miracast Connection Complete
When the connection to the Sink over TCP port 7250 fails, the Source MUST do the following:
Abandon its attempt to start a Miracast over Infrastructure session by closing any connections to the Sink and deleting its state.
Fall back to using standard Miracast [WF-WSC2.0.2].
If the connection attempt succeeds, the Source MUST do the following.
Determine the optional features of the protocol to use and store them for the session (section 3.2.1). If the Sink had the StreamEncryptionSupported bit set in the Capability Attribute (section 2.2.8.1) the Source SHOULD<10> use stream encryption in the connection setup. If the Sink had the PinSupported bit set in the Capability Attribute, the Source SHOULD<11> use PIN display for the connection. The decision to use these capabilities is implementation specific and the result is stored in Selected Sink Capabilities (section 3.2.1).
If PIN entry is set in Selected Sink Capabilities (section 3.2.1):
If Stream Encryption is set in Selected Sink Capabilities (section 3.2.1):
If Stream Encryption is not set in Selected Sink Capabilities (section 3.2.1):