linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* wifi iwlagn fails to authenticate after wake from suspend
@ 2011-10-26  4:15 Gene Smith
  2011-10-26  6:27 ` David Rientjes
  0 siblings, 1 reply; 10+ messages in thread
From: Gene Smith @ 2011-10-26  4:15 UTC (permalink / raw)
  To: linux-kernel

Now after upgrade to Ubuntu 11.10 when resume from suspend, wifi fails 
to reconnect saying waiting for authentication. When I use older kernel, 
2.4.38 instead of the new 3.0.0, it still works OK. If using ethernet, 
after wake from suspend it always works OK.

More details on this bug are here
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/880648
and here
https://bugzilla.redhat.com/show_bug.cgi?id=7374

Tried new Ubuntu kernel 3.1-rc10 did not help. Did not try an alternate 
kernel with Fedora 15.

The common failure messages seen with Ubuntu and Fedora is this:

<info> (wlan0): device state change: need-auth -> failed (reason 
'no-secrets') [60 120 7]
Oct 24 01:20:00 hplt NetworkManager[1016]: <warn> Activation (wlan0) 
failed for access point (dbnet)

After this occurs, no further attempt to authenticate wifi occur and a 
red X appears over the wifi icon. I must then use ethernet (or reboot).

-gene



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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-10-26  4:15 wifi iwlagn fails to authenticate after wake from suspend Gene Smith
@ 2011-10-26  6:27 ` David Rientjes
  2011-10-26 20:00   ` wwguy
  2011-10-29  4:32   ` Gene Smith
  0 siblings, 2 replies; 10+ messages in thread
From: David Rientjes @ 2011-10-26  6:27 UTC (permalink / raw)
  To: Gene Smith; +Cc: wwguy, ilw, linux-kernel, linux-wireless

On Wed, 26 Oct 2011, Gene Smith wrote:

> Now after upgrade to Ubuntu 11.10 when resume from suspend, wifi fails to
> reconnect saying waiting for authentication. When I use older kernel, 2.4.38
> instead of the new 3.0.0, it still works OK. If using ethernet, after wake
> from suspend it always works OK.
> 

So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu 
11.10 on a home laptop so I'll give this a try as well when I can if I can 
put up with unity for that long.

> More details on this bug are here
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/880648
> and here
> https://bugzilla.redhat.com/show_bug.cgi?id=7374
> 
> Tried new Ubuntu kernel 3.1-rc10 did not help. Did not try an alternate kernel
> with Fedora 15.
> 
> The common failure messages seen with Ubuntu and Fedora is this:
> 
> <info> (wlan0): device state change: need-auth -> failed (reason 'no-secrets')
> [60 120 7]
> Oct 24 01:20:00 hplt NetworkManager[1016]: <warn> Activation (wlan0) failed
> for access point (dbnet)
> 
> After this occurs, no further attempt to authenticate wifi occur and a red X
> appears over the wifi icon. I must then use ethernet (or reboot).
> 

Adding wireless folks to the cc.

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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-10-26  6:27 ` David Rientjes
@ 2011-10-26 20:00   ` wwguy
  2011-10-29  4:32   ` Gene Smith
  1 sibling, 0 replies; 10+ messages in thread
From: wwguy @ 2011-10-26 20:00 UTC (permalink / raw)
  To: David Rientjes, johannes.berg
  Cc: Gene Smith, ilw@linux.intel.com, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org

Johannes, any idea?

Thanks
Wey

On Tue, 2011-10-25 at 23:27 -0700, David Rientjes wrote:
> On Wed, 26 Oct 2011, Gene Smith wrote:
> 
> > Now after upgrade to Ubuntu 11.10 when resume from suspend, wifi fails to
> > reconnect saying waiting for authentication. When I use older kernel, 2.4.38
> > instead of the new 3.0.0, it still works OK. If using ethernet, after wake
> > from suspend it always works OK.
> > 
> 
> So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu 
> 11.10 on a home laptop so I'll give this a try as well when I can if I can 
> put up with unity for that long.
> 
> > More details on this bug are here
> > https://bugs.launchpad.net/ubuntu/+source/linux/+bug/880648
> > and here
> > https://bugzilla.redhat.com/show_bug.cgi?id=7374
> > 
> > Tried new Ubuntu kernel 3.1-rc10 did not help. Did not try an alternate kernel
> > with Fedora 15.
> > 
> > The common failure messages seen with Ubuntu and Fedora is this:
> > 
> > <info> (wlan0): device state change: need-auth -> failed (reason 'no-secrets')
> > [60 120 7]
> > Oct 24 01:20:00 hplt NetworkManager[1016]: <warn> Activation (wlan0) failed
> > for access point (dbnet)
> > 
> > After this occurs, no further attempt to authenticate wifi occur and a red X
> > appears over the wifi icon. I must then use ethernet (or reboot).
> > 
> 
> Adding wireless folks to the cc.



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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-10-26  6:27 ` David Rientjes
  2011-10-26 20:00   ` wwguy
@ 2011-10-29  4:32   ` Gene Smith
  2011-12-12  6:36     ` Matías Aguirre
  1 sibling, 1 reply; 10+ messages in thread
From: Gene Smith @ 2011-10-29  4:32 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-wireless

David Rientjes wrote, On 10/26/2011 02:27 AM:

>
> So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu
> 11.10 on a home laptop so I'll give this a try as well when I can if I can
> put up with unity for that long.
>

Hi,
Any results on this home laptop test yet? (Running kde-ubuntu here :) ).


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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-10-29  4:32   ` Gene Smith
@ 2011-12-12  6:36     ` Matías Aguirre
  2011-12-12 14:48       ` wwguy
  0 siblings, 1 reply; 10+ messages in thread
From: Matías Aguirre @ 2011-12-12  6:36 UTC (permalink / raw)
  To: Gene Smith; +Cc: linux-kernel, linux-wireless

Hi,

On Sat, Oct 29, 2011 at 2:32 AM, Gene Smith <gds@chartertn.net> wrote:
> David Rientjes wrote, On 10/26/2011 02:27 AM:
>> So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu
>> 11.10 on a home laptop so I'll give this a try as well when I can if I can
>> put up with unity for that long.

I've bisected the problem and narrowed the bug to changeset 73b78a2272
(http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=73b78a22720087d2d384bdd49e9c25500ba73edd).

Here's a patch, that applies against 3.2-rc5, that fixed the error for me:

diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c
b/drivers/net/wireless/iwlwifi/iwl-agn.c
index bacc06c..01d5d38 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
@@ -1297,7 +1297,7 @@ int iwl_alive_start(struct iwl_priv *priv)
                                         BT_COEX_PRIO_TBL_EVT_INIT_CALIB2);
                if (ret)
                        return ret;
-       } else {
+       } else if (priv->cfg->bt_params) {
                /*
                 * default is 2-wire BT coexexistence support
                 */

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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-12-12  6:36     ` Matías Aguirre
@ 2011-12-12 14:48       ` wwguy
  2011-12-12 15:49         ` Matías Aguirre
                           ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: wwguy @ 2011-12-12 14:48 UTC (permalink / raw)
  To: Matías Aguirre
  Cc: Gene Smith, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org

On Sun, 2011-12-11 at 22:36 -0800, Matías Aguirre wrote:
> Hi,
> 
> On Sat, Oct 29, 2011 at 2:32 AM, Gene Smith <gds@chartertn.net> wrote:
> > David Rientjes wrote, On 10/26/2011 02:27 AM:
> >> So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu
> >> 11.10 on a home laptop so I'll give this a try as well when I can if I can
> >> put up with unity for that long.
> 
> I've bisected the problem and narrowed the bug to changeset 73b78a2272
> (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=73b78a22720087d2d384bdd49e9c25500ba73edd).
> 
> Here's a patch, that applies against 3.2-rc5, that fixed the error for me:
> 
> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c
> b/drivers/net/wireless/iwlwifi/iwl-agn.c
> index bacc06c..01d5d38 100644
> --- a/drivers/net/wireless/iwlwifi/iwl-agn.c
> +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
> @@ -1297,7 +1297,7 @@ int iwl_alive_start(struct iwl_priv *priv)
>                                          BT_COEX_PRIO_TBL_EVT_INIT_CALIB2);
>                 if (ret)
>                         return ret;
> -       } else {
> +       } else if (priv->cfg->bt_params) {
>                 /*
>                  * default is 2-wire BT coexexistence support
>                  */
this is not right, you stop the bt coex for non-combo device.
maybe you system has issue with BT, we seen this happen on some cases.
try the following module parameter and see if help

$sudo modprobe iwlagn bt_coex_active=0

Thanks
Wey


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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-12-12 14:48       ` wwguy
@ 2011-12-12 15:49         ` Matías Aguirre
  2011-12-15  3:11         ` Gene Smith
  2012-01-01 23:26         ` Gene Smith
  2 siblings, 0 replies; 10+ messages in thread
From: Matías Aguirre @ 2011-12-12 15:49 UTC (permalink / raw)
  To: wwguy
  Cc: Gene Smith, linux-kernel@vger.kernel.org,
	linux-wireless@vger.kernel.org

On Mon, Dec 12, 2011 at 12:48 PM, wwguy <wey-yi.w.guy@intel.com> wrote:
> this is not right, you stop the bt coex for non-combo device.
> maybe you system has issue with BT, we seen this happen on some cases.
> try the following module parameter and see if help
>
> $sudo modprobe iwlagn bt_coex_active=0

bt_coex_active=0 fixed this issue, thanks Wey


-- 
Matías Aguirre

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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-12-12 14:48       ` wwguy
  2011-12-12 15:49         ` Matías Aguirre
@ 2011-12-15  3:11         ` Gene Smith
  2012-01-01 23:26         ` Gene Smith
  2 siblings, 0 replies; 10+ messages in thread
From: Gene Smith @ 2011-12-15  3:11 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-wireless

On 12/12/2011 09:48 AM, wwguy wrote:
> On Sun, 2011-12-11 at 22:36 -0800, Matías Aguirre wrote:
> maybe you system has issue with BT, we seen this happen on some cases.
> try the following module parameter and see if help
>
> $sudo modprobe iwlagn bt_coex_active=0
>
> Thanks
> Wey

This fixes it for me too!

-gene



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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2011-12-12 14:48       ` wwguy
  2011-12-12 15:49         ` Matías Aguirre
  2011-12-15  3:11         ` Gene Smith
@ 2012-01-01 23:26         ` Gene Smith
  2012-01-07 20:33           ` Gene Smith
  2 siblings, 1 reply; 10+ messages in thread
From: Gene Smith @ 2012-01-01 23:26 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-wireless

On 12/12/2011 09:48 AM, wwguy wrote:
> On Sun, 2011-12-11 at 22:36 -0800, Matías Aguirre wrote:
>> Hi,
>>
>> On Sat, Oct 29, 2011 at 2:32 AM, Gene Smith<gds@chartertn.net>  wrote:
>>> David Rientjes wrote, On 10/26/2011 02:27 AM:
>>>> So we need to bisect between 2.4.38 and 3.0.0? :)  I'm running ubuntu
>>>> 11.10 on a home laptop so I'll give this a try as well when I can if I can
>>>> put up with unity for that long.
>>
>> I've bisected the problem and narrowed the bug to changeset 73b78a2272
>> (http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=73b78a22720087d2d384bdd49e9c25500ba73edd).
>>
>> Here's a patch, that applies against 3.2-rc5, that fixed the error for me:
>>
>> diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c
>> b/drivers/net/wireless/iwlwifi/iwl-agn.c
>> index bacc06c..01d5d38 100644
>> --- a/drivers/net/wireless/iwlwifi/iwl-agn.c
>> +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c
>> @@ -1297,7 +1297,7 @@ int iwl_alive_start(struct iwl_priv *priv)
>>                                           BT_COEX_PRIO_TBL_EVT_INIT_CALIB2);
>>                  if (ret)
>>                          return ret;
>> -       } else {
>> +       } else if (priv->cfg->bt_params) {
>>                  /*
>>                   * default is 2-wire BT coexexistence support
>>                   */
> this is not right, you stop the bt coex for non-combo device.
> maybe you system has issue with BT, we seen this happen on some cases.
> try the following module parameter and see if help
>
> $sudo modprobe iwlagn bt_coex_active=0
>
> Thanks
> Wey
>

Unfortunately the latest fedora 16 kernel, 3.1.6-1.fc16.x86_64, renders 
this fix
ineffective and again cannot resume wifi after a sleep and must reboot.
Therefore must stay with older kernels for this to work and for wifi to 
resume
after sleep:
3.1.5-6.fc16 is still OK with bt_coex_active=0
3.1.5-2.fc16 is also still OK with this fix.





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

* Re: wifi iwlagn fails to authenticate after wake from suspend
  2012-01-01 23:26         ` Gene Smith
@ 2012-01-07 20:33           ` Gene Smith
  0 siblings, 0 replies; 10+ messages in thread
From: Gene Smith @ 2012-01-07 20:33 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-wireless

On 01/01/2012 06:26 PM, Gene Smith wrote:
>> On 12/12/2011 09:48 AM, wwguy wrote:

>> try the following module parameter and see if help
>>
>> $sudo modprobe iwlagn bt_coex_active=0
>>
>> Thanks
>> Wey
>>
>
> Unfortunately the latest fedora 16 kernel, 3.1.6-1.fc16.x86_64, renders
> this fix
> ineffective and again cannot resume wifi after a sleep and must reboot.
> Therefore must stay with older kernels for this to work and for wifi to
> resume
> after sleep:
> 3.1.5-6.fc16 is still OK with bt_coex_active=0
> 3.1.5-2.fc16 is also still OK with this fix.

The kernel 3.1.6-1.fc16.x86_64 now uses wireless driver called iwlwifi and
not  iwlagn. I was not setting the parameter correctly. When I do this

modprobe iwlwifi bt_coex_active=0

the workaround is still OK and wireless reconnects after sleep.




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

end of thread, other threads:[~2012-01-07 20:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26  4:15 wifi iwlagn fails to authenticate after wake from suspend Gene Smith
2011-10-26  6:27 ` David Rientjes
2011-10-26 20:00   ` wwguy
2011-10-29  4:32   ` Gene Smith
2011-12-12  6:36     ` Matías Aguirre
2011-12-12 14:48       ` wwguy
2011-12-12 15:49         ` Matías Aguirre
2011-12-15  3:11         ` Gene Smith
2012-01-01 23:26         ` Gene Smith
2012-01-07 20:33           ` Gene Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).