How to get Wireless usb adapter to work as an AP (TL-WN725N ver.2)

I just got tethering to work fine with my TL-WN725N v2 under OSMC. Just note I didn’t use the GUI to turn it on and even ignored connman totally.

Here is the exact procedure I did

  1. If installed remove any old hostapd
  2. Install some needed programs

sudo apt-get install iw wireless-tools dnsmasq haveged

  1. Get / compile / install new hostapd (source http://www.jenssegers.be/43/Realtek-RTL8188-based-access-point-on-Raspberry-Pi)

wget https://github.com/jenssegers/RTL8188-hostapd/archive/v2.0.tar.gz
tar -zxvf v2.0.tar.gz
cd RTL8188-hostapd-2.0/hostapd
sudo make
sudo make install

  1. I prefer this shell script to configure and start the tethering
    GitHub - oblique/create_ap: [NOT MAINTAINED] This script creates a NATed or Bridged WiFi Access Point.

  2. Start tethering
    create_ap wlan0 eth0 --driver rtl871xdrv whateverssidyouwant whateverpassphraseyouwant

  3. Read that scripts instructions to learn how to make it a daemon and add it to /etc/rc.local if you want to start it at boot. Or find a better way to start it, I never really looked into it.