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.
I'm trying to connect to a router using WPA encryption. I've tried the NetworkManager applets for KDE4, Trinity, and nm-applet. When I view /var/log/messages I can see attempts to connect but something always fails in the authentication effort.
I have the gnome-keyring, polkit, consolekit processes running. Not sure whether KDE4 or Trinity needs gnome-keyring or polkit. Regardless of whether I use KDE4, Trinity, or nm-applet to configure the router connection, I end up with the same NetworkManager system-connections configuration file. The configuration file does contain the psk PIN.
When we disable encryption at the router the laptop connects immediately using wireless.
No problems connecting with wired to the same router.
As I am a newbie with wireless, I suspect I don't have something configured correctly or am missing an autostarted process or service that inhibits the authentication of the router's psk PIN. Likely I have disabled something that authentication needs as until recently, for years I never needed or cared about wireless.
I'm using NetworkManager and that I where I want this thread to remain focused.
I have no problems connecting with wireless with no encryption. I've been running that way on my own home router since I adopted this laptop a couple of months ago. Now I'm at another person's house and we're trying to connect the laptop to his router that uses encryption. His Windows Vista laptop connects without issue.
Despite my newbie status with laptops and wireless, I doubt the problem is the driver. The logs imply an authentication problem --- kind of like NM is sending the PIN but in an incorrect manner.
With the logging adjustments, and using nm-applet, I see the following in syslog:
Code:
NetworkManager[24208]: <warn> Activation (wlan0/wireless): association took too long.
NetworkManager[24208]: <warn> Activation (wlan0/wireless): asking for new secrets
NetworkManager[24208]: <warn> Couldn't disconnect supplicant interface: This interface is not connected.
NetworkManager[24208]: <warn> No agents were available for this request.
NetworkManager[24208]: <warn> Activation (wlan0) failed for access point (w-pc)
NetworkManager[24208]: <warn> Activation (wlan0) failed.
And in wpa_supplicant.log, way, way too much information to post, but I see entries about "4WAY_HANDSHAKE -> DISCONNECTED" and "WPA: 4-Way Handshake failed - pre-shared key may be incorrect."
Edit: The router had WPS enabled, but we tested disabling that option with the same failed results.
I'm going to assume it's not an incorrect PSK or badly specified key management parameter since those are probably the first things you double or triple checked.
So, how about sharing what you have in /etc/NetworkManager/system-connections. Probably a file called Wi-Fi* unless you renamed it.
When you click networkmanager icon in the taskbar does his network show up? if it does click it and it will ask for
authentication key does it accept it when you hit connect?
I got confused between WPA and WPS. The (Motorola) router's "Wireless Primary Network" configuration page has settings for both WPA and WPS. As a noob, I grabbed the WPS PIN because that is what succeeded for the Windows laptop.
My hunch was correct that there was an authentication problem. I was trying to send the WPS PIN in lieu of the WPA preshared key.
After we disabled WPS and the connection still failed --- because I was still using the WPS PIN --- basically we stared at the router configuration page for about four long minutes before the proverbial light bulb lit.
WPS. WPA. One letter. Same configuration page. PINs. Prehared keys. Easy for a wireless noob not to notice the difference.
Ultimate test of rebooting and connecting --- the laptop connected immediately. Tested with Trinity's TDENetworkManager and nm-applet.
I still don't understand the tip of the iceberg of wireless. I like learning but my jaw really hurts.
Glad it's working in the end - and thanks for sharing the solution. There have been less wifi related issues in the last few years - compared to earlier in the history of wifi - at least in my experience. However, as you've discovered - sometimes router configuration pages are not exactly straightforward to navigate and understand - and that doesn't help either.
It didn't register for me you had said PIN rather than PSK. By the way, your friend might want to disable WPS if possible on his AP (and others reading this thread).
A flaw in most WPS implementations effectively reduces the brute-force search space from 10,000,000 to 11,000 possibilities. Readily available tools can exploit this weakness to break into WPA/WPA2 networks in just a few hours.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.