Using the beaglebone black as a miracast receiver

It looks like Intel took the task of allowing us all to use the miracast technology and stream video from our phone/tablet to a screen.
What is Miracast ?
Here is the Text
And here is the site:

*[https://github.com/01org/wysiwidi](https://github.com/01org/wysiwidi)*

You will need to buy a ath9k usb device, but they are cheap.
You can then hook them up to your TV and wirelessly display your presentations.

I hope to give a test this weekend, or next one.

I am using debian 8.0 jessie with kernel 3.19.0-rc7-bone3 on the BBB.
0. Getting ready to build:
sudo apt-get install build-essential fakeroot devscripts

  1. Get openssl 1.0.2 :
    See http://www.linuxfromscratch.org/blfs/view/svn/postlfs/openssl.html
  • apt-get install zlib1g-dev
  • export CFLAGS=-fPIC
<kbd>- ./config --prefix=/usr --openssldir=/etc/ssl --libdir=lib shared zlib-dynamic && make</kbd>

wpa_supplicant/wpa_supplicant-2.3/wpa_supplicant# cat > .config << “EOF”

  1. wpa_supplicant
    wpa_supplicant-2.10
  • depends on: apt-get install bison flex libncurses5-dev libreadline6-dev
  • cat > wpa_supplicant/.config << “EOF”

CONFIG_BACKEND=file
CONFIG_CTRL_IFACE=y
CONFIG_DEBUG_FILE=yACILITY=LOG_DAEMON
CONFIG_DEBUG_SYSLOG=y
CONFIG_DEBUG_SYSLOG_FACILITY=LOG_DAEMON
CONFIG_DRIVER_NL80211=y
CONFIG_DRIVER_WEXT=y
CONFIG_DRIVER_WIRED=y
CONFIG_EAP_GTC=y
CONFIG_EAP_LEAP=y
CONFIG_EAP_MD5=y
CONFIG_EAP_MSCHAPV2=y
CONFIG_EAP_OTP=y
CONFIG_EAP_PEAP=y
CONFIG_EAP_TLS=y
CONFIG_EAP_TTLS=y
CONFIG_IEEE8021X_EAPOL=y
CONFIG_IPV6=y
CONFIG_LIBNL32=y
CONFIG_PEERKEY=y
CONFIG_PKCS12=y
CONFIG_READLINE=y
CONFIG_P2P=y
CONFIG_TDLS=y
CONFIG_WIFI_DISPLAY=y
CONFIG_WPS=y
CFLAGS += -I/usr/include/libnl3
EOF

- make BINDIR=/sbin LIBDIR=/lib
- now become root: sudo -s
- install:

install -v -m755 wpa_{cli,passphrase,supplicant} /sbin/ &&
install -v -m644 doc/docbook/wpa_supplicant.conf.5 /usr/share/man/man5/ &&
install -v -m644 doc/docbook/wpa_{cli,passphrase,supplicant}.8 /usr/share/man/man8/