Skip to content

Instantly share code, notes, and snippets.

@P233
Created July 28, 2014 23:19
Show Gist options
  • Save P233/25aaf6b16b8a85cef7e0 to your computer and use it in GitHub Desktop.
Save P233/25aaf6b16b8a85cef7e0 to your computer and use it in GitHub Desktop.
Can't setup wifi dongle for raspberry pi
[root@alarmpi netctl]# lsusb
Bus 001 Device 004: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
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
[root@alarmpi netctl]# lsmod
Module Size Used by
cfg80211 440121 0
snd_soc_wm8804 7908 0
snd_soc_pcm512x 8984 0
8192cu 546045 0
snd_soc_bcm2708_i2s 5657 0
regmap_mmio 2838 1 snd_soc_bcm2708_i2s
snd_soc_core 155972 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_bcm2708_i2s
leds_gpio 2142 0
led_class 4162 1 leds_gpio
snd_compress 8247 1 snd_soc_core
spi_bcm2708 4844 0
snd_pcm_dmaengine 5533 1 snd_soc_core
regmap_spi 1941 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
bcm2708_dmaengine 5224 0
virt_dma 2309 1 bcm2708_dmaengine
regmap_i2c 1685 3 snd_soc_pcm512x,snd_soc_wm8804,snd_soc_core
i2c_bcm2708 4895 0
snd_bcm2835 18281 0
snd_pcm 81802 3 snd_bcm2835,snd_soc_core,snd_pcm_dmaengine
snd_page_alloc 5192 1 snd_pcm
snd_timer 20370 1 snd_pcm
snd 61672 5 snd_bcm2835,snd_soc_core,snd_timer,snd_pcm,snd_compress
bcm2708_rng 1044 0
rng_core 4159 1 bcm2708_rng
ipv6 319667 0
[root@alarmpi netctl]#
[root@alarmpi netctl]# iwconfig wlan0
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.462 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[root@alarmpi netctl]#
[root@alarmpi netctl]# netctl start home
Job for [email protected] failed. See 'systemctl status [email protected]' and 'journalctl -xn' for details.
[root@alarmpi netctl]# systemctl status [email protected]
* [email protected] - Networking for netctl profile home
Loaded: loaded (/usr/lib/systemd/system/[email protected]; static)
Active: failed (Result: exit-code) since Mon 2014-07-28 16:53:49 MDT; 3s ago
Docs: man:netctl.profile(5)
Process: 805 ExecStart=/usr/lib/network/network start %I (code=exited, status=1/FAILURE)
Main PID: 805 (code=exited, status=1/FAILURE)
Jul 28 16:53:25 alarmpi network[805]: Starting network profile 'home'...
Jul 28 16:53:26 alarmpi network[805]: ioctl[SIOCSIWAP]: Operation not permitted
Jul 28 16:53:26 alarmpi network[805]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jul 28 16:53:26 alarmpi network[805]: ioctl[SIOCSIWENCODEEXT]: Invalid argument
Jul 28 16:53:48 alarmpi network[805]: WPA association/authentication failed for interface 'wlan0'
Jul 28 16:53:49 alarmpi network[805]: Failed to bring the network up for profile 'home'
Jul 28 16:53:49 alarmpi systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jul 28 16:53:49 alarmpi systemd[1]: Failed to start Networking for netctl profile home.
Jul 28 16:53:49 alarmpi systemd[1]: Unit [email protected] entered failed state.
[root@alarmpi netctl]# journalctl -xn
-- Logs begin at Wed 1969-12-31 17:00:05 MST, end at Mon 2014-07-28 16:53:49 MDT. --
Jul 28 16:53:37 alarmpi kernel: rtw_tkip_decrypt(wlan0) no_gkey_bc_cnt:2, no_gkey_mc_cnt:0
Jul 28 16:53:37 alarmpi kernel: rtw_wx_set_mlme
Jul 28 16:53:37 alarmpi kernel: rtw_wx_set_mlme, cmd=0, reason=3
Jul 28 16:53:48 alarmpi network[805]: WPA association/authentication failed for interface 'wlan0'
Jul 28 16:53:48 alarmpi kernel: rtw_wx_set_mlme
Jul 28 16:53:48 alarmpi kernel: rtw_wx_set_mlme, cmd=0, reason=3
Jul 28 16:53:49 alarmpi network[805]: Failed to bring the network up for profile 'home'
Jul 28 16:53:49 alarmpi systemd[1]: [email protected]: main process exited, code=exited, status=1/FAILURE
Jul 28 16:53:49 alarmpi systemd[1]: Failed to start Networking for netctl profile home.
-- Subject: Unit [email protected] has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit [email protected] has failed.
--
-- The result is failed.
Jul 28 16:53:49 alarmpi systemd[1]: Unit [email protected] entered failed state.
[root@alarmpi netctl]#
[root@alarmpi wpa_supplicant]# wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
nl80211: Driver does not support authentication/association or connect commands
wlan0: Failed to initialize driver interface
[root@alarmpi wpa_supplicant]#
@puxxustc
Copy link

pacman -S dkms-8192cu

@paravz
Copy link

paravz commented Apr 14, 2015

Might not be related to your case, but I had issues with wifi on kernel 3.18.10 with the same messages:
kernel: rtw_wx_set_mlme
kernel: rtw_wx_set_mlme, cmd=0, reason=3

My fix was to downgrade kernel to 3.12.36 (latest in 3.12.x) using rpi-update:
UPDATE_SELF=0 SKIP_BACKUP=1 rpi-update f74b92120e0d469fc5c2dc85b2b5718d877e1cbb

@jmcbee
Copy link

jmcbee commented May 25, 2015

yaourt 8192cu-dkms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment