LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-26-2009, 07:25 PM   #1
Cata1yst
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Rep: Reputation: 16
Wpa_supplicant working kinda sorta?


Ive been sticking to slackware so far and refuse to give up. Ndiswrapper results in no wlan0, so i scratched that and used the straight up rt2860 chipset driver. which i got http://www.ralinktech.com/ralink/Home/Support/Linux.html Compiled it and when i run iwconfig i get a ra0 interface


Then i installed wpa_supplicant 0.5.10 with a slackbuild. Ran
Code:
bash-3.1# wpa_supplicant -Dwext -ira0 -c/etc/wpa_supplicant.conf
ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCGIWSCAN]: Resource temporarily unavailable
Trying to associate with 00:30:3f:51:f5:de (SSID='Da_1nt3rn3tz' freq=2417 MHz)
Associated with 00:30:3f:51:f5:de
WPA: Key negotiation completed with 00:30:3f:51:f5:de[PTK=TKIP GTK=TKIP]
CTRL-EVENT-CONNECTED - Connection to 00:30:3f:51:f5:de completed
The underlined and bolded is what bothers me.

iwconfig
Code:
(auth) [id=0 id_str=]
Ralink STA  ESSID:"Da_1nt3rn3tz"  Nickname:"RT2860STA"
Mode:Managed  Frequency=2.417 GHz  Access Point: 00:30:3F:51:F5:DE   
Bit Rate=54 Mb/s  RTS thr:off   Fragment thr:off
   Encryption key:whee!
Link Quality=77/100  Signal level:-64 dBm  Noise level:-71 dBm
Rx invalid nwid:0 
Rx invalid crypt:0  Rx invalid frag:0
Tx excessive retries:0  Invalid misc:0   
Missed beacon:0
So if im not mistaken it thinks im connected but afaik the router does not detect it as connected

when i configured i followed alienbob's gude down to the period
my
/etc/wpa_supplicant.conf
Code:
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1
# WPA protected network, supply your own ESSID and WPAPSK here:

 network={
  scan_ssid=0
ssid="Da_1nt3rn3tz"
proto=WPA RSN
key_mgmt=WPA-PSK
 pairwise=TKIP
 group=TKIP
  #psk="lol"
  psk=rofl
}
and my /etc/rc.d/rc.inet1.conf
Code:
# Config information for ath0:
IFNAME[3]="ra0"
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]="yes"
WLAN_WPA[4]="wpa_supplicant"
DHCP_HOSTNAME[3]="Da_1nt3rn3tz"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP |set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"


# Default gateway IP address:
GATEWAY=""


Any ideas?? Just yell at me if i forgot to provide something ^_^


Thanks

Last edited by Cata1yst; 08-26-2009 at 07:31 PM.
 
Old 08-26-2009, 08:35 PM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
It appears that the WPA negotiation is OK. Did you try to pull an IP address?

dhcpcd ra0

Also, try bringing the interface up before invoking wpa_supplicant to see if the IOCTL error goes away.

ifconfig ra0 up
 
Old 08-27-2009, 12:34 PM   #3
Cata1yst
LQ Newbie
 
Registered: Aug 2009
Posts: 27

Original Poster
Rep: Reputation: 16
ifconfig ra0 up didnt solve the IOctl error.
But it works fine.

Is there any way i can automate these commands during startup?
 
Old 08-27-2009, 01:17 PM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Quote:
Originally Posted by Cata1yst View Post
and my /etc/rc.d/rc.inet1.conf
Code:
# Config information for ath0:
IFNAME[3]="ra0"
IPADDR[3]=""
NETMASK[3]=""
USE_DHCP[3]="yes"
WLAN_WPA[4]="wpa_supplicant"
DHCP_HOSTNAME[3]="Da_1nt3rn3tz"
#WLAN_KEY[4]="D5A31F54ACF0487C2D0B1C10D2"
#WLAN_IWPRIV[4]="set AuthMode=WPAPSK | set EncrypType=TKIP |set WPAPSK=96389dc66eaf7e6efd5b5523ae43c7925ff4df2f8b7099495192d44a774fda16"


# Default gateway IP address:
GATEWAY=""
Change your inet1.conf file to add:
WLAN_ESSID[3]="Da_1nt3rn3tz"

Remove or remark out this line:
DHCP_HOSTNAME[3]="Da_1nt3rn3tz"

Change this line:
WLAN_WPA[4]="wpa_supplicant"

to

WLAN_WPA[3]="wpa_supplicant"

You may also want to add a default gateway address. Hopefully, that will take care of authenticating and obtaining an IP address at boot.
 
  


Reply

Tags
dhcpcd, ioctl, wpasupplicant



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: PEAK is dead... kinda, sorta LXer Syndicated Linux News 0 06-28-2007 03:01 PM
Sendmail, kinda working, kinda borken Sizam Red Hat 1 02-08-2005 12:16 PM
postfix kinda not working thesnaggle Linux - Software 2 10-01-2003 12:20 PM
DVD in mplayer, working... kinda SlvrDakotaRT Linux - Software 2 02-19-2003 09:10 AM
DNS working....kinda diveguy Linux - Networking 0 02-27-2002 09:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration