LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   WPA Supplicant (cannot connect to wpa supplicant - retrying) (https://www.linuxquestions.org/questions/linux-networking-3/wpa-supplicant-cannot-connect-to-wpa-supplicant-retrying-753401/)

r11_kaede 09-07-2009 03:26 PM

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.

business_kid 09-09-2009 06:06 AM

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.

r11_kaede 09-09-2009 09:47 AM

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.

business_kid 09-10-2009 03:51 AM

Quote:

Originally Posted by r11_kaede (Post 3675926)
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. . .

r11_kaede 09-11-2009 07:15 AM

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"

business_kid 09-12-2009 03:22 AM

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.

r11_kaede 09-13-2009 04:02 AM

Will try it after upgrading to Jaunty (as per other thread).

Thanks a lot. :)

business_kid 09-14-2009 03:46 AM

Why did you post 2 threads about the same problem?

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


All times are GMT -5. The time now is 04:23 PM.