Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nl80211 not found [Raspberry Pi] #42

Closed
jimaldon opened this issue Apr 18, 2016 · 14 comments
Closed

nl80211 not found [Raspberry Pi] #42

jimaldon opened this issue Apr 18, 2016 · 14 comments

Comments

@jimaldon
Copy link

jimaldon commented Apr 18, 2016

I get the following error while trying to learn on my Raspberry Pi 2B.

`00:43:40.694 main - NOTI 006 Running 3 times (you can run more using '-c SOMENUM'). Please wait...

00:43:40.694 main - INFO 007 Scanning Wifi

00:43:40.694 scanWifi - INFO 008 Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'

00:43:40.702 main - WARN 009 Scan failed, will continue after a rest

00:43:43.703 main - INFO 00a Scanning Wifi

00:43:43.704 scanWifi - INFO 00b Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'

00:43:43.715 main - WARN 00c Scan failed, will continue after a rest

00:43:46.717 main - INFO 00d Scanning Wifi

00:43:46.718 scanWifi - INFO 00e Gathering fingerprint with '/sbin/iw dev wlan0 scan -u'

00:43:46.728 main - WARN 00f Scan failed, will continue after a rest`

I tried sudo /sbin/iw dev wlan0 scan -u and it says nl80211 not found.

@schollz
Copy link
Owner

schollz commented Apr 18, 2016

You might try sudo apt-get install bridge-utils and then run /sbin/iw dev wlan0 scan -u again.

What kind of Wifi adapter are you using?

@jimaldon
Copy link
Author

I just installed that and am still getting the same error. I'm using one of those TP-Link USB network adapters on my PI. The driver is rtl8192cu.

@schollz schollz added the bug label Apr 18, 2016
@schollz
Copy link
Owner

schollz commented Apr 18, 2016

What OS? Raspbian?

@jimaldon
Copy link
Author

Yes.

@schollz
Copy link
Owner

schollz commented Apr 18, 2016

It may be that your specific TP-link adapter doesn't have the right firmware to support iw list.

Here's something I found that has update to firmware: https://www.linuxquestions.org/questions/linux-hardware-18/wifi-help-debian-7-and-usb-tp-link-tl-wn725n-4175460688/

This one seems to suggest you can edit your hostap file to get it working: http://jacobsalmela.com/raspberry-pi-and-routing-turning-a-pi-into-a-router/

To be clear, I've only tested this on Raspberry Pi B+/2 w/ the Edimax dongle and with Raspberry Pi 3 built-in on Raspbian. Both worked for me right out of the box. So I'm not sure I can help you with yours. Please let me know if you find a solution!

@schollz schollz changed the title Scan failed, will continue after a rest nl80211 not found [Raspberry Pi] Apr 18, 2016
@jimaldon
Copy link
Author

jimaldon commented Apr 21, 2016

The links you provide are for installing the driver on Pi. However, my Pi is connected to the internet via the same adapter and ifconfig does show wlan0.

Only similarity is that iw wlan0 info returns nl80211 not found. So I'm guessing, Pi has a driver since it's using it to connect to the network , but iw isn't recognising it.

TL-WN823N also worked on my Pi 2B out of the box.

My lsusb | grep WAN output:

Bus 001 Device 005: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter

UPDATE:

Turns out, others have faced this bug too.

@schollz
Copy link
Owner

schollz commented Apr 21, 2016

Could you see if this command works: sudo iwlist wlan0 scan ?

@jimaldon
Copy link
Author

jimaldon commented Apr 21, 2016

Yes, it works. Gives me data about all networks in the vicinity.

@schollz
Copy link
Owner

schollz commented Apr 21, 2016

Fantastic! I'll work on an update to the fingerprint client that supports iwlist.

@jimaldon
Copy link
Author

Thank you. The earlier link says iwconfig can be used as an alternative to iw too.

@schollz
Copy link
Owner

schollz commented Apr 21, 2016

Here's the new issue: #62

I'll close this when that gets built.

@schollz
Copy link
Owner

schollz commented Apr 21, 2016

Okay its fixed now - it will work with iwlist and iw. You can switch using a CLI flag --iwlist, and the default is iw still. You can build from source or download a pre-release here: https://github.com/schollz/find/releases/tag/v0.4client.

@schollz schollz closed this as completed Apr 21, 2016
@schollz schollz reopened this Apr 21, 2016
@schollz
Copy link
Owner

schollz commented Apr 21, 2016

Actually, please confirm this works for you before I close! thanks :)

@jimaldon
Copy link
Author

Thanks for that quick fix. It works perfectly now with the --iwlist flag.

@schollz schollz closed this as completed Apr 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants