problems configuring wpa2 connection on slackware 12.1
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.
problems configuring wpa2 connection on slackware 12.1
Hi,
I'm running Slackware 12.1 on an HP Pavilion S3400T, with an onboard wifi adapter. The router is a Linksys WRT54GL (default firmware). Having entered the proper information in /etc/rc.d/rc.inet1.conf and /etc/wpa_supplicant.conf (using alien's guide, for most parts), my machine does not start up with a working connection.
root@lest:/home/met# /etc/rc.d/rc.inet1 wlan0_restart
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device wlan0 ; Operation not supported.
Polling for DHCP server on interface wlan0:
dhcpcd: MAC address = 00:16:44:xx:xx:xx
root@lest:/home/met#
and I get no connection. However . . . when I do #wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf, I get this:
Quote:
# wpa_supplicant -iwlan0 -c/etc/wpa_supplicant.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 00:22:6b:5f:2a:4f (SSID='linksys' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Associated with 00:22:6b:5f:2a:4f
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:22:6b:5f:2a:4f
WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
WPA: Could not verify EAPOL-Key MIC - dropping packet
Authentication with 00:22:6b:5f:2a:4f timed out.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
ioctl[SIOCSIWENCODEEXT]: No such file or directory
Trying to associate with 00:22:6b:5f:2a:4f (SSID='linksys' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Associated with 00:22:6b:5f:2a:4f
WPA: Invalid EAPOL-Key MIC when using TPTK - ignoring TPTK
WPA: Could not verify EAPOL-Key MIC - dropping packet
Authentication with 00:22:6b:5f:2a:4f timed out.
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
ioctl[SIOCSIWENCODEEXT]: No such file or directory
Trying to associate with 00:22:6b:5f:2a:4f (SSID='linksys' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Associated with 00:22:6b:5f:2a:4f
WPA: 4-Way Handshake failed - pre-shared key may be incorrect
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Associated with 00:22:6b:5f:2a:4f
WPA: Key negotiation completed with 00:22:6b:5f:2a:4f [PTK=CCMP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:22:6b:5f:2a:4f completed (auth) [id=0 id_str=]
CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys
Trying to associate with 00:22:6b:5f:2a:4f (SSID='linksys' freq=2437 MHz)
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - Associated with 00:22:6b:5f:2a:4f
and finally, after executing (and ONLY after)
Quote:
#dhdpcd wlan0
, I get the connection up and running, but here's the weird thing: for the first 40 seconds or so, an internet speed test (http://speedtest.wi.rr.com/) measures my speed to be about 2 mega bits, .. and after those 40 seconds, it drops to about 0.6 mega bits. Technically, I should be getting at least 6 mega bits (which it was, when this machine had Vista on it, so I'm pretty sure the adapter is capable of delivering the speed).
So to conclude, here are the problems
1) SOLVED:[rc.inet1 is unable to connect at boot-up].. not quite sure what it was I did to have this work.. but it does work at boot-up now.
2) and when I do get it running manually, I'm met with this very peculiar behavior (connection speed in the first minute is ~2.5 mega bits/down, then goes to .5 mega bits or so). Also, I noticed, that Kwifimanager reports the connection speed to be 1 MBit/sec in the first 40 seconds that the internet speed is ~3 mega bits/down.. but precisely when Kwifimanager starts reporting the connection speed to be a full 54 MBit/s, the internet speed goes down.
I'm pretty much clueless at what I can do here, so I'll really really appreciate any words.
I notice that you're never setting the wpa_supplicant driver, either in rc.inet1.conf or when you start wpa_supplicant via command line. That might be part of the problem. For rc.inet1.conf enter wext as the wpa_supplicant driver or from the command line try:
I notice that you're never setting the wpa_supplicant driver, either in rc.inet1.conf or when you start wpa_supplicant via command line. That might be part of the problem. For rc.inet1.conf enter wext as the wpa_supplicant driver or from the command line try:
I guess that makes sense for rc.inet1.conf (I never configure my cards this way, so I hadn't seen alien's guide), but you definitely need to specify wext if you're starting wpa_supplicant from the command line.
Anyway, one thing that might help pinpoint the problem is to temporarily turn off wpa encyrption and see if you have the same speed problems as with wpa encryption. You also might try removing the commented psk line from your wpa_supplicant stanza. I know comments are allowed outside of the stanzas, but I'm not sure they are allowed inside. Finally, you might give wicd a go. There is a slackbuild for it at Slackbuilds.org and in my experience it works MUCH better than either Slackware's approach or wpa_supplicant alone.
I guess that makes sense for rc.inet1.conf (I never configure my cards this way, so I hadn't seen alien's guide), but you definitely need to specify wext if you're starting wpa_supplicant from the command line.
Anyway, one thing that might help pinpoint the problem is to temporarily turn off wpa encyrption and see if you have the same speed problems as with wpa encryption. You also might try removing the commented psk line from your wpa_supplicant stanza. I know comments are allowed outside of the stanzas, but I'm not sure they are allowed inside. Finally, you might give wicd a go. There is a slackbuild for it at Slackbuilds.org and in my experience it works MUCH better than either Slackware's approach or wpa_supplicant alone.
Hangdog42,
Thank you very very much for taking the time to reply once more.
I've had this "problem" for a long while.. in fact, as so far back as 2 months (i.e., the time since first trying a nix OS), and it's unbelievable that neither I, or anyone else I had asked for help could offer the intuitive advice for troubleshooting this problem: .. temporarily disabling WPA2 enc. -- I did, and I seem to be getting a very sturdy and stable 7 or 8 mega bits down. Thank you for this.
So, I've isolated WPA2 as the offending culprit. I guess this leaves me with two choices to go with:
a) use WEP or WPA, or
b) troubleshoot WPA2
I'll try going with option b after coming home from school tomorrow -- hopefully running wpa_supplicant in debugging mode will further point to specific areas of interest. And if mangling with those results doesn't lead to a resolution, I'll either be back here for more help, or just start using some other enc. scheme.
Thanks again,
wheelie
edit: I've heard only good things about wicd (unless of course, if like me you idle in #slackware, .. where there are the vi-vs.-emacs kinds of wars (usually between Rob (workman) and Eric (alien) every other day or so)) -- I'll give that a try. As for putting the commented line in the stanza or not, I don't believe it makes a difference, I only added it this week (after copying alien's suggested configs. verbatim and editing them), I noticed no difference in behavior.
It does look like wpa_supplicant is the problem here, but if you're up for a touch more testing, seeing how WEP and WPA work might be helpful. Although wpa_supplicant can handle WEP, you don't need to use it for WEP, so if that still works at full speed, then wpa_supplicant is definitely the culprit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.