FY4Sne
Posts: 28
Joined: Fri Dec 14, 2012 7:22 am

hostapd & RTL8188CUS driver

Sat Jul 13, 2013 3:25 am

i'm trying to follow directions form adafruit's tor/pi tutorial.

i get this returned from starting:
sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf

Line 2: invalid/unknown driver 'rtl819xC '


i get this returned from lsusb:

Bus 001 Device 007: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

installed wheezy v3.6.11+. and looks like the rtl8188cus driver is built-in to this kernel.
i'm using the LB-Link usb wireless adapter (bl-lw05-ar5)

i'm trying to setp hostapd but i don't know what value to put in the hostapd.conf file for "device="
adafruit has "driver=rtl871xdrv" but that is for an older os. entering "driver=rtl819xC" didn't help either.

so whats the correct value to enter for "driver= " with this particular realtek driver?

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: hostapd & RTL8188CUS driver

Tue Jul 16, 2013 5:30 pm

Take a look here http://www.daveconroy.com/turn-your-ras ... s-chipset/

Don't worry about driver=. I've had mine running without that line in the config file as I had doubts about the driver file it used.

More info on that here http://www.raspberrypi.org/phpBB3/viewt ... 31#p385731


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

FY4Sne
Posts: 28
Joined: Fri Dec 14, 2012 7:22 am

Re: hostapd & RTL8188CUS driver

Tue Jul 16, 2013 10:06 pm

http://blog.sip2serve.com/post/48420162 ... cess-point

appreciate the links. i'll have a look at them and check against my configuration. i'm looking at the above also as for my home use, it will be a bridge AP. i.e., i don't really need dhcp or nat for this RPi AP function.

still getting:
[FAIL] Starting advanced IEEE 802.11 management: hostapd failed!

i'll spend some time checking logs and configs, x-ref with your links and see where the failure is

thanks!

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: hostapd & RTL8188CUS driver

Wed Jul 17, 2013 10:04 am

What version of wheezy are you using. Could be the hostapd you have may not be compatible with the revision of the kernel you are using.

I had no trouble using 2013-05-25-wheezy-raspbian and hostapd downloaded from Dave Conroy's set up instructons. I looked at the link you showed and didn't understand it at all. These overly complicated config files really don't help understand how things work or what they do or don't do :? .


MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

FY4Sne
Posts: 28
Joined: Fri Dec 14, 2012 7:22 am

Re: hostapd & RTL8188CUS driver

Thu Jul 18, 2013 2:27 am

3.6.11+

hostapd v0.8.x

is used the tutorial from the site you linked, http://www.daveconroy.com, and i now have the RPi working as a bridge. didin't take long at all, like less than 30min total.

i suspect i may have had a version of "hostapd" not suitable for my rtl8188cus usb antenna along with the many config changes i was making to /etc/hostapd/hostapd.conf.

of course the adafruit version mentions installing 'nat' and adjusting iptables. all fine and good but i didn't need that as i already have a nat'd firewall. i just needed a RPi bridge to test and play with. of course i may tweak iptables on the RPi later but it throws more things to go wrong with initial setup.

now that its working, i can afford to tweak hostapd.conf if needed, iptables, etc.

certainly a driver issue at first and convoy's version seemed to help

User avatar
jbeale
Posts: 3675
Joined: Tue Nov 22, 2011 11:51 pm
Contact: Website

switch between hostapd and normal wifi client

Tue Nov 12, 2013 10:45 pm

I have a R-Pi Model A with RTL8188CUS that I need to frequently switch between normal wifi WPA2 client, and being its own wifi access point (with local access only; not bridged to any other network). To make this switch I manually edit two files and reboot:

Code: Select all

# to reconfigure between Wifi client and Wifi access point host:
# set static IP on wlan0 for AP; set manual for wlan0 with wpa_supplicant.conf for normal Wifi)
sudo nano /etc/network/interfaces   

# to start hostapd, uncomment # DAEMON_CONF="/etc/hostapd/hostapd.conf" )
sudo nano /etc/default/hostapd

sudo reboot
This is not too hard, and I guess I could make a script to do it also. But is there some easier way (eg. built-in on/off switch in hostapd) ?

Return to “Networking and servers”