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 student0007 on Fri May 23, 2014 12:54 am

For the life of me I cannot get past this Invalid error. I followed the above fix and continue to get login incorrect. I cant even download the file in order to bypass this error.

Please help.
student0007
 
Posts: 2
Joined: Mon May 12, 2014 8:12 pm

Re: Raspberry Pi, wireless dongle, hostapd

by flexbrane on Fri May 23, 2014 6:08 am

Please, help me !
I've tried many forum, i can't resolve my problem..

again and again "Line 3: invalid/unknown driver 'rt1871xdrv' "
The same for "nl80211"...

My wireless USB adaptater is a TP LINK TL321G...
flexbrane
 
Posts: 2
Joined: Fri May 23, 2014 6:06 am

Re: Raspberry Pi, wireless dongle, hostapd

by student0007 on Sun May 25, 2014 8:41 pm

Okay after the last three days of trying to get this to work I still have had no success or replies from Adafruit staff.

I cannot get the files to download from the site onto my Raspberry Pi. This is what is happening;
pi@RaspberryPiAssignment:/tmp$ sudo wget ftp://95.130.192.218/cn/wlan/RTL8188C_8 ... 130911.zip
--2014-05-26 10:30:33-- ftp://95.130.192.218/cn/wlan/RTL8188C_8 ... 130911.zip
=> `RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip'
Connecting to 95.130.192.218:21... connected.
Logging in as anonymous ...
Login incorrect.

I have tried to login as WebUser with no success as well. Please help me get past this stage. I tried to do adafruits tutorial way as well but this is how i came about this problem. I also bought all products from Adafruit. A reply would be great.
student0007
 
Posts: 2
Joined: Mon May 12, 2014 8:12 pm

Re: Raspberry Pi, wireless dongle, hostapd

by flexbrane on Mon May 26, 2014 3:20 am

I have solved my problem. It was my WiFi Dongle who was dead.
So, i changed it, and now it works !
flexbrane
 
Posts: 2
Joined: Fri May 23, 2014 6:06 am

Re: Raspberry Pi, wireless dongle, hostapd

by metRo_ on Mon Jun 30, 2014 3:48 pm

Hi :) First I want to thank you for the tutorial on how to solve it :) I got mine WiFi Ap working but there is an error on the syslog:
pi@raspberrypi ~ $ tail -f /var/log/syslog
Jun 30 19:32:30 raspberrypi ntpd[2174]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:57 UTC 2012 (1)
Jun 30 19:32:30 raspberrypi ntpd[2177]: proto: precision = 1.000 usec
Jun 30 19:32:30 raspberrypi ntpd[2177]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123
Jun 30 19:32:30 raspberrypi ntpd[2177]: Listen normally on 1 lo 127.0.0.1 UDP 123
Jun 30 19:32:30 raspberrypi ntpd[2177]: Listen normally on 2 eth0 192.168.1.74 UDP 123
Jun 30 19:32:30 raspberrypi ntpd[2177]: Listen normally on 3 wlan0 192.168.42.1 UDP 123
Jun 30 19:32:30 raspberrypi ntpd[2177]: peers refreshed
Jun 30 19:32:30 raspberrypi ntpd[2177]: Listening on routing socket on fd #20 for interface updates
Jun 30 19:32:30 raspberrypi ntpd[2177]: restrict: error in address '::' on line 38. Ignoring...
Jun 30 19:32:30 raspberrypi ntpd[2177]: restrict: error in address '::1' on line 42. Ignoring...
^[[A
Jun 30 19:40:48 raspberrypi hostapd: wlan0: STA 90:cf:15:1b:cd:a1 IEEE 802.11: associated
Jun 30 19:40:48 raspberrypi hostapd: wlan0: STA 90:cf:15:1b:cd:a1 RADIUS: starting accounting session 53B1BB4D-00000000
Jun 30 19:40:48 raspberrypi hostapd: wlan0: STA 90:cf:15:1b:cd:a1 WPA: pairwise key handshake completed (RSN)
Jun 30 19:40:49 raspberrypi dhcpd: DHCPDISCOVER from 90:cf:15:1b:cd:a1 via wlan0
Jun 30 19:40:49 raspberrypi ifplugd(wlan0)[1716]: Link beat detected.
Jun 30 19:40:49 raspberrypi ifplugd(wlan0)[1716]: Executing '/etc/ifplugd/ifplugd.action wlan0 up'.
Jun 30 19:40:49 raspberrypi ifplugd(wlan0)[1716]: client: /sbin/ifup: interface wlan0 already configured
Jun 30 19:40:49 raspberrypi ifplugd(wlan0)[1716]: Program executed successfully.
Jun 30 19:40:50 raspberrypi dhcpd: DHCPOFFER on 192.168.42.10 to 90:cf:15:1b:cd:a1 (RM680) via wlan0
Jun 30 19:40:51 raspberrypi dhcpd: DHCPDISCOVER from 90:cf:15:1b:cd:a1 (RM680) via wlan0
Jun 30 19:40:51 raspberrypi dhcpd: DHCPOFFER on 192.168.42.10 to 90:cf:15:1b:cd:a1 (RM680) via wlan0
Jun 30 19:40:51 raspberrypi dhcpd: DHCPREQUEST for 192.168.42.10 (192.168.42.1) from 90:cf:15:1b:cd:a1 (RM680) via wlan0
Jun 30 19:40:51 raspberrypi dhcpd: DHCPACK on 192.168.42.10 to 90:cf:15:1b:cd:a1 (RM680) via wlan0


Which file do these lines belong?
metRo_
 
Posts: 4
Joined: Mon Apr 20, 2009 5:42 pm

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Tue Jul 01, 2014 5:19 pm

The system log records the name of every process that logs a message:

Code: Select all | TOGGLE FULL SIZE
Jun 30 19:32:30 raspberrypi ntpd[2174]: ntpd 4.2.6p5@1.2349-o Fri May 18 20:30:57
date   time     machine     name id     program-generated error message

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

Re: Raspberry Pi, wireless dongle, hostapd

by raspberrypi1080p on Wed Jul 16, 2014 7:29 am

Updating the ftp link, ftp://WebUser:Lc9FuH5r@95.130.192.218/c ... 130911.zip

Basically, if you go to the realtek site and download it, the file is sent from the above link (the download page redirects here via javascript). The original ftp link given by skoot3r doesn't work because there is an username and password missing, which here is 'WebUser:Lc9FuH5r'. I just used this link instead of skoot3r's and the rest of his code.

But skoot3r saved the day.
raspberrypi1080p
 
Posts: 1
Joined: Wed Jul 16, 2014 7:26 am

Re: Raspberry Pi, wireless dongle, hostapd

by LEDLED on Fri Aug 08, 2014 1:54 pm

Here is another way to get it in case the above options do not work. Follow Bcoggs instructions to manually download the RTL8188CUS drivers from RealTek. Then re-upload the ZIP to a platform such as SendSpace. Carefully find the exact link that will re-download the ZIP (there are many "deceiving" links). Update your sudo wget to have that http:// address from SendSpace or whatever.

LEDLED
 
Posts: 19
Joined: Fri Aug 08, 2014 12:11 pm

Re: Raspberry Pi, wireless dongle, hostapd

by LEDLED on Fri Aug 08, 2014 3:44 pm

I am having difficulty getting past the First Test portion of the tutorial here: https://learn.adafruit.com/setting-up-a ... t?view=all I ran sk00t3r's code from Page 1, then returned to the tutorial and ran
sudo /usr/sbin/hostapd /etc/hostapd/hostapd.conf

I am getting a lot of output whenever I try to connect. The output is below. Unfortunately I can't make heads or tails of it. Thanks for any tips.


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=0x0xdde638
+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:8e:88:81 and ssid 'Pi_AP'
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_key_ops
rtl871x_set_beacon_ops
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, Pi_AP,5
rtl871x_set_acl
+rtl871x_get_sta_wpaie, b0:65:bd:89:03:c1 is sta's address
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA b0:65:bd:89:03:c1 WPA: received EAPOL-Key 4/4 Pairwise with unexpecte d replay counter
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_sta_deauth_ops, b0:65:bd:89:03:c1 is deauth, reason=2
rtl871x_set_key_ops
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: deauthenticated due to local deauth re quest
+rtl871x_sta_remove_ops, b0:65:bd:89:03:c1 is sta address removed
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: disassociated
+rtl871x_get_sta_wpaie, b0:65:bd:89:03:c1 is sta's address
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA b0:65:bd:89:03:c1 WPA: received EAPOL-Key 4/4 Pairwise with unexpecte d replay counter
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_sta_deauth_ops, b0:65:bd:89:03:c1 is deauth, reason=2
rtl871x_set_key_ops
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: deauthenticated due to local deauth re quest
+rtl871x_sta_remove_ops, b0:65:bd:89:03:c1 is sta address removed
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: disassociated
+rtl871x_get_sta_wpaie, b0:65:bd:89:03:c1 is sta's address
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
+rtl871x_send_eapol
wlan0: STA b0:65:bd:89:03:c1 WPA: received EAPOL-Key 4/4 Pairwise with unexpecte d replay counter
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_send_eapol
+rtl871x_sta_deauth_ops, b0:65:bd:89:03:c1 is deauth, reason=2
rtl871x_set_key_ops
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: deauthenticated due to local deauth re quest
+rtl871x_sta_remove_ops, b0:65:bd:89:03:c1 is sta address removed
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: disassociated
+rtl871x_get_sta_wpaie, b0:65:bd:89:03:c1 is sta's address
wlan0: STA b0:65:bd:89:03:c1 IEEE 802.11: associated
rtl871x_set_key_ops
rtl871x_set_key_ops
...

LEDLED
 
Posts: 19
Joined: Fri Aug 08, 2014 12:11 pm

Re: Raspberry Pi, wireless dongle, hostapd

by m4rtin on Sun Aug 10, 2014 11:06 am

Thanks a lot, sk00t3r.
I am using a Raspberry Pi mod. B with Raspbian and an Edimax EDIMAX EW-7811UN wireless USB adapter (cf. compatibility list).

Initially, the installation of hostapd resulted in exactly the same warning ("INVALID ARGUMENT") as shown in the Raspberry AccessPoint Tutorial.

Your solution is working perfectly fine for me.

Now on to installing TOR (onionPi) :-)

Regards,
m4rtin

m4rtin
 
Posts: 1
Joined: Sun Aug 10, 2014 10:49 am

Re: Raspberry Pi, wireless dongle, hostapd

by Bumbleb33z on Fri Aug 29, 2014 7:30 pm

Hey Guys,

I'm really sorry to re-open this topic, but it's been the most helpful one! :-)

I'm new to the Raspberry Pi (only had it a week!) and need a little help.

Also, with the download at: http://www.realtek.com.tw/downloads/dow ... Down=false - (sk00t3r 's original link), what will the new driver be called on the RPi?

I've done all of the Adafruit instructions and followed sk00t3r 's code, and yet I still have a problem. :-(
I managed to download drivers for the USB WiFi and re-upload them (my link is https://www.sendspace.com/file/dr6xmv), installed them on my Pi, and the error is as follows:

[THE DRIVER SET HERE IS: rtl871xdrv]

hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
drv->ifindex=3
l2_sock_recv==l2_sock_xmit=0x0x1654638
ioctl[SIOCSIWMODE]: Invalid argument
Could not set interface to mode(3)!
Could not set interface to master mode!
rtl871xdrv driver initialization failed.


[THE DRIVER SET HERE IS: nl80211]

hostapd /etc/hostapd/hostapd.conf
Configuration file: /etc/hostapd/hostapd.conf
Line 2: invalid/unknown driver 'nl80211'
1 errors found in configuration file '/etc/hostapd/hostapd.conf'


I've re-installed the OS several times and used someone else's code, but I just can't seem to get it to work. HELP!!!

Really sorry for your trouble, any help is greatly appreciated,

Bumbleb33z.

:-)

Bumbleb33z
 
Posts: 6
Joined: Fri Aug 29, 2014 6:14 pm

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Mon Sep 01, 2014 1:41 am

Hmm.. are you using one of our wifi dongles?

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

Re: Raspberry Pi, wireless dongle, hostapd

by Bumbleb33z on Mon Sep 01, 2014 4:36 am

Hey!

No, I'm using the Nano WiFi Module by 'ThePiHut'.

When I type 'lsusb' into the RPi, the text 'R3570' comes up along with a bunch of other 'I-have-absolutely-no-idea-what-this-is' text.

I have narrowed it down a little..

When I type in "sudo apt-get install hostapd isc-dhcp-server" it installs, and on the last command, I get a nasty 'FAIL' word in the command line.

After that horrible word, 'FAIL', I continue as normal (doing all of the instructions without any more 'FAIL' messages) until I get to the "update hostapd" section on your instructions, skip it and download the drivers in the previous post (the link).

Am I doing the right thing here? Should I download something else?


Thanks,

Bumbleb33z

Bumbleb33z
 
Posts: 6
Joined: Fri Aug 29, 2014 6:14 pm

Re: Raspberry Pi, wireless dongle, hostapd

by adafruit_support_mike on Mon Sep 01, 2014 2:48 pm

Okay, that sounds like a driver issue.

The Linux kernel needs a chunk of code that knows how to talk to whatever wifi dongle you're using. Our tutorials are written on the assumption that the dongle will have an RTL8192CUS wifi chip, since that's what's in all the dongles we sell and that chipset has good support in the standard RasPi Linux kernel.

Use the command `dmesg | grep usb` to see what the kernel thinks about the dongle you're using.

`dmesg` prints all diagnostic messages generated by the kernel during startup. The '|' character is pronounced 'pipe', and sends the output from `dmesg` to the input of another command.. in this case `grep`. The command `grep` is a 'general regular expression parser', which means it looks for patterns in text. The command `grep usb` tells it to look for lines that contain the string 'usb'.

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

Re: Raspberry Pi, wireless dongle, hostapd

by Bumbleb33z on Fri Sep 05, 2014 6:59 am

AHA!!

I have it working! Thank you!!

Sorry I couldn't get back to you earlier!! :-)


Bumbleb33z

Bumbleb33z
 
Posts: 6
Joined: Fri Aug 29, 2014 6:14 pm

Please be positive and constructive with your questions and comments.