$ git clone https://github.com/pritambaral/hostapd-rtl871xdrv.git $ wget https://w1.fi/releases/hostapd-2.6.tar.gz $ tar xvfz hostapd-2.6.tar.gz $ cd hostapd-2.6 $ patch -p1 < ../hostapd-rtl871xdrv/rtlxdrv.patch $ cd hostapd $ cp defconfig .config $ echo CONFIG_LIBNL32=y >> .config $ echo CONFIG_DRIVER_RTW=y >> .config $ make