public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] wpa_supplicant connect-disconnect loop
@ 2010-12-11 20:26 Valmor de Almeida
  2010-12-11 23:28 ` Mick
  0 siblings, 1 reply; 6+ messages in thread
From: Valmor de Almeida @ 2010-12-11 20:26 UTC (permalink / raw
  To: gentoo-user


Hello,

The output of

  wpa_supplicant -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
-iwlan0 -d dhcpcd

on my laptop shows continuous output to screen which appears to be
looping on association and disassociation to my wireless router (I am
not posting this long list here). The corresponding effect is this

-> ping yahoo.com
PING yahoo.com (72.30.2.43) 56(84) bytes of data.
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=1 ttl=47
time=88.2 ms
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=2 ttl=47
time=88.6 ms
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=3 ttl=47
time=91.1 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
[snip]
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=21 ttl=47
time=94.8 ms
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=22 ttl=47
time=90.7 ms
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=23 ttl=47
time=87.6 ms
64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=24 ttl=47
time=89.5 ms
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
ping: sendmsg: Network is unreachable
^C
--- yahoo.com ping statistics ---
32 packets transmitted, 7 received, 78% packet loss, time 31009ms
rtt min/avg/max/mdev = 87.615/90.125/94.813/2.283 ms

I have never setup wireless networking and have been reading the web and
other information on how to use wpa_supplicant to connect to my home
router. I would appreciate help on this. I emerged wpa_supplicant with
the following USE flags:

-> equery uses wpa_supplicant
[ Searching for packages matching wpa_supplicant... ]
[ Colour Code : set unset ]
[ Legend : Left column  (U) - USE flags from make.conf              ]
[        : Right column (I) - USE flags packages was installed with ]
[ Found these USE variables for net-wireless/wpa_supplicant-0.7.2-r3 ]
 U I
 - - dbus           : Enable dbus support for anything that needs it
(gpsd, gnomemeeting, etc)
 - - debug          : Enable extra debug codepaths, like asserts and
extra output. If you want to get meaningful backtraces see
http://www.gentoo.org/proj/en/qa/backtraces.xml
 - - eap-sim        : Add support for EAP-SIM authentication algorithm
 - - fasteap        : Add support for FAST-EAP authentication algorithm
 - - gnutls         : Adds support for net-libs/gnutls (TLS 1.0 and SSL
3.0 support)
 - - kernel_FreeBSD : KERNEL setting for system using the FreeBSD kernel
 + + kernel_linux   : KERNEL setting for system using the Linux kernel
 - - madwifi        : Add support for madwifi (Atheros chipset)
 - - ps3            : Add support for ps3 hypervisor driven gelic wifi
 - - qt4            : Adds support for the Qt GUI/Application Toolkit
version 4.x
 + + readline       : Enables support for libreadline, a GNU
line-editing library that almost everyone wants
 + + ssl            : Adds support for Secure Socket Layer connections
 - - wps            : Add support for Wi-Fi Protected Setup

There were a number of steps to get to where I am now and I would be
glad to post additional information if required.

Thanks a lot.

--
Valmor




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] wpa_supplicant connect-disconnect loop
  2010-12-11 20:26 [gentoo-user] wpa_supplicant connect-disconnect loop Valmor de Almeida
@ 2010-12-11 23:28 ` Mick
  2010-12-12  1:35   ` Valmor de Almeida
  0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2010-12-11 23:28 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 4086 bytes --]

On Saturday 11 December 2010 20:26:54 Valmor de Almeida wrote:
> Hello,
> 
> The output of
> 
>   wpa_supplicant -Dwext -c/etc/wpa_supplicant/wpa_supplicant.conf
> -iwlan0 -d dhcpcd
> 
> on my laptop shows continuous output to screen which appears to be
> looping on association and disassociation to my wireless router (I am
> not posting this long list here). The corresponding effect is this
> 
> -> ping yahoo.com
> PING yahoo.com (72.30.2.43) 56(84) bytes of data.
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=1 ttl=47
> time=88.2 ms
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=2 ttl=47
> time=88.6 ms
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=3 ttl=47
> time=91.1 ms
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> [snip]
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=21 ttl=47
> time=94.8 ms
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=22 ttl=47
> time=90.7 ms
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=23 ttl=47
> time=87.6 ms
> 64 bytes from ir1.fp.vip.sk1.yahoo.com (72.30.2.43): icmp_req=24 ttl=47
> time=89.5 ms
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ping: sendmsg: Network is unreachable
> ^C
> --- yahoo.com ping statistics ---
> 32 packets transmitted, 7 received, 78% packet loss, time 31009ms
> rtt min/avg/max/mdev = 87.615/90.125/94.813/2.283 ms
> 
> I have never setup wireless networking and have been reading the web and
> other information on how to use wpa_supplicant to connect to my home
> router. I would appreciate help on this. I emerged wpa_supplicant with
> the following USE flags:
> 
> -> equery uses wpa_supplicant
> [ Searching for packages matching wpa_supplicant... ]
> [ Colour Code : set unset ]
> [ Legend : Left column  (U) - USE flags from make.conf              ]
> [        : Right column (I) - USE flags packages was installed with ]
> [ Found these USE variables for net-wireless/wpa_supplicant-0.7.2-r3 ]
>  U I
>  - - dbus           : Enable dbus support for anything that needs it
> (gpsd, gnomemeeting, etc)
>  - - debug          : Enable extra debug codepaths, like asserts and
> extra output. If you want to get meaningful backtraces see
> http://www.gentoo.org/proj/en/qa/backtraces.xml
>  - - eap-sim        : Add support for EAP-SIM authentication algorithm
>  - - fasteap        : Add support for FAST-EAP authentication algorithm
>  - - gnutls         : Adds support for net-libs/gnutls (TLS 1.0 and SSL
> 3.0 support)
>  - - kernel_FreeBSD : KERNEL setting for system using the FreeBSD kernel
>  + + kernel_linux   : KERNEL setting for system using the Linux kernel
>  - - madwifi        : Add support for madwifi (Atheros chipset)
>  - - ps3            : Add support for ps3 hypervisor driven gelic wifi
>  - - qt4            : Adds support for the Qt GUI/Application Toolkit
> version 4.x
>  + + readline       : Enables support for libreadline, a GNU
> line-editing library that almost everyone wants
>  + + ssl            : Adds support for Secure Socket Layer connections
>  - - wps            : Add support for Wi-Fi Protected Setup
> 
> There were a number of steps to get to where I am now and I would be
> glad to post additional information if required.

You could try changing channels (if there is a clash with other local APs) but 
it's most likely that the dropouts you notice are due to the wireless driver.  
Waiting for developers to catch up or using later drivers/firmware usually 
fixes this problem.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] wpa_supplicant connect-disconnect loop
  2010-12-11 23:28 ` Mick
@ 2010-12-12  1:35   ` Valmor de Almeida
  2010-12-12  2:07     ` Valmor de Almeida
  0 siblings, 1 reply; 6+ messages in thread
From: Valmor de Almeida @ 2010-12-12  1:35 UTC (permalink / raw
  To: gentoo-user

On 12/11/2010 06:28 PM, Mick wrote:
> On Saturday 11 December 2010 20:26:54 Valmor de Almeida wrote:
>> Hello,
>>
[snip]
>>
>> There were a number of steps to get to where I am now and I would be
>> glad to post additional information if required.
> 
> You could try changing channels (if there is a clash with other local APs) but 
> it's most likely that the dropouts you notice are due to the wireless driver.  
> Waiting for developers to catch up or using later drivers/firmware usually 
> fixes this problem.

Here is some info.

-> dmesg | grep -i iwl
[   12.442620] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux,
in-tree:d
[   12.442622] iwlagn: Copyright(c) 2003-2010 Intel Corporation
[   12.442691] iwlagn 0000:02:00.0: PCI INT A -> GSI 16 (level, low) ->
IRQ 16
[   12.442699] iwlagn 0000:02:00.0: setting latency timer to 64
[   12.442743] iwlagn 0000:02:00.0: Detected Intel Wireless WiFi Link
6000 Series 3x3 AGN REV=0x74
[   12.452866] iwlagn 0000:02:00.0: Tunable channels: 13 802.11bg, 24
802.11a channels
[   12.452988] iwlagn 0000:02:00.0: irq 31 for MSI/MSI-X
[   12.453271] iwlagn 0000:02:00.0: firmware: requesting
iwlwifi-6000-4.ucode
[   12.486540] iwlagn 0000:02:00.0: loaded firmware version 9.221.4.1
[   12.488339] phy0: Selected rate control algorithm 'iwl-agn-rs'
[  807.914432] iwlagn 0000:02:00.0: RF_KILL bit toggled to enable radio.

I could use the iwl6050 firmware. I am currently using iwl6000 (both are
masked for amd64)

*  net-wireless/iwl6000-ucode
      Latest version available: 9.221.4.1
      Latest version installed: 9.221.4.1
      Size of files: 211 kB
      Homepage:      http://intellinuxwireless.org/?p=iwlwifi
      Description:   Intel (R) Wireless WiFi Advanced N 6000 ucode
      License:       ipw3945

*  net-wireless/iwl6050-ucode [ Masked ]
      Latest version available: 9.201.4.1
      Latest version installed: [ Not Installed ]
      Size of files: 212 kB
      Homepage:      http://intellinuxwireless.org/?p=iwlwifi
      Description:   Intel (R) Wireless WiFi Link 6250-AGN ucode
      License:       ipw3945

I am using the 2.6.34-gentoo-r12 kernel with the iwlagn driver built
with the following kernel config

<M>   Intel Wireless Wifi
[*]     Enable full debugging output in iwlagn and iwl3945 drivers
[ ]     iwlwifi device access tracing
<M>     Intel Wireless WiFi Next Gen AGN (iwlagn)
[ ]       Intel Wireless WiFi 4965AGN
[*]       Intel Wireless WiFi 5000AGN; Intel WiFi Link 1000, 6000,

This is based on searching the web.

Also in the wpa_supplicant.conf I use

# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1

This is all new to me. Do I still need to configure the iwl6000-ucode
microcode?

Thanks,

--
Valmor




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] wpa_supplicant connect-disconnect loop
  2010-12-12  1:35   ` Valmor de Almeida
@ 2010-12-12  2:07     ` Valmor de Almeida
  2010-12-12 10:55       ` Mick
  0 siblings, 1 reply; 6+ messages in thread
From: Valmor de Almeida @ 2010-12-12  2:07 UTC (permalink / raw
  To: gentoo-user

On 12/11/2010 08:35 PM, Valmor de Almeida wrote:
> On 12/11/2010 06:28 PM, Mick wrote:
>> On Saturday 11 December 2010 20:26:54 Valmor de Almeida wrote:
>>> Hello,
>>>
> [snip]
>>>
>>> There were a number of steps to get to where I am now and I would be
>>> glad to post additional information if required.
>>
>> You could try changing channels (if there is a clash with other local APs) but 
>> it's most likely that the dropouts you notice are due to the wireless driver.  
>> Waiting for developers to catch up or using later drivers/firmware usually 
>> fixes this problem.
> 
> Here is some info.
> 
> -> dmesg | grep -i iwl
> [   12.442620] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux,
> in-tree:d
> [   12.442622] iwlagn: Copyright(c) 2003-2010 Intel Corporation
> [   12.442691] iwlagn 0000:02:00.0: PCI INT A -> GSI 16 (level, low) ->
> IRQ 16
> [   12.442699] iwlagn 0000:02:00.0: setting latency timer to 64
> [   12.442743] iwlagn 0000:02:00.0: Detected Intel Wireless WiFi Link
> 6000 Series 3x3 AGN REV=0x74
> [   12.452866] iwlagn 0000:02:00.0: Tunable channels: 13 802.11bg, 24
> 802.11a channels
> [   12.452988] iwlagn 0000:02:00.0: irq 31 for MSI/MSI-X
> [   12.453271] iwlagn 0000:02:00.0: firmware: requesting
> iwlwifi-6000-4.ucode
> [   12.486540] iwlagn 0000:02:00.0: loaded firmware version 9.221.4.1
> [   12.488339] phy0: Selected rate control algorithm 'iwl-agn-rs'
> [  807.914432] iwlagn 0000:02:00.0: RF_KILL bit toggled to enable radio.
> 
> I could use the iwl6050 firmware. I am currently using iwl6000 (both are
> masked for amd64)
> 
> *  net-wireless/iwl6000-ucode
>       Latest version available: 9.221.4.1
>       Latest version installed: 9.221.4.1
>       Size of files: 211 kB
>       Homepage:      http://intellinuxwireless.org/?p=iwlwifi
>       Description:   Intel (R) Wireless WiFi Advanced N 6000 ucode
>       License:       ipw3945
> 
> *  net-wireless/iwl6050-ucode [ Masked ]
>       Latest version available: 9.201.4.1
>       Latest version installed: [ Not Installed ]
>       Size of files: 212 kB
>       Homepage:      http://intellinuxwireless.org/?p=iwlwifi
>       Description:   Intel (R) Wireless WiFi Link 6250-AGN ucode
>       License:       ipw3945
> 
> I am using the 2.6.34-gentoo-r12 kernel with the iwlagn driver built
> with the following kernel config
> 
> <M>   Intel Wireless Wifi
> [*]     Enable full debugging output in iwlagn and iwl3945 drivers
> [ ]     iwlwifi device access tracing
> <M>     Intel Wireless WiFi Next Gen AGN (iwlagn)
> [ ]       Intel Wireless WiFi 4965AGN
> [*]       Intel Wireless WiFi 5000AGN; Intel WiFi Link 1000, 6000,
> 
> This is based on searching the web.
> 
> Also in the wpa_supplicant.conf I use
> 
> # Let wpa_supplicant take care of scanning and AP selection
> ap_scan=1
> 
> This is all new to me. Do I still need to configure the iwl6000-ucode
> microcode?
> 
> Thanks,
> 
> --
> Valmor
> 

To add to the above from the message logs, wlan0 deauthenticates from
the AP by "local choice (reason=3)"

Dec 11 15:37:01 lpt1 wpa_cli: interface wlan0 CONNECTED
Dec 11 15:37:01 lpt1 rc-scripts: Configuration not set for wlan0 -
assuming DHCP
Dec 11 15:37:01 lpt1 dhcpcd[11253]: wlan0: dhcpcd 4.0.15 starting
Dec 11 15:37:01 lpt1 dhcpcd[11253]: wlan0: broadcasting for a lease
Dec 11 15:37:01 lpt1 dhcpcd[11253]: wlan0: offered 192.168.10.9 from
192.168.10.1
Dec 11 15:37:01 lpt1 dhcpcd[11253]: wlan0: acknowledged 192.168.10.9
from 192.168.10.1
Dec 11 15:37:01 lpt1 dhcpcd[11253]: wlan0: checking 192.168.10.9 is
available on attached networks
Dec 11 15:37:06 lpt1 kernel: [13221.781187] wlan0: deauthenticating from
00:0c:e5:52:09:13 by local choice (reason=3)
Dec 11 15:37:06 lpt1 dhcpcd[11253]: wlan0: carrier lost
Dec 11 15:37:41 lpt1 dhcpcd[11253]: wlan0: timed out
Dec 11 15:37:41 lpt1 wpa_cli: executing '/etc/init.d/net.wlan0 --quiet
start' failed
Dec 11 15:37:41 lpt1 wpa_cli: interface wlan0 DISCONNECTED



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [gentoo-user] wpa_supplicant connect-disconnect loop
  2010-12-12  2:07     ` Valmor de Almeida
@ 2010-12-12 10:55       ` Mick
  2010-12-13  7:17         ` [SOLVED] " Valmor de Almeida
  0 siblings, 1 reply; 6+ messages in thread
From: Mick @ 2010-12-12 10:55 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 966 bytes --]

On Sunday 12 December 2010 02:07:02 Valmor de Almeida wrote:
> On 12/11/2010 08:35 PM, Valmor de Almeida wrote:

> To add to the above from the message logs, wlan0 deauthenticates from
> the AP by "local choice (reason=3)"


If you are getting these disconnections even with WPA/2 encryption disabled 
then this is probably related to a bug on the driver, which falls over itself 
when running with wpa_supplicant.

There are reports in google about it and a suggested fix is to disable 11n and 
5.0GHz:

http://www.jpdw.org/blog/intel-wireless-broken-ubuntu-904


Run modinfo for your driver and find the parameters that control other than 
802.11g modes and disable them by creating and adding them to a file in 
/etc/modprobe.d/ for your driver if it's not already there.

Alternatively, see if you can disable any modes other than 802.11g at your AP 
and test to find out if this resolves the problem for now.

HTH.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [SOLVED] Re: [gentoo-user] wpa_supplicant connect-disconnect loop
  2010-12-12 10:55       ` Mick
@ 2010-12-13  7:17         ` Valmor de Almeida
  0 siblings, 0 replies; 6+ messages in thread
From: Valmor de Almeida @ 2010-12-13  7:17 UTC (permalink / raw
  To: gentoo-user

On 12/12/2010 05:55 AM, Mick wrote:
> On Sunday 12 December 2010 02:07:02 Valmor de Almeida wrote:
>> On 12/11/2010 08:35 PM, Valmor de Almeida wrote:
> 
>> To add to the above from the message logs, wlan0 deauthenticates from
>> the AP by "local choice (reason=3)"
> 
> 
> If you are getting these disconnections even with WPA/2 encryption disabled 
> then this is probably related to a bug on the driver, which falls over itself 
> when running with wpa_supplicant.
> 
> There are reports in google about it and a suggested fix is to disable 11n and 
> 5.0GHz:
> 
> http://www.jpdw.org/blog/intel-wireless-broken-ubuntu-904
> 
> 
> Run modinfo for your driver and find the parameters that control other than 
> 802.11g modes and disable them by creating and adding them to a file in 
> /etc/modprobe.d/ for your driver if it's not already there.
> 
> Alternatively, see if you can disable any modes other than 802.11g at your AP 
> and test to find out if this resolves the problem for now.
> 
> HTH.

Solved and saved by wicd!
I am now sending this e-mail with my wireless connection. Don't know how
this magic happens but all is fine after the net stuff from baselayout
was thrown out the window and wicd installed as suggested by Alan on
another e-mail thread. I even get the wireless LED working. My
/var/log/messages is clean, etc. Great. Thanks. Since wpa_supplicant is
used by wicd the problem must be either the way /etc/conf.d/net is
handling the network setup or my ignorance on how to configure
wpa_supplicant by hand. The iwlagn driver is good.

--
Valmor




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-12-13  7:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-11 20:26 [gentoo-user] wpa_supplicant connect-disconnect loop Valmor de Almeida
2010-12-11 23:28 ` Mick
2010-12-12  1:35   ` Valmor de Almeida
2010-12-12  2:07     ` Valmor de Almeida
2010-12-12 10:55       ` Mick
2010-12-13  7:17         ` [SOLVED] " Valmor de Almeida

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox