2.2.8.4 Connection Preference Attribute

The Connection Preference attribute indicates the preference of transports for the connection of the Miracast Sink to the Miracast Source. The Sink MAY include a Connection Preference attribute in the Vendor Extension attribute, but it MUST NOT appear more than once.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

AttributeID

Length

ConnectionPreferenceList

AttributeID (2 bytes): The Connection Preference attribute ID, which is 0x2004.

Length (2 bytes): The length of the ConnectionPreferenceList field, in bytes, which is 0x0004.

ConnectionPreferenceList (4 bytes): A packed array with room for 8 connection transport IDs, in descending order of preference. The following IDs are defined.

Transport ID

Transport

0x1

Miracast over Infrastructure

0x2

Wi-Fi Direct (WFD)

The following is an example of a preference list buffer with Miracast over Infrastructure preferred over WFD.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

0x1

0x2

0

0

0

0

0

0