You are not logged in.

#1 2009-12-06 19:18:40

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

Keep connecting to same ssid

hi everyone,

I keep connecting to same ssid all the time, and I can't figure it out where is the probelm.
I have a router that uses WPA-PSK and I use wpa_supplicant for it.

I connect to it no problem, everything works. problem starts when I try to connect to any other network around..
To my router I connect like this:

ifconfig wlan0 up
iwconfig wlan0 essid [ssid]
wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf 
dhcpcd wlan0

After that I do the following to try to connect to another unprotected router:

dhcpcd -k wlan0
ifconfig wlan0 down
ifconfig wlan0 up
iwconfig wlan0 essid [new_ssid_other_than_my_routers]
//i try iwconfig here and it lists this other network
dhcpcd wlan0

now when I try iwconfig,
I see I am connected to my router again and not to the new one...

what am I doing wrong? do I need to somehow shut down wpa_supplicant?


thank you


...I put on my robe and a wizard hat...

Offline

#2 2009-12-06 21:12:07

neodreams
Member
Registered: 2006-03-20
Posts: 87

Re: Keep connecting to same ssid

pootzko wrote:

what am I doing wrong? do I need to somehow shut down wpa_supplicant?

yes i think it's the reason why it's doing that, kill it.

Offline

#3 2009-12-06 22:24:24

pootzko
Member
From: Nerdvana
Registered: 2008-06-23
Posts: 109
Website

Re: Keep connecting to same ssid

yup, that did. but, is there a nicer way to turn it off than simply killing it? big_smile

Last edited by pootzko (2009-12-06 22:24:37)


...I put on my robe and a wizard hat...

Offline

Board footer

Powered by FluxBB