You are not logged in.

#1 2009-11-02 07:08:04

Cr0k
Member
Registered: 2009-10-16
Posts: 174

[Wifi] Cannot connect ... (Solved, but ???)

Hi everyone.

Today I'm on Paris, and I want to connect my laptop to my Wifi, 'cause I've the ethernet cable connected to my laptop everytime, and I don't like it.
I've done a script to connect to my Wifi. Security options are the same at my home & here, but here, it doesn't works, and I don't know why. In two places the essid is masked.

I searched until midnight yesterday, but I didn't find.

Can someone help me ?

Last edited by Cr0k (2009-11-03 00:51:45)

Offline

#2 2009-11-02 11:38:05

hokasch
Member
Registered: 2007-09-23
Posts: 1,461

Re: [Wifi] Cannot connect ... (Solved, but ???)

Please post more details about the problem - how do you connect, what security, where does it fail, errors etc.
If you encounter network errors, it is always a good idea to try connecting manually from the console (wpa_supplicant/iwconfig/ifconfig), you will get a lot more information about what goes wrong at which step that way.

Offline

#3 2009-11-02 12:56:21

Cr0k
Member
Registered: 2009-10-16
Posts: 174

Re: [Wifi] Cannot connect ... (Solved, but ???)

I try to connect with iwconfig, the script I've done is iwconfig's commands.
The only error I have is "dhcpcd : timed out"

Offline

#4 2009-11-02 13:25:09

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Wifi] Cannot connect ... (Solved, but ???)

That usually means you have not associated successfully with the wireless AP. Run your iwconfig command manually, and check if you are associated.

Offline

#5 2009-11-03 00:51:06

Cr0k
Member
Registered: 2009-10-16
Posts: 174

Re: [Wifi] Cannot connect ... (Solved, but ???)

Yeah ! I solved it.

I don't know why, but if I use a script, with at the end "[...] iwconfig wlan0 essid my-essid && dhcpcd wlan0", here it doesn't work.
BUT if I remove from the scripts the dhcpcd command, and if I do it after the script execution, it works.

Any idea to explain this ?

Offline

#6 2009-11-03 06:38:39

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: [Wifi] Cannot connect ... (Solved, but ???)

The iwconfig command will execute successfully, followed immediately by the dhcpcd command. However WEP authentication and association is not immediate, so dhcpcd times out. You could try "sleep 5" in between.

Offline

#7 2009-11-03 08:35:03

Cr0k
Member
Registered: 2009-10-16
Posts: 174

Re: [Wifi] Cannot connect ... (Solved, but ???)

Ok, so it will be : "[...] iwconfig wlan0 essid my-essid && sleep 5 && dhcpcd wlan0" ?

Edit : I tried with sleep 1, it works flawless smile

Thanks all

Last edited by Cr0k (2009-11-03 09:36:34)

Offline

Board footer

Powered by FluxBB