I tried to get the host mode running of some RTL8188cus USB sticks that I bought on eBay for cheap money. However it did't work.
So I browsed the web and checked the forum here and was quiet disappointed about this topic.
It looks like there are plenty of guides for Wheezy (some 3.x kernel), but nothing for Jessie (the Debian branch that is part of the Noobs 1.8.0 release).
Also all the dropbox and private web page links I could find downloaded the same 0.8.x release of hostapd which is horrible outdated and I can't even find it on the official change log page https://w1.fi/cgit/hostap/plain/hostapd/ChangeLog
Long story short... here is what I did.
First I checked for what I have as USB dongles. You can do that with the command lsusb.
Then I install the hostapd like you can find it everywhere and adjust the config files as you wish.
Then I did this:
Code: Select all
# creating an folder to work in mkdir hostapd-comp cd hostapd-comp # getting the source from hosted 2.4 (not the latest but works with Noobs 1.8.0) wget https://w1.fi/releases/hostapd-2.4.tar.gz tar zxvf hostapd-2.4.tar.gz cd hostapd-2.4 # getting the source for the patch to allow WiFi chips such as RT8188C and RT8192C, who are recognized as RTL8188CUS wget https://github.com/pritambaral/hostapd-rtl871xdrv/archive/hostapd_2_4.zip unzip hostapd_2_4.zip # now we patch the original source patch -Np1 -i hostapd-rtl871xdrv-hostapd_2_4/rtlxdrv.patch cp hostapd-rtl871xdrv-hostapd_2_4/driver_rt* src/drivers/ cp hostapd-rtl871xdrv-hostapd_2_4/.config hostapd/.config cd hostapd # the following may take a while and hopefully will not terminate make # Checking if it could be compiled and shows the patch # it should show a line containing ”hostapd v2.4 for Realtek rtl871xdrv” ./hostapd -v # moving the original hostapd files out of the way and saving them as a backup sudo mv /usr/sbin/hostapd /usr/sbin/hostapd.bak sudo mv /usr/sbin/hostapd_cli /usr/sbin/hostapd_cli.bak # putting the new hostapd files in place sudo cp hostapd /usr/sbin/hostapd sudo cp hostapd_cli /usr/sbin/hostapd_cli # now cleaning up again (deleting all the stuff that we downloaded and extracted) cd .. sudo rm -R hostapd-comp
- You now have a slightly newer version of hostapd. The one you can get via apt-get is 2.3 and you have now 2.4. As of writing this 2.5 is the latest version.
- In the driver line in the /etc/hostapd/hostapd.conf can be ignored now.
- If you want to use two different USB dongle you can do so by using separated /etc/hostapd/hostapd.conf files e.g. /etc/hostapd/hostapd-1.conf and /etc/hostapd/hostapd-2.conf. You then need to adjust the /etc/default/hostapd to have following line in there: DAEMON_CONF="/etc/hostapd/hostapd-1.conf /etc/hostapd/hostapd-2.conf"
- you might want to disable autoupdate for your hostapd or backup those two files