Beaglebone Black connects to the wrong wireless SSID!

Hi,

I configured the File /etc/network/interfaces like this.

auto wlan0
iface wlan0 inet static
wireless-mode managed
wireless-essid EDV3-E90
address 10.2.90.101
netmask 255.255.0.0
gateway 10.2.255.254
dns-nameservers 10.10.10.10
wpa-driver wext
wpa-conf /etc/wpa_supplicant.conf
pre-up wpa_supplicant -B -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant

But the BBB always connects to the wrong network.
Does anybody know a solution for this problem?

Regards,

Bernhard Messerklinger

When it comes to wifi and ARM devices and debian, there is one interfaces file that I use. So far it has worked every single time.

auto lo

iface lo inet loopback
iface eth0 inet static
address 10.232.1.81
netmask 255.255.255.0
gateway 10.232.1.1

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 10.232.1.99
netmask 255.255.255.0
gateway 10.232.1.1
wpa-passphrase password
wpa-ssid myssid