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
iwlist
works butiw
does not? It's not clear here whether you think you are having a problem with the adapter, or just that particular command. – goldilocks Dec 17 '15 at 18:34iw
that does not work, the adapter is completely fine. – Sirac Dec 17 '15 at 18:39iw dev wlan0 scan
? – goldilocks Dec 17 '15 at 18:44command failed: No such device (-19)
. – Sirac Dec 17 '15 at 18:48iwlist
. Raspbian still has some severe bugs, I also cannot mount my USB-stick on boot :(.Thank you for the time you took to help me and giving me the pragmatic idea of using another OS (I never could have come up with this).
– Sirac Dec 17 '15 at 21:55