Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant and madwifi
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Sun Dec 19, 2004 11:32 am    Post subject: Reply with quote

UberLord - any tips?
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Mon Dec 20, 2004 6:23 pm    Post subject: Reply with quote

Still can't get 1.11.8 working right with wpa_supplicant =(
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Tue Dec 21, 2004 10:54 am    Post subject: Reply with quote

Ensure that no wpa_supplicat process is running.
Then erase the directory /var/run/wpa_supplicant

Then try again!
Back to top
View user's profile Send private message
markandrew
Apprentice
Apprentice


Joined: 04 Feb 2004
Posts: 176
Location: Manchester, UK

PostPosted: Tue Dec 21, 2004 1:07 pm    Post subject: Reply with quote

ok, i'm now getting the wpa_ctrl_open error after upgrading to 0.3.2

it's still working, but spewing the error too:

Code:

markho # /etc/init.d/net.ath0 start
 * Starting ath0
 *    Starting wpa_supplicant on ath0 ...
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or dir  [ ok ]
 *       ath0 connected to "firenze2" at 00:30:F1:EC:C3:5F
 *    Bringing up ath0
 *       dhcp
 *          Running dhcpcd ...                                            [ ok ]
 *          ath0 received address 192.168.2.3
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Tue Dec 21, 2004 3:28 pm    Post subject: Reply with quote

No process running, and no directory /var/run/wpa_supplicant. Maybe lack of the directory is a problem? I'll check...
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Tue Dec 21, 2004 3:31 pm    Post subject: Reply with quote

Still no-go... Hm. Mine also just repeats the message over and over, never comes up...
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Thu Dec 23, 2004 1:29 pm    Post subject: Reply with quote

I'll look into it sometime in the new year - I've just moved house and only have WEP wireless at work :/
Back to top
View user's profile Send private message
yangman
n00b
n00b


Joined: 28 Aug 2004
Posts: 57

PostPosted: Thu Dec 30, 2004 3:39 am    Post subject: Reply with quote

astaroth_pod wrote:
No process running, and no directory /var/run/wpa_supplicant. Maybe lack of the directory is a problem? I'll check...


Make sure the following line is uncommented in your /etc/wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Sun Jan 02, 2005 3:11 pm    Post subject: Reply with quote

Quote:
Make sure the following line is uncommented in your /etc/wpa_supplicant.conf

Code:
ctrl_interface=/var/run/wpa_supplicant


Hi,

Thanks; I noticed this earlier as well, and this made the error just appear once then stop and eventually time out, instead of repeat over and over.

Permissions look good, it's in any case being run by root but the error persists...
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Tue Jan 11, 2005 1:53 pm    Post subject: Reply with quote

Error still persists (wpa_supplicant 0.3.4 now). Anyone got a clue?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Tue Jan 11, 2005 2:22 pm    Post subject: Reply with quote

Try only specifying the driver in your wpa_supplicant options
Back to top
View user's profile Send private message
trunet
n00b
n00b


Joined: 03 Oct 2003
Posts: 11
Location: São Paulo/SP/Brazil

PostPosted: Tue Jan 11, 2005 4:46 pm    Post subject: Reply with quote

I have the same problem of astaroth_pod here! I'd already put only the driver in the wpa_supplicant options and no go.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Thu Jan 13, 2005 9:44 am    Post subject: Reply with quote

Code:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or dir


That message means that wpa_supplicant has segfaulted/crashed - I only found this last night as wpa_supplicant-0.3.4 segfaults on my AMD64 box.

I'll see if I can put better error messaging in
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Fri Jan 14, 2005 1:05 pm    Post subject: Reply with quote

Must be the wpa_cli or something unimportant that crashes - because wpa is working fine, I can just ctrl-c the script and run dhcpcd ath0, and it works.
Back to top
View user's profile Send private message
MadOtis
Apprentice
Apprentice


Joined: 14 Dec 2002
Posts: 163
Location: Georgia

PostPosted: Sat Jan 15, 2005 7:38 pm    Post subject: Reply with quote

I don't know if it matters or not, but I had the exact same series of problems as in this thread. I finally get everything working by emerge -C madwifi-driver and fetching the WPA branch of MadWifi from CVS.
Code:
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co -r WPA madwifi

Did an old fashioned 'make && make install', rebooted, and it came up and started working.

I don't know if the key was the WPA branch or what, but I know that as soon as I unmerged the portage version of madwifi and replaced it with a manual build of the latest code, it started working.

Hope this helps in some little way.

Cheers,
Randy
Back to top
View user's profile Send private message
mOjO_420
n00b
n00b


Joined: 11 Jun 2003
Posts: 71
Location: Suburbs of Chicago, IL, USA

PostPosted: Sun Jan 16, 2005 10:55 am    Post subject: FIXED Reply with quote

i think i figured it out... someone re-write the function more elegantly please.. i'm not a coder.

https://forums.gentoo.org/viewtopic.php?p=1982963#1982963
_________________
http://thegeekclub.net
Back to top
View user's profile Send private message
MadOtis
Apprentice
Apprentice


Joined: 14 Dec 2002
Posts: 163
Location: Georgia

PostPosted: Sun Jan 16, 2005 1:38 pm    Post subject: Reply with quote

Mojo,

For not being a programmer, you didn't do half-bad there... Your script modification is very close to Uberlord's. The only real difference is, this line
Code:
local -a status=( $( wpa_cli -i${1} status | awk -F='/^key_mgmt|^wpa_state|^decision/ { print $2 }' ) )

is changed to this
Code:
local -a status=( $( wpa_cli -i${1} status | awk -F='/^key_mgmt|^wpa_state/ { print $2 }' ) )

and this line
Code:
[[ ${status[2]} == COND_SUCC ]]

was replaced with this
Code:
[[ ${status[1]} == COMPLETE ]]


Oh, and Uberlord's patch can be found at:
https://bugs.gentoo.org/show_bug.cgi?id=74637

Cheers!
Back to top
View user's profile Send private message
mOjO_420
n00b
n00b


Joined: 11 Jun 2003
Posts: 71
Location: Suburbs of Chicago, IL, USA

PostPosted: Sun Jan 16, 2005 6:34 pm    Post subject: Reply with quote

patch applied.

thanks... ;-)

figures this had been solved already and i wasted a few hours for nuttin. :-o


anyone else been getting occasional kernel panics with 2.6.10-r4 and the madwifi patch...? i think the patch was maybe hastily written. i dunno.. i pulled it off the forums and not bugs or anywhere official.

really the kernel panics are few and far between but they always happen when i'm doing something involving that atheros wifi card (DWL-G650).
_________________
http://thegeekclub.net
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Tue Jan 18, 2005 2:49 pm    Post subject: Reply with quote

This doesn't solve anything for me though - I must be missing something completely.

The problem isn't that I get a dhcp timeout - I just don't get a dhcp anything, it stops at the error

Code:
Failed to connect to wpa_supplicant - wpa_ctrl_open: No such file or dir


and hangs there infinitely - it never gets to where it wants to run the dhcp at all.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Tue Jan 18, 2005 3:08 pm    Post subject: Reply with quote

@astaroth_pod - that means that the wpa_supplicant daemon has segfaulted - or it's looking in the wrong location for ctrl_interface

Ensure that /etc/wpa_supplicant.conf has the below line exactly
Code:

ctrl_interface=/var/run/wpa_supplicant
Back to top
View user's profile Send private message
astaroth_pod
n00b
n00b


Joined: 11 Oct 2003
Posts: 58

PostPosted: Thu Jan 20, 2005 11:53 am    Post subject: Reply with quote

Thanks Uberlord, after applying your patches it now gives the error once then continues to start.

Error still persists, but it completes and works - so its good enough for now.

I have the ctrl interface right, and also the wpa_cli points to the right location (I used to change that manually).

Again, thanks =)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum