You are not logged in.

#1 2013-12-27 16:19:24

mshan
Member
Registered: 2013-05-05
Posts: 105

wpa_supplicant, dhcpcd waiting for carrier time out

I am trying to connect password protected wifi in terminal (I don't have network manager installed in my Arch with xfce4)
I have /etc/wpa_supplicant.conf file edited like this:
network={
        ssid="Android AP"
        psk="msh127msh"
}

and my usb wireless adaptor is wlp0s29f7u4 and when I run:
# wpa_supplicant -i wlp0s29f7u4 -c /etc/wpa_supplicant.conf
I stuck this message below in terminal:

mshan wrote:

msh@localhost ~]$ sudo wpa_supplicant -i wlp0s29f7u4 -c /etc/wpa_supplicant.conf
[sudo] password for msh:
Successfully initialized wpa_supplicant
wlp0s29f7u4: Trying to associate with bc:76:70:85:64:56 (SSID='Android AP' freq=2437 MHz)
ioctl[SIOCSIWFREQ]: Device or resource busy
wlp0s29f7u4: Association request to the driver failed
wlp0s29f7u4: Associated with bc:76:70:85:64:56
wlp0s29f7u4: WPA: Key negotiation completed with bc:76:70:85:64:56 [PTK=CCMP GTK=CCMP]
wlp0s29f7u4: CTRL-EVENT-CONNECTED - Connection to bc:76:70:85:64:56 completed [id=0 id_str=]

please any help...

Last edited by mshan (2013-12-28 16:40:47)


Amazing !

Offline

#2 2013-12-27 16:36:05

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

Re: wpa_supplicant, dhcpcd waiting for carrier time out

Sorry, I do not see your problem.  It appears you are using your Android phone as a wireless hot spot.  Your wpa_supplicant output shows that you are associating with the access point.  As you did not use the -B switch, wpa_supplicant did not run in daemon mode and rather stayed in the foreground.  What happens if, after associating, you launch another window and run dhcpcd as root?  You should get an IP address from the phone.  Then, if your phone has NAT forwarding enabled, you should be able to use your network.


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

#3 2013-12-28 01:31:54

mshan
Member
Registered: 2013-05-05
Posts: 105

Re: wpa_supplicant, dhcpcd waiting for carrier time out

yes, I am using Android phone as a wireless hot spot.
if I configure my Android phone's WLAN hotspot as open (not protected password), everything ok by using wifi-menu.
if I protect my phone's hotspot with password, I have this problem.
please advise me.
I have read about it online a lot.
now getting confused, hornestly.


Amazing !

Offline

#4 2013-12-28 01:35:54

mshan
Member
Registered: 2013-05-05
Posts: 105

Re: wpa_supplicant, dhcpcd waiting for carrier time out

oh, my god !
I did it.
yes, what I need is -B switch.
thank you so much.


Amazing !

Offline

#5 2013-12-28 16:39:13

mshan
Member
Registered: 2013-05-05
Posts: 105

Re: wpa_supplicant, dhcpcd waiting for carrier time out

let me unsolved this thread:
Although it was ok to connect to same wifi hotspot (Android AP) in this morning, I am having a problem again at night.
the problem I am having is this:

mshan wrote:

[msh@localhost ~]$ sudo ip link set wlp0s29f7u4 down
[sudo] password for msh:
[msh@localhost ~]$ sudo nano /etc/wpa_supplicant.conf
[msh@localhost ~]$ sudo wpa_supplicant -B -iwlp0s29f7u4 -c/etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
[msh@localhost ~]$ sudo dhcpcd wlp0s29f7u4
dhcpcd[735]: version 6.1.0 starting
dhcpcd[738]: wlp0s29f7u4: starting wpa_supplicant
dhcpcd[735]: wlp0s29f7u4: waiting for carrier
dhcpcd[735]: timed out
dhcpcd[735]: exited
[msh@localhost ~]$

please any help...


Amazing !

Offline

#6 2013-12-28 17:06:14

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

Re: wpa_supplicant, dhcpcd waiting for carrier time out

After the wpa_supplicant command, but before the dhcpcd command, check the output of iw wlp0s29f7u4 info to ensure you are associated with an access point.

ewaller$@$odin ~ [1]1004 %iw wlan0 info
Interface wlan0
	ifindex 3
	wdev 0x1
	addr 00:21:00:d9:45:47
	ssid Woodlyn
	type managed
	wiphy 0
	channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz
ewaller$@$odin ~ 1005 %

Edit: Also, I have this itch at the back of my neck about Android AP's.  I do not remember exactly what the issue was, but wicd would never connect to the same Android phone twice without having to reenter passphrases.  When I check the configuration file, it had created multiple entries for the AP.  It had convinced itself that, even though the mac and SSID were the same, that it was actually a different AP with the same AP; I do not recall why.  I had to tell wicd to connect to any network sharing this SSID.  Maybe this is biting you.

Last edited by ewaller (2013-12-28 17:12:33)


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

#7 2013-12-29 12:07:57

xtraroot
Member
Registered: 2013-12-17
Posts: 59

Re: wpa_supplicant, dhcpcd waiting for carrier time out

/etc/wpa_supplicant.conf is read by dhcpcd automatically - you shouldn't have to do any manual invoking of that file.

Try this:

first make sure dhcpcd master is not enabled:

sudo systemctl disable dhcpcd

then

sudo systemctl enable dhcpcd@wlp0s29f7u4.service

then restart the device

if your wpa_supplicant.conf parameters are sufficient, it should just always automatically connect to that network when it's in range.

Last edited by xtraroot (2013-12-29 12:12:00)

Offline

#8 2013-12-31 00:30:04

mshan
Member
Registered: 2013-05-05
Posts: 105

Re: wpa_supplicant, dhcpcd waiting for carrier time out

sorry for my slow response and thank you all for your advises.
I tried as xtraroot said, but I still have same problem.
I suspect dhcpcd itself has some problem with Android AP's wifi hotspot (not sure, just speculating as newbie)
Eventually, I ended up installing network manager, I wanted my Arch linux as slimmed down as possible though.
However, for my slimmed down reason, I removed xfce4 and installed openbox.
Now, network manager is installed along with openbox. They are running well.
I would try again wpa_supplicant and dhcpcd later when the new versions release.


Amazing !

Offline

#9 2013-12-31 17:17:44

xtraroot
Member
Registered: 2013-12-17
Posts: 59

Re: wpa_supplicant, dhcpcd waiting for carrier time out

Well I know at least for me, specifying just the ssid and password does not work. For example, I have this specified for one network:

network={
	ssid="xxxx"
	proto=WPA
	key_mgmt=WPA-PSK
	pairwise=CCMP TKIP
	group=TKIP
	#psk="xxxxxxxx"
        psk=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	}

Just specifying ssid and psk won't work with newer devices I believe.

Last edited by xtraroot (2013-12-31 17:24:36)

Offline

Board footer

Powered by FluxBB