Miracast is wireless HDMI replacement with DRM and all that stuff and as such is nogo from the beginning. From what I read, you need special hardware because it uses one or more wifi channels simultaneously. Anything under WIFI-Direct will probably never work with open-source hw/sw.