I'm having lots of trouble getting my Raspberry Pi wlan*'s to work. I already have several Raspberry Pi 2's that work perfectly with the exact arrangement I'm about to describe, but this one I just ordered in the mail, and is brand new, doesn't work:
This works:
- Turn on the Pi
- Plug in either wifi dongle
- Pi recognizes the dongle, and it shows up under 'iwconfig'
This does not work, and is a huge issue:
- Turn on the Pi
- Plug in either wifi dongle
- Turn off or reboot the Pi without unplugging the wifi dongle
- Power back on the Pi
- The Pi does not recognize any devices under 'iwconfig'
This is probably related to this problem - I have two Wifi dongles that I use, one needs to go into monitor mode while the other stays in Wifi mode. When I run
$ sudo airmon-ng start wlan0
to start monitor on mon0, my Wifi dongle is kicked off my network on wlan1. Normally, I can easily fix that by running these commands on any of my other Pi's with the same exact two dongles:
$ sudo ifdown wlan1
$ sudo ifup wlan1
But this doesn't work -- I get this error:
wpa_supplicant: wpa_action is managing ifup/ifdown state of wlan1
wpa_supplicant: execute `ifdown --force wlan1' to stop wpa_action
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
Failed to bring up wlan1.
Here's my /etc/network/interfaces
file:
auto lo
auto wlan0
auto wlan1
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
allow-hotplug wlan1
iface wlan1 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
Here's my /etc/wpa_supplicant/wpa_supplicant.conf
file:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="MY SSID"
psk="MY Password"
key_mgmt=WPA-PSK
}
How can I fix this?