📬❄️📦Adafruit Holiday Shipping Deadlines 2019: Attention all domestic customers! Please place UPS Ground and USPS First Class & Priority orders by 11am ET Monday December 9, 2019 📬❄️📦 Attention all international customers! Please place all UPS WORLDWIDE EXPRESS; SAVER, and DHL EXPRESS WORLDWIDE orders by 11am ET Monday December 9, 2019 📬❄️📦
0

Raspberry Pi, wireless dongle, hostapd
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit on Mon Feb 17, 2014 12:08 pm

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 :)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm
Location: nyc

Re: Raspberry Pi, wireless dongle, hostapd

by desmondttm123 on Tue Feb 18, 2014 5:25 am

hi, im trying to follow this step


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


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!

desmondttm123
 
Posts: 2
Joined: Tue Feb 18, 2014 5:22 am

Re: Raspberry Pi, wireless dongle, hostapd

by desmondttm123 on Tue Feb 18, 2014 5:33 am

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!

desmondttm123
 
Posts: 2
Joined: Tue Feb 18, 2014 5:22 am

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Tue Feb 18, 2014 8:29 pm

You should be able to proceed normally.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

adafruit_support_mike
 
Posts: 59639
Joined: Thu Feb 11, 2010 2:51 pm

Re: Raspberry Pi, wireless dongle, hostapd

by trwlrw on Wed Feb 26, 2014 12:07 pm

I don't understand how to get this link to work?
sudo wget "ftp://95.130.192.218/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip"

Seems like other people are getting it to work though? Any help would be much appreciated.

driver update instructions worked for me (except for the ftp and putting a sudo in front of the tar command)
trwlrw
 
Posts: 1
Joined: Fri Feb 21, 2014 8:37 pm

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Thu Feb 27, 2014 7:00 pm

You'd enter the string beginning with `sudo` from the command line on your RasPi. `wget` is a program that downloads files automatically.
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

adafruit_support_mike
 
Posts: 59639
Joined: Thu Feb 11, 2010 2:51 pm

Re: Raspberry Pi, wireless dongle, hostapd

by movermy on Sat Mar 01, 2014 12:10 pm

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
Last edited by movermy on Sat Mar 22, 2014 3:47 pm, edited 1 time in total.
movermy
 
Posts: 6
Joined: Sat Mar 01, 2014 12:06 pm

Re: Raspberry Pi, wireless dongle, hostapd

by bcoggs on Fri Mar 14, 2014 6:28 pm

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

bcoggs
 
Posts: 14
Joined: Mon Jun 28, 2010 3:17 pm

Re: Raspberry Pi, wireless dongle, hostapd

by michaelpromeo on Thu Mar 27, 2014 4:39 pm

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!
michaelpromeo
 
Posts: 1
Joined: Thu Mar 27, 2014 4:30 pm

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Sat Mar 29, 2014 2:44 pm

What OS/version are you using, and what do you have in /etc/hostapd/hostapd.conf?
When you void a product warranty, you give up your right to sue the manufacturer if something goes wrong and accept full responsibility for whatever happens next. And then you truly own the product.

adafruit_support_mike
 
Posts: 59639
Joined: Thu Feb 11, 2010 2:51 pm

Re: Raspberry Pi, wireless dongle, hostapd

by mbaril on Thu Apr 03, 2014 6:15 pm

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
mbaril
 
Posts: 2
Joined: Wed Nov 14, 2012 9:25 am

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Sun Apr 06, 2014 1:38 am

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).

adafruit_support_mike
 
Posts: 59639
Joined: Thu Feb 11, 2010 2:51 pm

Re: Raspberry Pi, wireless dongle, hostapd

by Jan Hugo Andersen on Fri Apr 11, 2014 2:03 pm

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:r3iZ6vJI@95.130.192.218/c ... 130911.zip
Jan Hugo Andersen
 
Posts: 1
Joined: Thu Jun 27, 2013 7:47 pm

Re: Raspberry Pi, wireless dongle, hostapd

by matt7277 on Wed Apr 23, 2014 2:04 am

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:
Code: Select all | TOGGLE FULL SIZE
sudo mv /usr/share/dbus-1/system-services/fi.epitest.hostap.WPASupplicant.service ~/

and then rebooting (sudo reboot)


Posting from my new Wireless AP so I'm all good :) Thanks for the help
matt7277
 
Posts: 1
Joined: Wed Apr 23, 2014 1:59 am

Re: Raspberry Pi, wireless dongle, hostapd

by linuxlizard on Wed Apr 30, 2014 9:47 am

sk00t3r wrote:Please let me know if this workes for anyone. Thank you.


Worked for me. I needed to go through the RealTek site to find the downloads, as suggested by other users.

But once I had the download, the steps all worked perfectly. I have a functioning Raspberry Pi access point!

linuxlizard
 
Posts: 3
Joined: Thu Dec 12, 2013 4:24 pm

Please be positive and constructive with your questions and comments.