From: Luis R. Rodriguez Date: Sat, 31 Oct 2009 09:03:23 -0700 Subject: [ath9k-devel] Unreliable connection with AR5008 (AR5416/AR2122) In-Reply-To: <4AEC589E.3000404@podzimek.org> References: <4AEC589E.3000404@podzimek.org> Message-ID: <43e72e890910310903o310cc307xf85d2d15e1659734@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org On Sat, Oct 31, 2009 at 8:32 AM, Andrej Podzimek wrote: > Hello, > > my Zyxel PCMCIA card is almost unusable. The card keeps disconnecting all the time. When the connection gets stuck, the only thing that helps is > > ? ? ? ?ping6 -q -i 0 > > This ping flood unblocks the connection in about ten seconds to one minute. When the broken connection is just left alone, it may recover after half an hour and sometimes it doesn't recover at all. Some important notes: > > ? ? ? ?1) Other laptops and WiFi IP phones work with the same AP just fine. > ? ? ? ?2) The same laptop has another WiFi card (using the ipw2200 driver) in MiniPCI. It works as well. > ? ? ? ?3) The Zyxel card worked till kernel 2.6.29.x. It became unusable since 2.6.30. > > A note concerning remark 3: Those freezes could have been less frequent or harder to notice. However, log messages (see below) clearly showed something was wrong even in 2.6.29.x. > > What I tried: > ? ? ? ?* Tested compat-wireless about once a week for the last two months. That didn't help. > ? ? ? ?* Unloaded modules for most network, IRDA and USB devices to find out if ath9k would become more reliable. (No.) > ? ? ? ?* Tested the same card with three other access points. (Still the same problem.) > ? ? ? ?* Switched the debugfs stuff on. Doesn't work, the card never associates when debugging and debugfs are on. > > Details: > ? ? ? ?Laptop: Asus M2N > ? ? ? ?WiFi Cards: Zyxel NWD-170N on PCMCIA (fails), Intel 2915ABG on MiniPCI (works) > ? ? ? ?Kernel: 2.6.31.5 vanilla, tested both with and without compat-wireless > > Zyxel card's line from lspci: > > ? ? ? ?02:00.0 Network controller: Atheros Communications Inc. AR5008 Wireless Network Adapter (rev 01) > > Zyxel card's lines from dmesg: > > ? ? ? ?pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0 > ? ? ? ?pci 0000:02:00.0: reg 10 32bit mmio: [0x000000-0x00ffff] > ? ? ? ?cfg80211: Calling CRDA to update world regulatory domain > ? ? ? ?cfg80211: Calling CRDA for country: CZ > ? ? ? ?ath9k 0000:02:00.0: enabling device (0000 -> 0002) > ? ? ? ?ath9k 0000:02:00.0: PCI INT A -> Link[LNKB] -> GSI 5 (level, low) -> IRQ 5 > ? ? ? ?cfg80211: Regulatory domain changed to country: CZ > ? ? ? ? ? ? ? ?(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > ? ? ? ? ? ? ? ?(2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm) > ? ? ? ? ? ? ? ?(5150000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2301 mBm) > ? ? ? ? ? ? ? ?(5250000 KHz - 5350000 KHz @ 40000 KHz), (N/A, 2301 mBm) > ? ? ? ? ? ? ? ?(5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 3000 mBm) > ? ? ? ?ath: EEPROM regdomain: 0x30 > ? ? ? ?ath: EEPROM indicates we should expect a direct regpair map > ? ? ? ?ath: Country alpha2 being used: AM > ? ? ? ?ath: Regpair used: 0x30 > ? ? ? ?phy0: Selected rate control algorithm 'ath9k_rate_control' > ? ? ? ?Registered led device: ath9k-phy0::radio > ? ? ? ?Registered led device: ath9k-phy0::assoc > ? ? ? ?Registered led device: ath9k-phy0::tx > ? ? ? ?Registered led device: ath9k-phy0::rx > ? ? ? ?phy0: Atheros AR5416 MAC/BB Rev:2 AR2122 RF Rev:81: mem=0xf0680000, irq=5 > ? ? ? ?cfg80211: Calling CRDA for country: AM > ? ? ? ?cfg80211: Current regulatory domain intersected: > ? ? ? ? ? ? ? ?(start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) > ? ? ? ? ? ? ? ?(2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm) > ? ? ? ? ? ? ? ?(5170000 KHz - 5250000 KHz @ 20000 KHz), (N/A, 1800 mBm) > ? ? ? ? ? ? ? ?(5250000 KHz - 5330000 KHz @ 20000 KHz), (N/A, 1800 mBm) > > The logs show this over and over: > > ? ? ? ?wlan0: deauthenticating from 00:23:f8:22:aa:a6 by local choice (reason=3) > ? ? ? ?wlan0: direct probe to AP 00:23:f8:22:aa:a6 (try 1) > ? ? ? ?wlan0: deauthenticating from 00:23:f8:22:aa:a6 by local choice (reason=3) > ? ? ? ?wlan0: deauthenticating from 00:23:f8:22:aa:a6 by local choice (reason=3) > ? ? ? ?wlan0: direct probe to AP 00:23:f8:22:aa:a6 (try 1) > ? ? ? ?wlan0: direct probe responded > ? ? ? ?wlan0: authenticate with AP 00:23:f8:22:aa:a6 (try 1) > ? ? ? ?wlan0: authenticated > ? ? ? ?wlan0: associate with AP 00:23:f8:22:aa:a6 (try 1) > ? ? ? ?wlan0: RX AssocResp from 00:23:f8:22:aa:a6 (capab=0x431 status=0 aid=2) > ? ? ? ?wlan0: associated > > I am convinced that most of these problems are caused by the Minstrel algorithm. That's a pretty wild conclusion given that minstrel is not used on ath9k. ath9k uses its own rate control algorithm. Can you please try bisecting between 2.6.29 and 2.6.30? It would be of much help. What AP do you have? What AP setup settings do you have? Luis