wifi_display: Add a utility function to set WFD subelements from IEs