You are not logged in.

#1 2011-04-19 01:24:26

markbabc
Member
Registered: 2010-11-06
Posts: 157

wlan0 dhcpcd timeout on no carrier issue

Ok so after trying to fix this problem myself and google coming up with nothing relevant i come here asking for help.

I havent had a problem with my wireless since installing Arch but recently its been giving me alot of trouble.

in wicd it cant see any of the networks (i can still connect if i plug in an ethernet cable) and when i ifconfig it doesnt show up with wlan0

So i tried # ifconfig wlan0 up and then it shows up and manually i cant iwlist wlan0 scan and it will actually scan and show the ap's in the area and i can even iwconfig wlan0 essid "essid" and then iwconfig will show me connected but when i try and dhcpcd wlan0 it says

dhcpcd[1420]: version 5.2.12 starting
dhcpcd[1420]: wlan0: waiting for carrier
dhcpcd[1420]: timed out

and thats it.

I connected to the hardline and updated everything and it still does that
catting out /sys/class/net/wlan0/carrier displays 0


I use ath5k as my driver and am using the most up-to-date default kernel.

any help would be great!

Offline

#2 2011-04-19 01:50:34

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: wlan0 dhcpcd timeout on no carrier issue

What is your wireless card?


I laugh, yet the joke is on me

Offline

#3 2011-04-19 10:16:47

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

the sad clown wrote:

What is your wireless card?

yes.

Offline

#4 2011-04-19 10:29:55

xs
Member
From: San Jose, CA.
Registered: 2011-04-06
Posts: 92

Re: wlan0 dhcpcd timeout on no carrier issue

Try using network instead of networkmanager/vice versa. I had the same issue when using networkmanager with dhclient/wicd. I switched to network and now it works fine.


I like pie. Especially with a side of Arch.

Offline

#5 2011-04-19 19:44:31

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

xs wrote:

Try using network instead of networkmanager/vice versa. I had the same issue when using networkmanager with dhclient/wicd. I switched to network and now it works fine.

But wouldnt it work via the command line? And does wicd use networkmanager as a backend?

Offline

#6 2011-04-19 21:11:54

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: wlan0 dhcpcd timeout on no carrier issue

markbabc wrote:
the sad clown wrote:

What is your wireless card?

yes.

That's not quite the answer I was hoping for.  Do you know what type of wireless card you have?

markbabc wrote:

But wouldnt it work via the command line? And does wicd use networkmanager as a backend?

No, wicd and networkmanager are separate.

Also, can you post your daemons array line from "/etc/rc.conf"?


I laugh, yet the joke is on me

Offline

#7 2011-04-20 01:36:23

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

the sad clown wrote:

That's not quite the answer I was hoping for.  Do you know what type of wireless card you have?

markbabc wrote:

But wouldnt it work via the command line? And does wicd use networkmanager as a backend?

No, wicd and networkmanager are separate.

Also, can you post your daemons array line from "/etc/rc.conf"?

My bad i read that as "is it your wireless card"
lspci says its

01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)

and in /etc/rc.conf my daemons array is

DAEMONS=(@syslong-ng @dbus !netfs @crond @alsa @wicd @sshd)

but thats been like that for a long time and hasnt been edited in a few months

Offline

#8 2011-04-20 01:47:55

xs
Member
From: San Jose, CA.
Registered: 2011-04-06
Posts: 92

Re: wlan0 dhcpcd timeout on no carrier issue

syslong-ng, should be syslog-ng. I don't use @ in front of anything except wicd. Dunno if it matters or not but I'm using network in deamons prior to loading wicd. You should check your network configs as well. I'm using an ath5k as well.


I like pie. Especially with a side of Arch.

Offline

#9 2011-04-20 02:05:36

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

xs wrote:

syslong-ng, should be syslog-ng. I don't use @ in front of anything except wicd. Dunno if it matters or not but I'm using network in deamons prior to loading wicd. You should check your network configs as well. I'm using an ath5k as well.

mybad i was typing it out because i didnt want to get a ethernet cable, its really syslog-ng in the array, ill try adding network in the array

Offline

#10 2011-04-20 02:10:29

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: wlan0 dhcpcd timeout on no carrier issue

markbabc wrote:

My bad i read that as "is it your wireless card"
lspci says its

01:00.0 Ethernet controller: Atheros Communications Inc. AR5001 Wireless Network Adapter (rev 01)

and in /etc/rc.conf my daemons array is

DAEMONS=(@syslong-ng @dbus !netfs @crond @alsa @wicd @sshd)

but thats been like that for a long time and hasnt been edited in a few months

That is my card and I use ath5k as well.  The fact that your interface isn't showing up would seem to point to a problem with your ath5k module.  Are you sure it is loading properly?  Perhaps you could try a modprobe ath5k and see if that doesn't improve things for you.  You could try these instructions and see if they don't help you:

https://wiki.archlinux.org/index.php/Wi … etup#ath5k

Also, do not enable the network daemon.  You should not have any other networking daemons active except wicd.  See the wicd page for an example daemons array:

https://wiki.archlinux.org/index.php/Wicd#Initial_Setup

Last edited by the sad clown (2011-04-20 02:12:56)


I laugh, yet the joke is on me

Offline

#11 2011-04-20 02:13:00

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: wlan0 dhcpcd timeout on no carrier issue

Try 'rm /var/run/dhcpcd/wlan0*' to remove any old leases and then run 'dhcpcd wlan0' again. I occasionally have to do this when switching networks.

Scott

Offline

#12 2011-04-20 02:54:53

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

firecat53 wrote:

Try 'rm /var/run/dhcpcd/wlan0*' to remove any old leases and then run 'dhcpcd wlan0' again. I occasionally have to do this when switching networks.

Scott

ony thing thats in there is the resolv.conf file

and @the sad clown i will try re-installing the ath5k module tomorrow because modprobe'ing it didnt work

Offline

#13 2011-04-20 03:07:08

firecat53
Member
From: Lake Stevens, WA, USA
Registered: 2007-05-14
Posts: 1,542
Website

Re: wlan0 dhcpcd timeout on no carrier issue

Sorry, my bad -- /var/lib/dhcpcd/dhcpcd-wlan0.lease  (I sent that from my phone -- bad fact checking smile )

Scott

Last edited by firecat53 (2011-04-20 03:07:30)

Offline

#14 2011-04-20 03:07:23

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: wlan0 dhcpcd timeout on no carrier issue

What happened when you did a modprobe?  You shouldn't have to install it since it is included in the kernel.  Can you post the output from "modprobe ath5k"?


I laugh, yet the joke is on me

Offline

#15 2011-04-20 03:13:42

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

the sad clown wrote:

What happened when you did a modprobe?  You shouldn't have to install it since it is included in the kernel.  Can you post the output from "modprobe ath5k"?

Well thats the thing... There was no output... iv never had to use modprobe before so if theres an argv i had to put in i probably didnt

Last edited by markbabc (2011-04-20 03:14:28)

Offline

#16 2011-04-20 03:19:37

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

firecat53 wrote:

Sorry, my bad -- /var/lib/dhcpcd/dhcpcd-wlan0.lease  (I sent that from my phone -- bad fact checking smile )

Scott

tried that but still the same problem

@the sad clown i tried removing it with modprobe -r ath5k then loading it again with modprobe ath5k and it still fails

Offline

#17 2011-04-20 03:25:53

the sad clown
Member
From: 192.168.0.X
Registered: 2011-03-20
Posts: 837

Re: wlan0 dhcpcd timeout on no carrier issue

Try following the instuctions for ath5k I linked to earlier.  It could be that another module is conflicting with ath5k and preventing it from loading properly.


I laugh, yet the joke is on me

Offline

#18 2011-04-30 02:33:11

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

the sad clown wrote:

Try following the instuctions for ath5k I linked to earlier.  It could be that another module is conflicting with ath5k and preventing it from loading properly.

My bad for such a late reply iv been extremely busy.

I tried the wiki and it didnt work, also in /sys/module none of those conflicting modules were there.

I remembered that i had installed the drivers for my usb wireless card to then transfer the pkg onto my desktop so i could use it so i tried plugging in that card and the same thing happens.

In /sys/module when plugged in the correct module loads but then i have to manually ifconfig wlan1 up and then i get down to the same error of the carrier is missing

Offline

#19 2011-05-02 17:08:12

nocain
Member
From: nowheresvill california
Registered: 2003-05-31
Posts: 62

Re: wlan0 dhcpcd timeout on no carrier issue

This sounds like an unrelated issue, but for what it is worth ath5k is jacked up in 2.6.38 kernel for the time being. If you do get it to work you will get transfer speeds less then 1/10 of what you should be getting. https://bugzilla.kernel.org/show_bug.cgi?id=31922 sad I had to drop back to 2.6.37 to have working wireless again on my laptop. https://bbs.archlinux.org/viewtopic.php?id=116782

Last edited by nocain (2011-05-02 17:19:05)

Offline

#20 2011-05-02 17:15:52

hunter_thom
Member
Registered: 2011-05-02
Posts: 16

Re: wlan0 dhcpcd timeout on no carrier issue

Might be going down the wrong track, but what kind of security? i.e. WEP, WPA, open, etc.

I ask because I have a laptop, ath5k, arch, 2.6.38, and had the same problems. For me I hadnt associated the wlan0 to my ssid, and so my wpa_supplicant didnt authenticate and dhcpcd timed out waiting for carrier.

Just a thought, that perhaps wlan0 isn't authenticating/associating with your router/AP?

Offline

#21 2011-05-02 17:18:07

nocain
Member
From: nowheresvill california
Registered: 2003-05-31
Posts: 62

Re: wlan0 dhcpcd timeout on no carrier issue

Oh and you could do from the terminal an lsmod |grep ath to see if the modules are loading. not at home right now so doing this from memory but you should get output something like this if it is loading right( I just invented the first set of numbers after the module name ).

ath 12345 0
ath5k 23456 1 ath
mac80211 34566 2 ath, ath5k

Offline

#22 2011-05-03 08:03:48

TontonBizar
Member
Registered: 2008-01-23
Posts: 14

Re: wlan0 dhcpcd timeout on no carrier issue

Before typing dhcpcd wlan0, I use to type iwconfig wlan0 channel auto and the problem disappears.

Offline

#23 2011-05-03 08:19:31

neurolysis
Member
Registered: 2011-02-23
Posts: 112
Website

Re: wlan0 dhcpcd timeout on no carrier issue

You need to tell it what to connect to before using dhcpcd, for example, by using iwconfig or wpa_supplicant.

Last edited by neurolysis (2011-05-03 08:19:49)

Offline

#24 2011-05-03 20:29:07

markbabc
Member
Registered: 2010-11-06
Posts: 157

Re: wlan0 dhcpcd timeout on no carrier issue

neurolysis wrote:

You need to tell it what to connect to before using dhcpcd, for example, by using iwconfig or wpa_supplicant.

comeon... im not that stupid... read my first post and i say that i do that.....

nocain wrote:

Oh and you could do from the terminal an lsmod |grep ath to see if the modules are loading. not at home right now so doing this from memory but you should get output something like this if it is loading right( I just invented the first set of numbers after the module name ).
ath 12345 0
ath5k 23456 1 ath
mac80211 34566 2 ath, ath5k

It shows

ath5k          127186 0
ath               11442 1 ath5k
mac80211   181798 1 ath5k
cfg80211     123549 3 ath5k,ath,mac80211

and to those of you saying that i need to associate to the AP i already have and iwconfig says im associated to it

Offline

#25 2011-05-03 21:15:28

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,773

Re: wlan0 dhcpcd timeout on no carrier issue

markbabc wrote:
neurolysis wrote:

You need to tell it what to connect to before using dhcpcd, for example, by using iwconfig or wpa_supplicant.

....... read my first post and i say that i do that.....

and to those of you saying that i need to associate to the AP i already have and iwconfig says im associated to it

But... If it is protected with WPA or WPA2, you can associate with it; but you still won't be able to talk to it. 
Do you know if the router uses WPA ?? With WEP, the association requires the passphrase.  No so with WPA.  With WPA, the encryption occurs at a higher link level.  Even though you are associated, your TCP packets are not encrypted properly and are meaningless. 

With WPA:

1.  iwconfig to associate with the AP
2.  wpa_supplicant to manage packet encryption / decryption (I think you are missing this step)
3.  dhcpcd
4.  profit.... smile


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB