| Linux - Wireless Networking This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
12-01-2008, 12:37 AM
|
#1
|
|
Member
Registered: Aug 2008
Posts: 47
Rep:
|
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.
Here's my rc.inet1.conf:
Quote:
IFNAME[1]="wlan0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
WLAN_WPA[1]="wpa_supplicant"
WLAN_WPADRIVER[1]=""
|
and here's my wpa_supplicant.conf:
Quote:
# WPA2-PSK
network={
scan_ssid=0
proto=WPA2
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
priority=1
ssid="linksys"
#psk="xxx"
psk=xxxxxxxxxxxxxxxxxxxxxxxxx...
}
|
/etc/rc.d/rc.inet1 wlan0_restart gives me this:
Quote:
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) , 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.
Thanks,
-wheelie
Last edited by wheeliee; 12-01-2008 at 01:21 PM.
|
|
|
|
12-01-2008, 07:36 AM
|
#2
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
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:
wpa_supplicant.conf -Bw -Dwext -c/etc/wpa_supplicant.conf -iwlan0
|
|
|
|
12-01-2008, 12:42 PM
|
#3
|
|
Member
Registered: Aug 2008
Posts: 47
Original Poster
Rep:
|
Quote:
Originally Posted by Hangdog42
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:
wpa_supplicant.conf -Bw -Dwext -c/etc/wpa_supplicant.conf -iwlan0
|
Hi Hangdog42,
Thank you for replying.
In alien's guide, http://alien.slackbook.org/dokuwiki/...wpa_encryption -- it said
Quote:
Slackware will tell wpa_supplicant to use the ”wext” protocol if you do not specify a driver yourself. So, basically the line
WLAN_WPADRIVER[1]="wext"
can safely be omitted.
|
But I did add it anyway, and it makes no identifiable difference.
Thanks,
wheelie
|
|
|
|
12-01-2008, 03:36 PM
|
#4
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
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.
|
|
|
|
12-02-2008, 12:06 AM
|
#5
|
|
Member
Registered: Aug 2008
Posts: 47
Original Poster
Rep:
|
Quote:
Originally Posted by Hangdog42
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.
Last edited by wheeliee; 12-02-2008 at 12:13 AM.
|
|
|
|
12-02-2008, 11:54 PM
|
#6
|
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,756
|
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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:18 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|