[ltp] strange behaviour of wireless

Lou Burnard linux-thinkpad@linux-thinkpad.org
Mon, 8 Aug 2011 22:34:34 +0100


--20cf3077639b9ae2e604aa053655
Content-Type: text/plain; charset=UTF-8

Anyone else suffering from intermittent wifi weirdness on an X301? Since
I've upgraded to 11.04, wifi has been at best temperamental. I travel a lot,
so I've been attributing this to variability in hotel wifi systems, but
being at home for the last week has made me realise there's definitely
something wrong.

The X301 comes with the Intel Ultimate N 5300 card. It's using the iwlagn
driver. So I looked for messages from that in the logs:

lou@THIMK:~$ dmesg | grep iwl
[    4.824281] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux,
in-tree:
[    4.824286] iwlagn: Copyright(c) 2003-2010 Intel Corporation
[    4.824366] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ
17
[    4.824376] iwlagn 0000:03:00.0: setting latency timer to 64
[    4.824412] iwlagn 0000:03:00.0: Detected Intel(R) Ultimate N WiFi Link
5300 AGN, REV=0x24
[    4.845443] iwlagn 0000:03:00.0: device EEPROM VER=0x11e, CALIB=0x4
[    4.845447] iwlagn 0000:03:00.0: Device SKU: 0Xb
[    4.845450] iwlagn 0000:03:00.0: Valid Tx ant: 0X7, Valid Rx ant: 0X7
[    4.845600] iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 24
802.11a channels
[    4.845684] iwlagn 0000:03:00.0: irq 44 for MSI/MSI-X
[    4.933620] iwlagn 0000:03:00.0: loaded firmware version 8.83.5.1 build
33692
[    5.048683] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
[   26.979794] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0
because load = 4
[   47.074112] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0
because load = 1
[   72.084045] iwlagn 0000:03:00.0: iwlagn_tx_agg_start on ra =
00:26:44:b4:35:bc tid = 0
[   75.820462] iwlagn 0000:03:00.0: Stopping AGG while state not ON or
starting
[  242.364269] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0
because load = 4
lou@THIMK:~$

Can't see anything wrong there? Me neither. However, look what happens if I
disconnect the eth0 and actually try to use the wifi.

[  127.072016] wlan0: no IPv6 routers present
[  137.976556] wlan0: authenticate with 00:26:44:b4:35:bc (try 1)
[  137.978856] wlan0: authenticated
[  137.978896] wlan0: waiting for beacon from 00:26:44:b4:35:bc
[  138.040358] wlan0: beacon received
[  138.060032] wlan0: associate with 00:26:44:b4:35:bc (try 1)
[  138.064836] wlan0: RX AssocResp from 00:26:44:b4:35:bc (capab=0x411
status=0 aid=5)
[  138.064842] wlan0: associated
[  138.127981] Intel AES-NI instructions are not detected.
[  138.146667] padlock_aes: VIA PadLock not detected.
lou@THIMK:~$

At this point, we have wireless. I check the news for more rioting,
look at email for about 3 minutes.

Then I move the laptop about 10 metres away.

[  199.386581] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0
because load = 0
[  256.557453] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0
because load = 0
[  259.607314] iwlagn 0000:03:00.0: iwlagn_tx_agg_start on ra =
00:26:44:b4:35:bc tid = 0
[  519.848310] Monitor-Mwait will be used to enter C-3 state
[  519.854963] thinkpad_acpi: EC reports that Thermal Table has changed
[  544.008531] iwlagn 0000:03:00.0: Stopping AGG while state not ON or
starting
[  544.040254] cfg80211: All devices are disconnected, going to restore
regulatory settings
[  544.040262] cfg80211: Restoring regulatory settings
[  544.040268] cfg80211: Calling CRDA to update world regulatory domain
[  544.054257] cfg80211: Ignoring regulatory request Set by core since
the driver uses its own custom regulatory domain
[  544.054274] cfg80211: World regulatory domain updated:
[  544.054279] cfg80211:     (start_freq - end_freq @ bandwidth),
(max_antenna_gain, max_eirp)
[  544.054287] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[  544.054294] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[  544.054301] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz),
(300 mBi, 2000 mBm)
[  544.054308] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
[  544.054315] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz),
(300 mBi, 2000 mBm)
lou@THIMK:~$


A connexion gets made, but then it gets shut down. Not only that, but it
kills my router too! The wlan connexion on my adsl2 modem just curls up its
toes and disappears! At first I thought it was just a coincidence, but no,
it's completely repeatable. The router reconfigures itself and reconnects,
and everything is fine, until I try using the wifi on my X301 again.

--20cf3077639b9ae2e604aa053655
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Anyone else suffering from intermittent wifi weirdness on an X301? Since I&=
#39;ve upgraded to 11.04, wifi has been at best temperamental. I travel a l=
ot, so I've been attributing this to variability in hotel wifi systems,=
 but being at home for the last week has made me realise there's defini=
tely something wrong.<div>
<br></div><div>The X301 comes with the Intel Ultimate N 5300 card. It&#39;s=
 using the iwlagn driver. So I looked for messages from that in the logs:</=
div><div><br></div><div>lou@THIMK:~$ dmesg | grep iwl<br>[=C2=A0=C2=A0=C2=
=A0 4.824281] iwlagn: Intel(R) Wireless WiFi Link AGN driver for Linux, in-=
tree:<br>
[=C2=A0=C2=A0=C2=A0 4.824286] iwlagn: Copyright(c) 2003-2010 Intel Corporat=
ion<br>[=C2=A0=C2=A0=C2=A0 4.824366] iwlagn 0000:03:00.0: PCI INT A -&gt; G=
SI 17 (level, low) -&gt; IRQ 17<br>
[=C2=A0=C2=A0=C2=A0 4.824376] iwlagn 0000:03:00.0: setting latency timer to=
 64<br>[=C2=A0=C2=A0=C2=A0 4.824412] iwlagn 0000:03:00.0: Detected Intel(R)=
 Ultimate N WiFi Link 5300 AGN, REV=3D0x24<br>[=C2=A0=C2=A0=C2=A0 4.845443]=
 iwlagn 0000:03:00.0: device EEPROM VER=3D0x11e, CALIB=3D0x4<br>

[=C2=A0=C2=A0=C2=A0 4.845447] iwlagn 0000:03:00.0: Device SKU: 0Xb<br>[=C2=
=A0=C2=A0=C2=A0 4.845450] iwlagn 0000:03:00.0: Valid Tx ant: 0X7, Valid Rx =
ant: 0X7<br>[=C2=A0=C2=A0=C2=A0 4.845600] iwlagn 0000:03:00.0: Tunable chan=
nels: 13 802.11bg, 24 802.11a channels<br>

[=C2=A0=C2=A0=C2=A0 4.845684] iwlagn 0000:03:00.0: irq 44 for MSI/MSI-X<br>=
[=C2=A0=C2=A0=C2=A0 4.933620] iwlagn 0000:03:00.0: loaded firmware version =
8.83.5.1 build 33692<br>[=C2=A0=C2=A0=C2=A0 5.048683] ieee80211 phy0: Selec=
ted rate control algorithm &#39;iwl-agn-rs&#39;<br>

[=C2=A0=C2=A0 26.979794] iwlagn 0000:03:00.0: Aggregation not enabled for t=
id 0 because load =3D 4<br>[=C2=A0=C2=A0 47.074112] iwlagn 0000:03:00.0: Ag=
gregation not enabled for tid 0 because load =3D 1<br>[=C2=A0=C2=A0 72.0840=
45] iwlagn 0000:03:00.0: iwlagn_tx_agg_start on ra =3D 00:26:44:b4:35:bc ti=
d =3D 0<br>

[=C2=A0=C2=A0 75.820462] iwlagn 0000:03:00.0: Stopping AGG while state not =
ON or starting<br>[=C2=A0 242.364269] iwlagn 0000:03:00.0: Aggregation not =
enabled for tid 0 because load =3D 4<br>lou@THIMK:~$=C2=A0</div><div><br></=
div><div>Can&#39;t see anything wrong there? Me neither. However, look what=
 happens if I disconnect the eth0 and actually try to use the wifi.</div>
<div><br></div><div><pre>[  127.072016] wlan0: no IPv6 routers present
[  137.976556] wlan0: authenticate with 00:26:44:b4:35:bc (try 1)
[  137.978856] wlan0: authenticated
[  137.978896] wlan0: waiting for beacon from 00:26:44:b4:35:bc
[  138.040358] wlan0: beacon received
[  138.060032] wlan0: associate with 00:26:44:b4:35:bc (try 1)
[  138.064836] wlan0: RX AssocResp from 00:26:44:b4:35:bc (capab=3D0x411=20
status=3D0 aid=3D5)
[  138.064842] wlan0: associated
[  138.127981] Intel AES-NI instructions are not detected.
[  138.146667] padlock_aes: VIA PadLock not detected.
lou@THIMK:~$

At this point, we have wireless. I check the news for more rioting, look at=
 email for about 3 minutes.=C2=A0</pre><pre>Then I move the laptop about 10=
 metres away.

[  199.386581] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0=20
because load =3D 0
[  256.557453] iwlagn 0000:03:00.0: Aggregation not enabled for tid 0=20
because load =3D 0
[  259.607314] iwlagn 0000:03:00.0: iwlagn_tx_agg_start on ra =3D=20
00:26:44:b4:35:bc tid =3D 0
[  519.848310] Monitor-Mwait will be used to enter C-3 state
[  519.854963] thinkpad_acpi: EC reports that Thermal Table has changed
[  544.008531] iwlagn 0000:03:00.0: Stopping AGG while state not ON or=20
starting
[  544.040254] cfg80211: All devices are disconnected, going to restore=20
regulatory settings
[  544.040262] cfg80211: Restoring regulatory settings
[  544.040268] cfg80211: Calling CRDA to update world regulatory domain
[  544.054257] cfg80211: Ignoring regulatory request Set by core since=20
the driver uses its own custom regulatory domain
[  544.054274] cfg80211: World regulatory domain updated:
[  544.054279] cfg80211:     (start_freq - end_freq @ bandwidth),=20
(max_antenna_gain, max_eirp)
[  544.054287] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz),=20
(300 mBi, 2000 mBm)
[  544.054294] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz),=20
(300 mBi, 2000 mBm)
[  544.054301] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz),=20
(300 mBi, 2000 mBm)
[  544.054308] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz),=20
(300 mBi, 2000 mBm)
[  544.054315] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz),=20
(300 mBi, 2000 mBm)
lou@THIMK:~$
</pre></div><div><br></div><div>A connexion gets made, but then it gets shu=
t down. Not only that, but it kills my router too! The wlan connexion on my=
 adsl2 modem just curls up its toes and disappears! At first I thought it w=
as just a coincidence, but no, it&#39;s completely repeatable. The router r=
econfigures itself and reconnects, and everything is fine, until I try usin=
g the wifi on my X301 again.=C2=A0</div>
<div><br></div><div><br></div>

--20cf3077639b9ae2e604aa053655--