11

I tried to scan for available wifi networks in my area, but sudo iw wlan0 scan gives me command failed: No such device (-19). Since I have no detailed knowledge about the iw command, I also tried sudo iw phy wlan0 scan, which gave me command failed: No such file or directory (-2).
NOTE: The adapter works fine, I already established a connection to my router, and iwlist is able to list available wifi networks. Yet, for some reason, iw does not work.

(I know, I can achieve a similar output with iwlist wlan0 scanning, but at my point, I just want this to work somehow.)

I am using the mini-wifi-adapter from adafruit with a RTl8192/8188CUS chipset.

I came across this SE-post, which says that the important kernel module is included, but not compiled. As clearly stated by that post, I tried to compile Raspbian with rtlwifi-support and did everything as told. Still, several hours later it's still the same. iw still gives the the same error-message as before and I don't see anything about rtlwifi- or rtl8192cu-drivers in lsmod.

Did I do something wrong or is there another way to make iw work on Raspian? Thanks in advance.

Additional information:
lsusb gives

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS802.11n WLAN Adapter

uname -a gives

Linux hostname 4.1.7-v7+ #817 SMP PREEMPT Sat Sep 19 15:32:00 BST2015 armv7l GNU/Linux
Sirac
  • 231
  • 2
  • 6

1 Answers1

2

If you are sure your adapter works fine, try running the command

sudo ifconfig wlan0 up

When you do this, all the available wifi networks should show up when you click the wifi signal button at the top right of the screen. You should then be able to click any of them and type in your password.

Edit: Try running the command sudo iw dev wlan0 scan since you say your wlan0 is up

Kenneth Spear
  • 436
  • 2
  • 5
  • 12