Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wireless AP selector?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
m00dawg
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jan 2003
Posts: 145
Location: Texas

PostPosted: Wed Aug 18, 2004 3:11 am    Post subject: Wireless AP selector? Reply with quote

Every few months I try to look for one of these and never quite figure it out :) I know there is another post about this, but I can't think of what to search for :) My problem is I my laptop to be able to figure out which wireless profile to use based upon the ESSID. So when I'm at UT, and I pop in my wireless card and it finds 'utexas', it knows not to do anything else. But when I go home I want to use my encyrpted WAP key for my own ESSID (once more, there a multiple ESSID's around my apartment, so it needs to compare which one I want).

Basically I want what Windows has. Ther I said it. :)
_________________
www.moocowproductions.org
Back to top
View user's profile Send private message
kbielefe
n00b
n00b


Joined: 08 Aug 2004
Posts: 35
Location: Gilbert, AZ

PostPosted: Wed Aug 18, 2004 4:09 am    Post subject: Reply with quote

I don't know if different profiles are officially supported in any software. That would be a nice feature. It should be pretty easy to fix with a small edit to an init script, however. My laptop hard drive crashed, so I have been using Knoppix on it and can't test this out, but probably somewhere in /etc/init.d there is a script that calls iwconfig with some parameters. To make the parameters dependent on which access points are nearby, replace that line of code with something like this:
Code:
if [[ `iwlist scan 2>&1 | grep 'ESSID_univ'` =~ "ESSID_univ" ]]
then
   iwconfig eth0 essid ESSID_univ channel ...
else
   iwconfig eth0 essid ESSID_home channel ...
fi


Make sure and notice the difference between the backticks (left of the 1 key) and apostrophes.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Wed Aug 18, 2004 8:42 am    Post subject: Re: Wireless AP selector? Reply with quote

m00dawg wrote:

Basically I want what Windows has. Ther I said it. :)


My ebuild doesn't give you that - it gives you much more!

Want to change network settings (dhcp, static, etc) per ESSID? This can do it! (Windows afaik cannot)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum