I have a Edimax EW-7811UN wifi dongle, and I'm trying to get it to connect to my wifi when plugged into a raspberry pi zero.
First off, the pi zero has a single usb port so I can only have either my keyboard or the dongle connected, not both at the same time. I tried plugging the dongle into my keyboard's usb port, but then when I check dmesg I see the error:
No support over 100mA
So I'm stuck connecting one device at a time I guess.
My /etc/network/interfaces
contains:
auto lo
iface lo
auto wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
My /etc/wpa_supplicant/wpa_supplicant.conf
contains:
ctrl_interface=DIR=/var/run/wpa_supplicant
ctrl_interface_group=netdev
update_config=1
network={
ssid="MYSSID"
psk="MYPSK"
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
auth_alg=OPEN
}
Where MYSSID
and MYPSK
are set to my router's ssid and password.
If I then kick off watch ifconfig
, then disconnect my keyboard and connect the dongle, I see a wlan0 entry appear. However, it never gets an ip address, and the RX dropped
count slowly increases, but packets
, errors
, overruns
, and frame
stay at zero. Also, nothing changes for TX
.
Does anyone have any tips for getting this to connect? I've already invested about 8 hours of troubleshooting and trial/error and I'm not sure what to try next.
Other changes I made:
To the file
/etc/rc.local
modprobe 8192cu ifdown wlan0 ifup wlan0
Without the
modprobe 8192cu
line, the 8192cu driver doesn't load.I also disabled power saving as described in this question.
-D nl80211
– speakr Aug 29 '16 at 15:52