I recently bought a RPi2 and am currently in the process of installing it, but I can't get my Wifi dongle (link in Dutch) working, even though it is supposed to be working "out of the box" and there should be "no need to install extra drivers"... uh-huh... I know there are quite a lot of "I have a WiFi problem"-posts but even after a lot of searching I still can't figure it out so I hope somebody can help me or point me in the right direction.
As to my setup, I did a fresh install of Raspbian and am currently running it with an ethernet cable which enables it to share an internet connection through my laptop (and connect from it to the Pi with SSH), I also have a mouse and monitor (HDMI) connected to try running it without the ethernet/laptop (installed virtual keyboard). The Pi is powered by a 5.2V/2A power adapter.
After the Wifi adapter wasn't picked up on the initial/clean install I updated the Pi with apt-get update/upgrade and rpi-update. As far as I can tell the Pi sees my adapter during bootup, but rejects it at the same time? Drivers seem to be present (8192cu I believe) and up-to-date as well (even tried updating them but got the message "firmware-realtek is already the newest version"). Below are some stats:
Linux raspberrypi 4.1.13-v7+ #826 SMP PREEMPT Fri Nov 13 20:19:03 GMT 2015 armv7l GNU/Linux
lsusb (notice the adapter not showing up here)
Bus 001 Device 004: ID 045e:0040 Microsoft Corp. Wheel Mouse Optical Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsmod (driver seems to be present?)
Module Size Used by 8192cu 528485 0 cfg80211 419759 0 rfkill 16659 1 cfg80211 evdev 10226 2 bcm2835_gpiomem 3023 0 uio_pdrv_genirq 2966 0 uio 8228 1 uio_pdrv_genirq i2c_dev 6040 0 snd_bcm2835 19739 3 snd_pcm 74833 1 snd_bcm2835 snd_timer 18164 1 snd_pcm snd 52116 9 snd_bcm2835,snd_timer,snd_pcm fuse 81721 3 ipv6 341380 36
After running sudo dmesg -C, replugging the adapter and typing dmesg I got:
[ 3809.142112] usb 1-1.5: new high-speed USB device number 18 using dwc_otg [ 3809.243844] usb 1-1.5: New USB device found, idVendor=0bda, idProduct=8176 [ 3809.243872] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 3809.243890] usb 1-1.5: Product: 802.11n WLAN Adapter [ 3809.243907] usb 1-1.5: Manufacturer: Realtek [ 3809.243923] usb 1-1.5: SerialNumber: 00e04c000001 [ 3810.022433] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 3810.190677] usb 1-1.5: USB disconnect, device number 18 [ 3810.191263] rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 482
I guess it has something to do with the "link" (whatever that may be) not being ready, but I don't know what it means or how to solve it. Furthermore, ifconfig only shows eth0 and lo (so NO wlan0), and sudo iwlist wlan0 scan results in "wlan0 Interface doesn't support scanning.". So far, I haven't touched the "/etc/network/interfaces". I also tried putting the adapter in all the different USB-slots and even in an externally powered USB hub but all to no avail. I have no idea what else I can do/try and if it wasn't for the mention in the dmesg results I would conclude the adapter is broken (but it is newly bought and does show up so I guess it's a software thingy somewhere).
Any help appreciated! :)
PS. If any extra information is needed let me know and I will post it!
Edit 25/11 - Added a bit of extra info about the way my Pi is connected, and the drivers used for tying it on my laptop (MacBook Pro running OS X El Capitan): first tried the drivers from the Realtek site since the provided minicd with drivers doesn't go into my Mac. When those didn't seem to work I tried these but those resulted in an error during install (next to a warning the thing could break my system). Neither enabled me to find an USB WiFi option in the network tab of the system preferences panel. I'm wondering though, if the adapter would be defect why does it show up in the Pi's dmesg-log and my Mac's System Report?