LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-07-2009, 04:26 PM   #1
r11_kaede
LQ Newbie
 
Registered: Jul 2008
Posts: 26

Rep: Reputation: 15
WPA Supplicant (cannot connect to wpa supplicant - retrying)


Hi guys,

my previous post mentioned the failure in connecting to encrypted networks. After googling around, I found out that wpa supplicant was the problem.

Unfortunately, whenever I tried starting wpa_cli, this pops up.

"Could not connect to wpa_supplicant - re-trying"

I'm using Hardy Heron (Ubuntu), 2.6.24-19, Gnome 2.22.3, Broadcom Corporation BCM4312 802.11b/g.

Any help would be appreciated here.


Thanks.
 
Old 09-09-2009, 07:06 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
wpa_supplicant exits at once unless it's being used. There is some option to make it wait. have you set up wpa_supplicant.conf? See also man wpa_passphrase

Try to get this stuff into the init scripts and working.
 
Old 09-09-2009, 10:47 AM   #3
r11_kaede
LQ Newbie
 
Registered: Jul 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Hi business_kid,

I hate to sound dumb.. well, okay, I actually do sound dumb. But I actually do have a wpa_supplicant.conf (which I created on my own, because for some odd reason I didn't have one).

it went like this:

ap_scan=2
ctrl_interface=/var/run/wpa_supplicant

network={
ssid="MyESSID"
scan_ssid=1 # only needed if your access point uses a hidden ssid
proto=WPA
key_mgmt=WPA-PSK
psk="seeminglyrandomseriesofnumbers"
pairwise=TKIP
group=TKIP
}

Is there something wrong with this file (or rather, did I type anything wrong in this file?)

And erm, how do I get this into the init. files?

Thanks a ton.

Last edited by r11_kaede; 09-09-2009 at 10:50 AM.
 
Old 09-10-2009, 04:51 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
Quote:
Originally Posted by r11_kaede View Post
Hi business_kid,

I hate to sound dumb.. well, okay, I actually do sound dumb. But I actually do have a wpa_supplicant.conf (which I created on my own, because for some odd reason I didn't have one).

it went like this:

ap_scan=2
ctrl_interface=/var/run/wpa_supplicant

network={
ssid="MyESSID"
scan_ssid=1 # only needed if your access point uses a hidden ssid
proto=WPA
key_mgmt=WPA-PSK
psk="seeminglyrandomseriesofnumbers"
pairwise=TKIP
group=TKIP
}

Is there something wrong with this file (or rather, did I type anything wrong in this file?)
I have
pairwise=CCMP TGKIP
group=CCMP TKIP WEP104 WEP40

aND you left out one step. wpa_passphrase gives you the number you _really_want_. Open wpa_supplicant fior editing, and in another terminal type this

wpa_passhrase MyESSID seeminglyrandomseriesofnumbers

bash-3.1$ wpa_passphrase MyESSID seeminglyrandomseriesofnumbers
network={
ssid="MyESSID"
#psk="seeminglyrandomseriesofnumbers"
psk=8e83d5dcf3df474cb1000c9efa5dd6dc184ac6e0ce9e9bcc660b7aaf22ec5894
}

THAT is the psk you want. The original set is there for reference only. Don't ask me why. . .
 
Old 09-11-2009, 08:15 AM   #5
r11_kaede
LQ Newbie
 
Registered: Jul 2008
Posts: 26

Original Poster
Rep: Reputation: 15
okay, so if im reading you rightly, I need to run the commands as such.

1) wpa_passphrase MyEssid "initial password"
2) wpa_passphrase MyEssid "random numbers generated from above"
3) wpa_passphrase MyEssid "random numbers generated from step2"

But I get this in return, "Passphrase must be 8..63 characters"

"pulls hair"
 
Old 09-12-2009, 04:22 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
I ran into that too. The essid and password are used to generate the longer number. Simply lop a few digits off your password (seemingly_random_numbers) and try again.
 
Old 09-13-2009, 05:02 AM   #7
r11_kaede
LQ Newbie
 
Registered: Jul 2008
Posts: 26

Original Poster
Rep: Reputation: 15
Will try it after upgrading to Jaunty (as per other thread).

Thanks a lot.
 
Old 09-14-2009, 04:46 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,068

Rep: Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482Reputation: 2482
Why did you post 2 threads about the same problem?

The answers to the same problem should converge in any case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Wpa Supplicant xp1o1d5 Linux - Newbie 1 03-31-2009 11:32 PM
wifi wpa supplicant 07bec011 Linux - Wireless Networking 2 08-28-2008 10:32 AM
usb network adapter with ndiswrapper can't connect to wpa with wpa-supplicant AceofSpades19 Linux - Wireless Networking 8 03-30-2008 06:13 PM
A better way to WPA SUPPLICANT Ashrack Linux - Wireless Networking 5 01-25-2007 02:46 PM
How do i set up WPA PSK with wpa supplicant and linuxant? Eleavings Linux - Wireless Networking 4 12-27-2004 12:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:53 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