Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in 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.
I have an Acer laptop running Kubuntu Feisty Fawn. At home I have it set up perfectly for internet access to my router, using wpa-psk and the ath0 interface. But now I'm staying at a motel with internet access and the laptop can't find an access point. Yet if I dual-boot to Windows, it works. I'd like to set it up for motel access without clobbering my home access.
dmesg shows the installed wireless inteface as wifi0. Key lines of dmesg are:
Code:
wifi0: Atheros 5212: mem=0xd02000000, irq=17
ADDRCONF(NETDEV_UP): ath0: link is not ready
I transcribed these manually since I'm composing this post on my girlfriend's laptop running Windows (at the same motel). Since my own laptop can't yet access the Net under Linux, whatever I do can't involve any downloads.
Here is /etc/network/interfaces:
Code:
auto lo
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
auto eth0
auto eth1
auto eth2
auto ath0
iface ath0 inet dhcp
pre-up wpa_supplicant -Bw Dwext -iath0 -c /etc/wpa_supplicant.conf
post-down killall -q wpa_supplicant
auto wifi0
And here are key lines from the output of ifup wfi0:
Code:
wifi0: unknown hardware address type 801
No DHCP offers received
Ignoring unknown interface wifi0=wifi0
The motel's router is unsecured, but of course I have no physical access to it.
If you're running wpa_supplicant, do you have an entry to allow any SSID? Something like:
Code:
network={
key_mgmt=NONE
priority=0
}
Personally, I've had the best luck in hotels just messing with the console however. Also, you frequently have to go through a browser page before you're fully able to access the web, and I've been in situations where no Linux browser will follow the redirect.
I don't think wpa_supplicant is relevant here. I need it at home (where it works as it should) but not in the motel since the motel has open access. I don't even have to go through the browser to get access here (under Windows). The only way wpa_supplicant might be relevant is that I might need to turn it off, but I tried that and it made no difference.
One other thing I observed that might be relevant. Under Windows, if I don't use the connection for a while, it's dropped. The lag time is long enough so that that's not a major problem, but perhaps it's symptomatic of some other peculiarity of the motel's system. Of course, the motel people are not the ones to ask about it.
Apparently the need to get Linux connections working at an arbitrary motel, where no one at the motel knows anything about it, is pretty common. I suppose that's a good thing!
Last edited by pwabrahams; 01-28-2008 at 10:01 PM.
Reason: wpa_supplicant might need to be turned off
OK, pop open a console and try configuring by hand. Run iwlist ath0 scan to find all of the SSIDs and then use iwconfig to set the SSID. You then should use your dhcp client to request an IP address.
Hopefully either you connect or something goes wrong with a usable error.
I've finally gotten the motel connection to work. I did ifdown ath0 to get rid of the nonexistent connection to my home router and then used the Wireless Assistant to get the connection to the router here. Apparently the Wireless Assistant doesn't look at what's in /etc/network/interfaces. The connection is again on ath0 as revealed by iwconfig. I still don't know how to get it to work from the command line, though.
To add to my confusion, apparently the motel's router is overloaded so I sometimes don't get a connection not because of my errors but because the router isn't responding. I guess that applies to dhcp requests as well as other communications.
I still would like a way to set things up so that whenever an open router is detected I have the choice of connecting to it without killing the settings for my home router.
By the way, what is the name of the dhcp client executable?
I still don't know how to get it to work from the command line, though.
For a motel, it is usually pretty simple if you know the SSID
iwconfig ath0 essid MotelSSID
Quote:
By the way, what is the name of the dhcp client executable?
There are actually several DHCP clients, and to be honest, I'm not sure what Suse uses. Common ones are:
dhcpcd (note that the c between the p and d is NOT a typo)
dhclient (usually more trouble than it is worth)
ifup (a frequent choice of distros)
Quote:
To add to my confusion, apparently the motel's router is overloaded so I sometimes don't get a connection not because of my errors but because the router isn't responding. I guess that applies to dhcp requests as well as other communications.
Yeah, there isn't much you can do about that except complain, and that is probably useless.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.