Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271599 - issue with iwlagn in 2.6.29-gentoo-r5 with intel wireless 5300
Summary: issue with iwlagn in 2.6.29-gentoo-r5 with intel wireless 5300
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 03:21 UTC by Andrew Gaffney (RETIRED)
Modified: 2009-08-13 14:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
'iwconfig wlan0' when it's working (iwconfig_1.txt,507 bytes, text/plain)
2009-06-20 00:24 UTC, Andrew Gaffney (RETIRED)
Details
'iwconfig wlan0' on the second try when it's not working (iwconfig_2.txt,509 bytes, text/plain)
2009-06-20 00:25 UTC, Andrew Gaffney (RETIRED)
Details
dmesg (dmesg.txt,60.07 KB, text/plain)
2009-06-20 00:25 UTC, Andrew Gaffney (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Gaffney (RETIRED) gentoo-dev 2009-05-29 03:21:48 UTC
I did an install on my new Thinkpad W500 today. I used the latest ~arch kernel, g-s-2.6.29-r5. The iwlagn driver recognizes my hardware and loads the firmware in net-wireless/iwl5000-ucode-5.4.0.11 (8.24.2.12 provides a file named -2.ucode which doesn't work, instead of the -1.ucode which does) without issue.

However, when I go to restart wireless (it will work fine the first time), it will associate with my AP without issue but then the connection is unusable. Running 'iwconfig wlan0' multiple times shows the network speed jumping back and forth between 1M/s and 54M/s. It also shows the Tx-power as -1.

Looking in dmesg, I see the following line many times:

[  640.041309] iwlagn: Requested user TXPOWER 15 below limit.

It seems that I can reliably "fix" the issue by unloading the module, reloading it, and starting the wireless. If I then restart the wireless without reloading the module, I hit this problem again.
Comment 1 George Kadianakis (RETIRED) gentoo-dev 2009-05-29 06:43:05 UTC
(In reply to comment #0)
> I did an install on my new Thinkpad W500 today. I used the latest ~arch kernel,
> g-s-2.6.29-r5. The iwlagn driver recognizes my hardware and loads the firmware
> in net-wireless/iwl5000-ucode-5.4.0.11 (8.24.2.12 provides a file named
> -2.ucode which doesn't work, instead of the -1.ucode which does) without issue.
> 
> However, when I go to restart wireless (it will work fine the first time), it
> will associate with my AP without issue but then the connection is unusable.
> Running 'iwconfig wlan0' multiple times shows the network speed jumping back
> and forth between 1M/s and 54M/s. It also shows the Tx-power as -1.
> 
> Looking in dmesg, I see the following line many times:
> 
> [  640.041309] iwlagn: Requested user TXPOWER 15 below limit.
> 
> It seems that I can reliably "fix" the issue by unloading the module, reloading
> it, and starting the wireless. If I then restart the wireless without reloading
> the module, I hit this problem again.
> 

Could you try setting your txpower value to 'auto' or 'fixed' using the iwconfig tool?
Also, check out if any power management scripts are autoconfiguring your interface and setting their own txpower value. A -1 value of txpower is suspicious.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2009-05-29 12:38:35 UTC
I've tried doing 'ifconfig wlan0 txpower auto' when it's not working, and it does not restore it. I've also tried 'ifconfig wlan0 txpower 15', which does not "fix" it either.

I haven't configured any power management stuff. I have the "standard" stuff like acpid and cpufreq (userspace governor), but I haven't modified the configs from the stock ones.
Comment 3 George Kadianakis (RETIRED) gentoo-dev 2009-05-29 18:41:46 UTC
Could we have a copy of your 'iwconfig wlan0' output (if other stuff don't change between the 1M/s and 54M/s output, either one will do the trick)?
Also, a full copy of your dmesg after the problems appear, would help.

Finally, did previous kernel version work fine?
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-19 01:54:55 UTC
Sorry it's taken so long to get back to you on this. It's gone to the back of my mind since I added a 'modprobe -r iwlagn && modprobe iwlagn' to the preup() for the interface. I don't have the laptop in front of me to get the output of those commands. There was no previous kernel, because this is a new install.
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-20 00:24:47 UTC
Created attachment 195234 [details]
'iwconfig wlan0' when it's working
Comment 6 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-20 00:25:21 UTC
Created attachment 195235 [details]
'iwconfig wlan0' on the second try when it's not working
Comment 7 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-20 00:25:56 UTC
Created attachment 195236 [details]
dmesg
Comment 8 Andrew Gaffney (RETIRED) gentoo-dev 2009-06-20 01:13:08 UTC
I just tried a 2.6.30-gentoo-r1 kernel. Now, the iwlagn driver loads the -2 version of the firmware, but I can hardly get it to connect at all. The net.wlan0 init script fails immediately saying that it can't scan. If I play with disabling/enabling the interface a couple of times, I can finally get it to scan.
Comment 9 Mike Pagano gentoo-dev 2009-06-21 01:42:55 UTC
I see a couple of commits that might be related to your problem in 2.6.30, though I see you have tested this kernel version

http://git.kernel.org/?p=linux%2Fkernel%2Fgit%2Ftorvalds%2Flinux-2.6.git&a=search&h=HEAD&st=commit&s=orrect+wext+transmit+power+handler

Is there relevant information in dmesg we should see?