SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How do we slackers choose which wlan to access? From what I've heard we don't have any wlan manager. I always seem to get on to the wrong access point.
I've done "iwconfig eth0 essid NETGEAR" but I always end up on "default"
Yes I believe I did a dhcpcd -k and a regular dhcpcd after that... But It should work like that? Maybe I should try that again if it's as simple as that. But it would be nice to have a pair of wlan's to choose from so I don't have to use kismet every time...
Are both APs on the same channel ? If not, try passing "channel X" to iwconfig. The more arrguments you provide the less chance of them being autopicked for you.
Thanks! Didn't know that one. If I do this after I'm auto associated with "default", will I get off "default" and get on the new one or do I need to do something else like "/etc/rc.d/rc.pcmcia restart" or ifconfig down, up (as you see it's a laptop)?
... after I'm auto associated with "default", will I get off "default" and get on the new one or do I need to do something else like ...
You most definitely don't need to restart whole pcmcia service to "hop" APs however what needs to be done really depends on the type of your wifi card. Some cards will "hop" just by re-association with iwconfig. Some cards will need to have interface brought down and some will need the card to be ejected and reinserted. For both my current cards I usually do:
ifconfig wlan0 down
iwconfig wlan0 (my settings go here)
ifconfig wlan0 up
dhcpcd wlan0
As per storing your configs, there are few things you may want to keep in mind. Putting any type of configuration in static files may work for you when you connect only to 1 AP as they will be auto applied when you insert your card. I myself do not keep any wifi settings static. Inserting one of my card does nothing other than loading the correct kernel module. I then control the interface with a set of custom interactive shell scripts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.