
Raspberry Pi, wireless dongle, hostapd
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 12151
- Joined: Thu Apr 06, 2006 4:21 pm
Re: Raspberry Pi, wireless dongle, hostapd
Thanks, added a note to the tutorial - no idea what changed but we'll go thru and update our hostapd.zip as well when we have a chance. till then, compiling works best 

- desmondttm123
- Posts: 2
- Joined: Tue Feb 18, 2014 5:22 am
Re: Raspberry Pi, wireless dongle, hostapd
hi, im trying to follow this step
sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip" (without the quotes)(this line didnt work for me...there are people who say going to the site to download straight, but i dont know how to do that. any suggestions? thanks!Think I got it. Download and compile the latest drivers from http://www.realtek.com.tw/downloads/dow ... Down=false Choose the RTL8188CUS.
This is what I did:
cd /tmp
sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip" (without the quotes)
sudo unzip RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
cd RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911
cd wpa_supplicant_hostapd
sudo tar -xvf wpa_supplicant_hostapd-0.8_rtw_r7475.20130812.tar.gz
cd wpa_supplicant_hostapd-0.8_rtw_r7475.20130812
cd hostapd
sudo make
sudo make install
sudo mv hostapd /usr/sbin/hostapd
sudo chown root.root /usr/sbin/hostapd
sudo chmod 755 /usr/sbin/hostapd
- desmondttm123
- Posts: 2
- Joined: Tue Feb 18, 2014 5:22 am
Re: Raspberry Pi, wireless dongle, hostapd
after installing hostapd from this forum, what do i do next? can i proceed as normal? what is the next step i should take? thanks!
- adafruit_support_mike
- Posts: 68234
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Raspberry Pi, wireless dongle, hostapd
You should be able to proceed normally.
-
- Posts: 1
- Joined: Fri Feb 21, 2014 8:37 pm
Re: Raspberry Pi, wireless dongle, hostapd
I don't understand how to get this link to work?
Seems like other people are getting it to work though? Any help would be much appreciated.sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip"
driver update instructions worked for me (except for the ftp and putting a sudo in front of the tar command)
- adafruit_support_mike
- Posts: 68234
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Raspberry Pi, wireless dongle, hostapd
You'd enter the string beginning with `sudo` from the command line on your RasPi. `wget` is a program that downloads files automatically.
- movermy
- Posts: 6
- Joined: Sat Mar 01, 2014 12:06 pm
Re: Raspberry Pi, wireless dongle, hostapd
I followed the manual down steps with success - I passed the "First test!" step (could see my iphone connect to the new ssid through the raspi terminal). However, there very next "Finishing up!" step yields "[FAIL] Starting advanced IEEE 802.11 management: hostapd failed!" when "sudo service hostapd start" is run. Any tips would be greatly appreciated (google has not turning anything up).
EDIT: found my error, I screwed up the DAEMON_CONF="/etc/hostapd/hostapd.conf" line in sudo nano /etc/default/hostapd
EDIT: found my error, I screwed up the DAEMON_CONF="/etc/hostapd/hostapd.conf" line in sudo nano /etc/default/hostapd
Last edited by movermy on Sat Mar 22, 2014 3:47 pm, edited 1 time in total.
- bcoggs
- Posts: 15
- Joined: Mon Jun 28, 2010 3:17 pm
Re: Raspberry Pi, wireless dongle, hostapd
sk00t3r recipe still works except for where to initially download the zip..
http://www.realtek.com/downloads
Communications Network ICS ->
Wireless Lan ICs ->
WLAN NIC ->
Software ->
Check RTL8192C
Pick Linux Kernel 2.6.18~3.9 Download from one of Site [1,2,3,4...]
I got a file RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip which I transferred to the raspi then
just followed the previous instructions..
Final step is to copy the new hostapd to /usr/sbin
http://www.realtek.com/downloads
Communications Network ICS ->
Wireless Lan ICs ->
WLAN NIC ->
Software ->
Check RTL8192C
Pick Linux Kernel 2.6.18~3.9 Download from one of Site [1,2,3,4...]
I got a file RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip which I transferred to the raspi then
just followed the previous instructions..
Final step is to copy the new hostapd to /usr/sbin
-
- Posts: 1
- Joined: Thu Mar 27, 2014 4:30 pm
Re: Raspberry Pi, wireless dongle, hostapd
I've tried downloading and installing multiple versions of "hostapd" and no matter what I do I keep getting the following:
pi@raspberrypi ~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1365638
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 44:33:4c:74:3a:e8 and ssid 'Pi_AP'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
random: Only 17/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid_ops
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
Any suggestions would be greatly appreciated!
pi@raspberrypi ~ $ sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1365638
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 44:33:4c:74:3a:e8 and ssid 'Pi_AP'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
random: Only 17/20 bytes of strong random data available from /dev/random
random: Not enough entropy pool available for secure operations
WPA: Not enough entropy in random pool for secure operations - update keys later when the first station connects
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid_ops
ioctl[RTL_IOCTL_HOSTAPD]: Invalid argument
Any suggestions would be greatly appreciated!
- adafruit_support_mike
- Posts: 68234
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Raspberry Pi, wireless dongle, hostapd
What OS/version are you using, and what do you have in /etc/hostapd/hostapd.conf?
-
- Posts: 2
- Joined: Wed Nov 14, 2012 9:25 am
Re: Raspberry Pi, wireless dongle, hostapd
I follow the OnionPi tutorial and I got the invalid argument problem.
I'm using a edimax wireless b/g/n nano usb adapter and I can get the driver.
When I try
sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip"
I can't connect.
Do you have any idea?
Thank
I'm using a edimax wireless b/g/n nano usb adapter and I can get the driver.
When I try
sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip"
I can't connect.
Do you have any idea?
Thank
- adafruit_support_mike
- Posts: 68234
- Joined: Thu Feb 11, 2010 2:51 pm
Re: Raspberry Pi, wireless dongle, hostapd
The mirror in question might not have been working.
Check the Realtek downloads page for a working link: http://www.realtek.com.tw/Downloads/dow ... loads=true
You want the Linux version of the RTL8192CU driver (about halfway down the page).
Check the Realtek downloads page for a working link: http://www.realtek.com.tw/Downloads/dow ... loads=true
You want the Linux version of the RTL8192CU driver (about halfway down the page).
- jan hugo andersen
- Posts: 1
- Joined: Thu Jun 27, 2013 7:47 pm
Re: Raspberry Pi, wireless dongle, hostapd
Hi all,
my first post here :)
I had the same download problem, the link seems to be missing the "download user".
WebUser:r3iZ6vJI@ did the trick for me.
sudo wget ftp://WebUser:[email protected]/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
my first post here :)
I had the same download problem, the link seems to be missing the "download user".
WebUser:r3iZ6vJI@ did the trick for me.
sudo wget ftp://WebUser:[email protected]/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
-
- Posts: 1
- Joined: Wed Apr 23, 2014 1:59 am
Re: Raspberry Pi, wireless dongle, hostapd
Following sk00t3r's directions worked for the most part, however I think I am in the same boat as geordonv in that I can view the Pi_Ap and I'm no longer receiving HOSTAPD related Invalid argument error.. but it looks like DHCP is not working? Anyone else getting similar behavior? Anyone have tips or possible solutions?
Update: I believe this was related to the WPA Supplicant. I had to follow the 'extra' commands listed in the directions and pasted below:
Extra: Removing WPA-Supplicant
Depending on your distro, you may need to remove WPASupplicant. Do so by running this command:
and then rebooting (sudo reboot)[/color]
Posting from my new Wireless AP so I'm all good :) Thanks for the help
Update: I believe this was related to the WPA Supplicant. I had to follow the 'extra' commands listed in the directions and pasted below:
Extra: Removing WPA-Supplicant
Depending on your distro, you may need to remove WPASupplicant. Do so by running this command:
Code: Select all
sudo mv /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service ~/
Posting from my new Wireless AP so I'm all good :) Thanks for the help
- linuxlizard
- Posts: 3
- Joined: Thu Dec 12, 2013 4:24 pm
Re: Raspberry Pi, wireless dongle, hostapd
Worked for me. I needed to go through the RealTek site to find the downloads, as suggested by other users.sk00t3r wrote:Please let me know if this workes for anyone. Thank you.
But once I had the download, the steps all worked perfectly. I have a functioning Raspberry Pi access point!
Please be positive and constructive with your questions and comments.