View previous topic :: View next topic |
Author |
Message |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Sun Dec 19, 2004 11:32 am Post subject: |
|
|
UberLord - any tips? |
|
Back to top |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Mon Dec 20, 2004 6:23 pm Post subject: |
|
|
Still can't get 1.11.8 working right with wpa_supplicant =( |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Tue Dec 21, 2004 10:54 am Post subject: |
|
|
Ensure that no wpa_supplicat process is running.
Then erase the directory /var/run/wpa_supplicant
Then try again! |
|
Back to top |
|
 |
markandrew Apprentice

Joined: 04 Feb 2004 Posts: 176 Location: Manchester, UK
|
Posted: Tue Dec 21, 2004 1:07 pm Post subject: |
|
|
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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Tue Dec 21, 2004 3:28 pm Post subject: |
|
|
No process running, and no directory /var/run/wpa_supplicant. Maybe lack of the directory is a problem? I'll check... |
|
Back to top |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Tue Dec 21, 2004 3:31 pm Post subject: |
|
|
Still no-go... Hm. Mine also just repeats the message over and over, never comes up... |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Thu Dec 23, 2004 1:29 pm Post subject: |
|
|
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 |
|
 |
yangman n00b

Joined: 28 Aug 2004 Posts: 57
|
Posted: Thu Dec 30, 2004 3:39 am Post subject: |
|
|
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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Sun Jan 02, 2005 3:11 pm Post subject: |
|
|
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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Tue Jan 11, 2005 1:53 pm Post subject: |
|
|
Error still persists (wpa_supplicant 0.3.4 now). Anyone got a clue? |
|
Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Tue Jan 11, 2005 2:22 pm Post subject: |
|
|
Try only specifying the driver in your wpa_supplicant options |
|
Back to top |
|
 |
trunet n00b

Joined: 03 Oct 2003 Posts: 11 Location: São Paulo/SP/Brazil
|
Posted: Tue Jan 11, 2005 4:46 pm Post subject: |
|
|
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 |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Thu Jan 13, 2005 9:44 am Post subject: |
|
|
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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Fri Jan 14, 2005 1:05 pm Post subject: |
|
|
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 |
|
 |
MadOtis Apprentice


Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
Posted: Sat Jan 15, 2005 7:38 pm Post subject: |
|
|
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 |
|
 |
mOjO_420 n00b


Joined: 11 Jun 2003 Posts: 71 Location: Suburbs of Chicago, IL, USA
|
|
Back to top |
|
 |
MadOtis Apprentice


Joined: 14 Dec 2002 Posts: 163 Location: Georgia
|
Posted: Sun Jan 16, 2005 1:38 pm Post subject: |
|
|
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 |
|
 |
mOjO_420 n00b


Joined: 11 Jun 2003 Posts: 71 Location: Suburbs of Chicago, IL, USA
|
Posted: Sun Jan 16, 2005 6:34 pm Post subject: |
|
|
patch applied.
thanks...
figures this had been solved already and i wasted a few hours for nuttin.
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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Tue Jan 18, 2005 2:49 pm Post subject: |
|
|
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 |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6838 Location: Blighty
|
Posted: Tue Jan 18, 2005 3:08 pm Post subject: |
|
|
@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 |
|
 |
astaroth_pod n00b

Joined: 11 Oct 2003 Posts: 58
|
Posted: Thu Jan 20, 2005 11:53 am Post subject: |
|
|
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 |
|
 |
|