While working with my Chamberlain MyQ Garage Door Opener the other day, I ran into issues getting hostapd to work on Kali with the chap ass Netis WP2120 nano USB adapter I had (based on the RTL8192cu chipset/driver). I need to clear off a few browser tabs and eventually see if I can get hostapd working with this adapter on a different box (VM) for testing. A few of the links I worked with unsuccessfully, but provide some useful information.
- https://koharicorp.wordpress.com/2015/03/26/debian-access-point-with-hostapd-and-rtl8188cusrtl8192cu/
- Still threw an error for me, may retry under a different distribution on a different host. I really should set up vagrant.
- https://www.raspberrypi.org/forums/viewtopic.php?t=28589&p=252533
- More of a client config than hostapd
- https://www.psattack.com/articles/20160410/setting-up-a-wireless-access-point-in-kali/
- hostapd configuration in Kali with a friendlier device/chipset
More notes
Installed usbutils for lsusb
Installed hostapd
Installed iw
Installed lshw
Ran through steps at https://adamscheller.com/systems-administration/rtl8192cu-fix-wifi/, minor issue with “linux-headers-generic”, skipped it for now.
Did receive a modprobe error, “could not insert ‘8192cu’: Device or resource busy”. lsmod shows the old rtl8192cu drivers active. Did a reboot. Correct driver modules now listed, though no device listing in ‘iw list’. Does appear in ‘lshw -c network’, and appears as wlan0 in ‘ip link list’.
Started in with hostapd steps from http://sarumait.blogspot.com/2013/11/ubuntu-wireless-hotspot-using-edimax-ew.html and from my previous testing on the Chamberlain page.
Attempted to start hostapd service which seemed to work, but didn’t see my SSID. Ran it interactive debug and got an “invalid/unknown driver ‘8192cu'”.
Instructions at https://github.com/pritambaral/hostapd-rtl871xdrv
Git cloned the above repository and the w1.fi repository listed. Got hostapd to build after installing dependencies (below).
apt-get install apt-file libnl-3-dev libnl-genl-3-dev pkg-config libssl-dev
apt-file not needed, but handy for looking up files that resulted in failures during make.
Ran the patch process noted at https://github.com/pritambaral/hostapd-rtl871xdrv
Ended up having some success after doing a ‘make dkms’ in the rt8192cu directory cloned from https://github.com/dz0ny/rt8192cu and setting the driver in my hostapd.conf to the rtl871xdrv
Pages helpful in getting it to work
- https://github.com/pritambaral/hostapd-rtl871xdrv
- Driver that actually worked and instructions that covered most of what I needed to do
- https://www.raspberrypi.org/forums/viewtopic.php?t=65009&p=478495
- This page was what got me to set the driver rtl871xdrv after the ‘make dkms’ in the rt8192cu directory
- http://askubuntu.com/questions/617973/fatal-error-netlink-genl-genl-h-no-such-file-or-directory
- This was useful in resolving some of the compilation errors I encountered while attempting to build hostapd before patching. I also got some errors during compilation regarding missing pkg-config, which led me to install the pkg-config package.
- http://billauer.co.il/blog/2014/06/linux-realtek-hostapd/
- Referenced several times during the research and build process
- Thanks! I appreciate the offer and your post!
- Hi, If you need some help about my blogpost, feel free to leavea comment, or send a…